Class CreateTagRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateTagRequest.Builder>
com.google.cloud.datacatalog.v1beta1.CreateTagRequest.Builder
All Implemented Interfaces:
CreateTagRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateTagRequest

public static final class CreateTagRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateTagRequest.Builder> implements CreateTagRequestOrBuilder
 Request message for
 [CreateTag][google.cloud.datacatalog.v1beta1.DataCatalog.CreateTag].
 
Protobuf type google.cloud.datacatalog.v1beta1.CreateTagRequest
  • 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<CreateTagRequest.Builder>
    • clear

      public CreateTagRequest.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<CreateTagRequest.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<CreateTagRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public CreateTagRequest.Builder mergeFrom(CreateTagRequest other)
    • isInitialized

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

      public CreateTagRequest.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<CreateTagRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The name of the resource to attach this tag to. Tags can be
       attached to
       Entries. Example:
      
       * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
      
       Note that this Tag and its child resources may not actually be stored in
       the location in this name.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateTagRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The name of the resource to attach this tag to. Tags can be
       attached to
       Entries. Example:
      
       * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
      
       Note that this Tag and its child resources may not actually be stored in
       the location in this name.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateTagRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateTagRequest.Builder setParent(String value)
       Required. The name of the resource to attach this tag to. Tags can be
       attached to
       Entries. Example:
      
       * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
      
       Note that this Tag and its child resources may not actually be stored in
       the location in this name.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public CreateTagRequest.Builder clearParent()
       Required. The name of the resource to attach this tag to. Tags can be
       attached to
       Entries. Example:
      
       * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
      
       Note that this Tag and its child resources may not actually be stored in
       the location in this name.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateTagRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The name of the resource to attach this tag to. Tags can be
       attached to
       Entries. Example:
      
       * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
      
       Note that this Tag and its child resources may not actually be stored in
       the location in this name.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • hasTag

      public boolean hasTag()
       Required. The tag to create.
       
      .google.cloud.datacatalog.v1beta1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasTag in interface CreateTagRequestOrBuilder
      Returns:
      Whether the tag field is set.
    • getTag

      public Tag getTag()
       Required. The tag to create.
       
      .google.cloud.datacatalog.v1beta1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTag in interface CreateTagRequestOrBuilder
      Returns:
      The tag.
    • setTag

      public CreateTagRequest.Builder setTag(Tag value)
       Required. The tag to create.
       
      .google.cloud.datacatalog.v1beta1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED];
    • setTag

      public CreateTagRequest.Builder setTag(Tag.Builder builderForValue)
       Required. The tag to create.
       
      .google.cloud.datacatalog.v1beta1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeTag

      public CreateTagRequest.Builder mergeTag(Tag value)
       Required. The tag to create.
       
      .google.cloud.datacatalog.v1beta1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearTag

      public CreateTagRequest.Builder clearTag()
       Required. The tag to create.
       
      .google.cloud.datacatalog.v1beta1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED];
    • getTagBuilder

      public Tag.Builder getTagBuilder()
       Required. The tag to create.
       
      .google.cloud.datacatalog.v1beta1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED];
    • getTagOrBuilder

      public TagOrBuilder getTagOrBuilder()
       Required. The tag to create.
       
      .google.cloud.datacatalog.v1beta1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTagOrBuilder in interface CreateTagRequestOrBuilder