Class CreateTagValueRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateTagValueRequest.Builder>
com.google.cloud.resourcemanager.v3.CreateTagValueRequest.Builder
All Implemented Interfaces:
CreateTagValueRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateTagValueRequest

public static final class CreateTagValueRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateTagValueRequest.Builder> implements CreateTagValueRequestOrBuilder
 The request message for creating a TagValue.
 
Protobuf type google.cloud.resourcemanager.v3.CreateTagValueRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CreateTagValueRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CreateTagValueRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CreateTagValueRequest.Builder>
    • getDefaultInstanceForType

      public CreateTagValueRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public CreateTagValueRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CreateTagValueRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CreateTagValueRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateTagValueRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<CreateTagValueRequest.Builder>
    • mergeFrom

      public CreateTagValueRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateTagValueRequest.Builder>
      Throws:
      IOException
    • hasTagValue

      public boolean hasTagValue()
       Required. The TagValue to be created. Only fields `short_name`,
       `description`, and `parent` are considered during the creation request.
       
      .google.cloud.resourcemanager.v3.TagValue tag_value = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasTagValue in interface CreateTagValueRequestOrBuilder
      Returns:
      Whether the tagValue field is set.
    • getTagValue

      public TagValue getTagValue()
       Required. The TagValue to be created. Only fields `short_name`,
       `description`, and `parent` are considered during the creation request.
       
      .google.cloud.resourcemanager.v3.TagValue tag_value = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTagValue in interface CreateTagValueRequestOrBuilder
      Returns:
      The tagValue.
    • setTagValue

      public CreateTagValueRequest.Builder setTagValue(TagValue value)
       Required. The TagValue to be created. Only fields `short_name`,
       `description`, and `parent` are considered during the creation request.
       
      .google.cloud.resourcemanager.v3.TagValue tag_value = 1 [(.google.api.field_behavior) = REQUIRED];
    • setTagValue

      public CreateTagValueRequest.Builder setTagValue(TagValue.Builder builderForValue)
       Required. The TagValue to be created. Only fields `short_name`,
       `description`, and `parent` are considered during the creation request.
       
      .google.cloud.resourcemanager.v3.TagValue tag_value = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeTagValue

      public CreateTagValueRequest.Builder mergeTagValue(TagValue value)
       Required. The TagValue to be created. Only fields `short_name`,
       `description`, and `parent` are considered during the creation request.
       
      .google.cloud.resourcemanager.v3.TagValue tag_value = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearTagValue

      public CreateTagValueRequest.Builder clearTagValue()
       Required. The TagValue to be created. Only fields `short_name`,
       `description`, and `parent` are considered during the creation request.
       
      .google.cloud.resourcemanager.v3.TagValue tag_value = 1 [(.google.api.field_behavior) = REQUIRED];
    • getTagValueBuilder

      public TagValue.Builder getTagValueBuilder()
       Required. The TagValue to be created. Only fields `short_name`,
       `description`, and `parent` are considered during the creation request.
       
      .google.cloud.resourcemanager.v3.TagValue tag_value = 1 [(.google.api.field_behavior) = REQUIRED];
    • getTagValueOrBuilder

      public TagValueOrBuilder getTagValueOrBuilder()
       Required. The TagValue to be created. Only fields `short_name`,
       `description`, and `parent` are considered during the creation request.
       
      .google.cloud.resourcemanager.v3.TagValue tag_value = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTagValueOrBuilder in interface CreateTagValueRequestOrBuilder
    • getValidateOnly

      public boolean getValidateOnly()
       Optional. Set as true to perform the validations necessary for creating the
       resource, but not actually perform the action.
       
      bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getValidateOnly in interface CreateTagValueRequestOrBuilder
      Returns:
      The validateOnly.
    • setValidateOnly

      public CreateTagValueRequest.Builder setValidateOnly(boolean value)
       Optional. Set as true to perform the validations necessary for creating the
       resource, but not actually perform the action.
       
      bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The validateOnly to set.
      Returns:
      This builder for chaining.
    • clearValidateOnly

      public CreateTagValueRequest.Builder clearValidateOnly()
       Optional. Set as true to perform the validations necessary for creating the
       resource, but not actually perform the action.
       
      bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.