Class CreateTagKeyRequest.Builder (1.23.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 1.23.0keyboard_arrow_down  
  
 
    
    
    
      
  
  
  
    
public   static   final   class  CreateTagKeyRequest . Builder   extends   GeneratedMessageV3 . Builder<CreateTagKeyRequest . Builder >  implements   CreateTagKeyRequestOrBuilder  
   The request message for creating a TagKey.
 Protobuf type google.cloud.resourcemanager.v3.CreateTagKeyRequest
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder() 
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString) 
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int) 
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int) 
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder) 
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Methods
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  Methods
   
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   CreateTagKeyRequest . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  build() 
  
    
public   CreateTagKeyRequest   build ()  
  
  buildPartial() 
  
    
public   CreateTagKeyRequest   buildPartial ()  
  
  clear() 
  
    
public   CreateTagKeyRequest . Builder   clear ()  
  
  Overrides 
  
  clearField(Descriptors.FieldDescriptor field) 
  
    
public   CreateTagKeyRequest . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  
  
  Overrides 
  
  clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   CreateTagKeyRequest . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  
  
  Overrides 
  
  clearTagKey() 
  
    
public   CreateTagKeyRequest . Builder   clearTagKey ()  
   Required. The TagKey to be created. Only fields short_name,
 description, and parent are considered during the creation request.
 
 .google.cloud.resourcemanager.v3.TagKey tag_key = 1 [(.google.api.field_behavior) = REQUIRED];
 
clearValidateOnly() 
  
    
public   CreateTagKeyRequest . Builder   clearValidateOnly ()  
   Optional. Set to true to perform validations necessary for creating the
 resource, but not actually perform the action.
 bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL];
clone() 
  
    
public   CreateTagKeyRequest . Builder   clone ()  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   CreateTagKeyRequest   getDefaultInstanceForType ()  
  
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  
  Overrides 
  
  getTagKey() 
  
    
public   TagKey   getTagKey ()  
   Required. The TagKey to be created. Only fields short_name,
 description, and parent are considered during the creation request.
 
 .google.cloud.resourcemanager.v3.TagKey tag_key = 1 [(.google.api.field_behavior) = REQUIRED];
 
    
      
        Returns  
      
        Type Description  
      
        TagKey The tagKey.
 
     
  
  getTagKeyBuilder() 
  
    
public   TagKey . Builder   getTagKeyBuilder ()  
   Required. The TagKey to be created. Only fields short_name,
 description, and parent are considered during the creation request.
 
 .google.cloud.resourcemanager.v3.TagKey tag_key = 1 [(.google.api.field_behavior) = REQUIRED];
 
getTagKeyOrBuilder() 
  
    
public   TagKeyOrBuilder   getTagKeyOrBuilder ()  
   Required. The TagKey to be created. Only fields short_name,
 description, and parent are considered during the creation request.
 
 .google.cloud.resourcemanager.v3.TagKey tag_key = 1 [(.google.api.field_behavior) = REQUIRED];
 
getValidateOnly() 
  
    
public   boolean   getValidateOnly ()  
   Optional. Set to true to perform validations necessary for creating the
 resource, but not actually perform the action.
 bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Returns  
      
        Type Description  
      
        boolean The validateOnly.
 
     
  
  hasTagKey() 
  
    
public   boolean   hasTagKey ()  
   Required. The TagKey to be created. Only fields short_name,
 description, and parent are considered during the creation request.
 
 .google.cloud.resourcemanager.v3.TagKey tag_key = 1 [(.google.api.field_behavior) = REQUIRED];
 
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the tagKey field is set.
 
     
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  mergeFrom(CreateTagKeyRequest other) 
  
    
public   CreateTagKeyRequest . Builder   mergeFrom ( CreateTagKeyRequest   other )  
  
  
  
    
public   CreateTagKeyRequest . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  Overrides 
  
  
  mergeFrom(Message other) 
  
    
public   CreateTagKeyRequest . Builder   mergeFrom ( Message   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherMessage  
     
  
  
  Overrides 
  
  mergeTagKey(TagKey value) 
  
    
public   CreateTagKeyRequest . Builder   mergeTagKey ( TagKey   value )  
   Required. The TagKey to be created. Only fields short_name,
 description, and parent are considered during the creation request.
 
 .google.cloud.resourcemanager.v3.TagKey tag_key = 1 [(.google.api.field_behavior) = REQUIRED];
 
    
      
        Parameter  
      
        Name Description  
      
        valueTagKey  
     
  
  
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   CreateTagKeyRequest . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   CreateTagKeyRequest . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   CreateTagKeyRequest . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  
  
  Overrides 
  
  setTagKey(TagKey value) 
  
    
public   CreateTagKeyRequest . Builder   setTagKey ( TagKey   value )  
   Required. The TagKey to be created. Only fields short_name,
 description, and parent are considered during the creation request.
 
 .google.cloud.resourcemanager.v3.TagKey tag_key = 1 [(.google.api.field_behavior) = REQUIRED];
 
    
      
        Parameter  
      
        Name Description  
      
        valueTagKey  
     
  
  
  setTagKey(TagKey.Builder builderForValue) 
  
    
public   CreateTagKeyRequest . Builder   setTagKey ( TagKey . Builder   builderForValue )  
   Required. The TagKey to be created. Only fields short_name,
 description, and parent are considered during the creation request.
 
 .google.cloud.resourcemanager.v3.TagKey tag_key = 1 [(.google.api.field_behavior) = REQUIRED];
 
setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   CreateTagKeyRequest . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  setValidateOnly(boolean value) 
  
    
public   CreateTagKeyRequest . Builder   setValidateOnly ( boolean   value )  
   Optional. Set to true to perform validations necessary for creating the
 resource, but not actually perform the action.
 bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Parameter  
      
        Name Description  
      
        valueboolean The validateOnly to set.
 
     
  
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-29 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]