Class UpdateTagKeyRequest.Builder

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

public static final class UpdateTagKeyRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<UpdateTagKeyRequest.Builder> implements UpdateTagKeyRequestOrBuilder
 The request message for updating a TagKey.
 
Protobuf type google.cloud.resourcemanager.v3.UpdateTagKeyRequest
  • 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<UpdateTagKeyRequest.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<UpdateTagKeyRequest.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<UpdateTagKeyRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public UpdateTagKeyRequest.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<UpdateTagKeyRequest.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<UpdateTagKeyRequest.Builder>
    • mergeFrom

      public UpdateTagKeyRequest.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<UpdateTagKeyRequest.Builder>
      Throws:
      IOException
    • hasTagKey

      public boolean hasTagKey()
       Required. The new definition of the TagKey. Only the `description` and
       `etag` fields can be updated by this request. If the `etag` field is not
       empty, it must match the `etag` field of the existing tag key. Otherwise,
       `ABORTED` will be returned.
       
      .google.cloud.resourcemanager.v3.TagKey tag_key = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasTagKey in interface UpdateTagKeyRequestOrBuilder
      Returns:
      Whether the tagKey field is set.
    • getTagKey

      public TagKey getTagKey()
       Required. The new definition of the TagKey. Only the `description` and
       `etag` fields can be updated by this request. If the `etag` field is not
       empty, it must match the `etag` field of the existing tag key. Otherwise,
       `ABORTED` will be returned.
       
      .google.cloud.resourcemanager.v3.TagKey tag_key = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTagKey in interface UpdateTagKeyRequestOrBuilder
      Returns:
      The tagKey.
    • setTagKey

      public UpdateTagKeyRequest.Builder setTagKey(TagKey value)
       Required. The new definition of the TagKey. Only the `description` and
       `etag` fields can be updated by this request. If the `etag` field is not
       empty, it must match the `etag` field of the existing tag key. Otherwise,
       `ABORTED` will be returned.
       
      .google.cloud.resourcemanager.v3.TagKey tag_key = 1 [(.google.api.field_behavior) = REQUIRED];
    • setTagKey

      public UpdateTagKeyRequest.Builder setTagKey(TagKey.Builder builderForValue)
       Required. The new definition of the TagKey. Only the `description` and
       `etag` fields can be updated by this request. If the `etag` field is not
       empty, it must match the `etag` field of the existing tag key. Otherwise,
       `ABORTED` will be returned.
       
      .google.cloud.resourcemanager.v3.TagKey tag_key = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeTagKey

      public UpdateTagKeyRequest.Builder mergeTagKey(TagKey value)
       Required. The new definition of the TagKey. Only the `description` and
       `etag` fields can be updated by this request. If the `etag` field is not
       empty, it must match the `etag` field of the existing tag key. Otherwise,
       `ABORTED` will be returned.
       
      .google.cloud.resourcemanager.v3.TagKey tag_key = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearTagKey

      public UpdateTagKeyRequest.Builder clearTagKey()
       Required. The new definition of the TagKey. Only the `description` and
       `etag` fields can be updated by this request. If the `etag` field is not
       empty, it must match the `etag` field of the existing tag key. Otherwise,
       `ABORTED` will be returned.
       
      .google.cloud.resourcemanager.v3.TagKey tag_key = 1 [(.google.api.field_behavior) = REQUIRED];
    • getTagKeyBuilder

      public TagKey.Builder getTagKeyBuilder()
       Required. The new definition of the TagKey. Only the `description` and
       `etag` fields can be updated by this request. If the `etag` field is not
       empty, it must match the `etag` field of the existing tag key. Otherwise,
       `ABORTED` will be returned.
       
      .google.cloud.resourcemanager.v3.TagKey tag_key = 1 [(.google.api.field_behavior) = REQUIRED];
    • getTagKeyOrBuilder

      public TagKeyOrBuilder getTagKeyOrBuilder()
       Required. The new definition of the TagKey. Only the `description` and
       `etag` fields can be updated by this request. If the `etag` field is not
       empty, it must match the `etag` field of the existing tag key. Otherwise,
       `ABORTED` will be returned.
       
      .google.cloud.resourcemanager.v3.TagKey tag_key = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTagKeyOrBuilder in interface UpdateTagKeyRequestOrBuilder
    • hasUpdateMask

      public boolean hasUpdateMask()
       Fields to be updated. The mask may only contain `description` or
       `etag`. If omitted entirely, both `description` and `etag` are assumed to
       be significant.
       
      .google.protobuf.FieldMask update_mask = 2;
      Specified by:
      hasUpdateMask in interface UpdateTagKeyRequestOrBuilder
      Returns:
      Whether the updateMask field is set.
    • getUpdateMask

      public com.google.protobuf.FieldMask getUpdateMask()
       Fields to be updated. The mask may only contain `description` or
       `etag`. If omitted entirely, both `description` and `etag` are assumed to
       be significant.
       
      .google.protobuf.FieldMask update_mask = 2;
      Specified by:
      getUpdateMask in interface UpdateTagKeyRequestOrBuilder
      Returns:
      The updateMask.
    • setUpdateMask

      public UpdateTagKeyRequest.Builder setUpdateMask(com.google.protobuf.FieldMask value)
       Fields to be updated. The mask may only contain `description` or
       `etag`. If omitted entirely, both `description` and `etag` are assumed to
       be significant.
       
      .google.protobuf.FieldMask update_mask = 2;
    • setUpdateMask

      public UpdateTagKeyRequest.Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
       Fields to be updated. The mask may only contain `description` or
       `etag`. If omitted entirely, both `description` and `etag` are assumed to
       be significant.
       
      .google.protobuf.FieldMask update_mask = 2;
    • mergeUpdateMask

      public UpdateTagKeyRequest.Builder mergeUpdateMask(com.google.protobuf.FieldMask value)
       Fields to be updated. The mask may only contain `description` or
       `etag`. If omitted entirely, both `description` and `etag` are assumed to
       be significant.
       
      .google.protobuf.FieldMask update_mask = 2;
    • clearUpdateMask

      public UpdateTagKeyRequest.Builder clearUpdateMask()
       Fields to be updated. The mask may only contain `description` or
       `etag`. If omitted entirely, both `description` and `etag` are assumed to
       be significant.
       
      .google.protobuf.FieldMask update_mask = 2;
    • getUpdateMaskBuilder

      public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
       Fields to be updated. The mask may only contain `description` or
       `etag`. If omitted entirely, both `description` and `etag` are assumed to
       be significant.
       
      .google.protobuf.FieldMask update_mask = 2;
    • getUpdateMaskOrBuilder

      public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
       Fields to be updated. The mask may only contain `description` or
       `etag`. If omitted entirely, both `description` and `etag` are assumed to
       be significant.
       
      .google.protobuf.FieldMask update_mask = 2;
      Specified by:
      getUpdateMaskOrBuilder in interface UpdateTagKeyRequestOrBuilder
    • getValidateOnly

      public boolean getValidateOnly()
       Set as true to perform validations necessary for updating the resource, but
       not actually perform the action.
       
      bool validate_only = 3;
      Specified by:
      getValidateOnly in interface UpdateTagKeyRequestOrBuilder
      Returns:
      The validateOnly.
    • setValidateOnly

      public UpdateTagKeyRequest.Builder setValidateOnly(boolean value)
       Set as true to perform validations necessary for updating the resource, but
       not actually perform the action.
       
      bool validate_only = 3;
      Parameters:
      value - The validateOnly to set.
      Returns:
      This builder for chaining.
    • clearValidateOnly

      public UpdateTagKeyRequest.Builder clearValidateOnly()
       Set as true to perform validations necessary for updating the resource, but
       not actually perform the action.
       
      bool validate_only = 3;
      Returns:
      This builder for chaining.