Class TagTemplateField.Builder

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

public static final class TagTemplateField.Builder extends com.google.protobuf.GeneratedMessage.Builder<TagTemplateField.Builder> implements TagTemplateFieldOrBuilder
 The template for an individual field within a tag template.
 
Protobuf type google.cloud.datacatalog.v1beta1.TagTemplateField
  • 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<TagTemplateField.Builder>
    • clear

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

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

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

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

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

      public TagTemplateField.Builder mergeFrom(TagTemplateField other)
    • isInitialized

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

      public TagTemplateField.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<TagTemplateField.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Output only. Identifier. The resource name of the tag template field in URL
       format. Example:
      
       * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field}
      
       Note that this TagTemplateField may not actually be stored in the location
       in this name.
       
      string name = 6 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface TagTemplateFieldOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. Identifier. The resource name of the tag template field in URL
       format. Example:
      
       * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field}
      
       Note that this TagTemplateField may not actually be stored in the location
       in this name.
       
      string name = 6 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface TagTemplateFieldOrBuilder
      Returns:
      The bytes for name.
    • setName

      public TagTemplateField.Builder setName(String value)
       Output only. Identifier. The resource name of the tag template field in URL
       format. Example:
      
       * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field}
      
       Note that this TagTemplateField may not actually be stored in the location
       in this name.
       
      string name = 6 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public TagTemplateField.Builder clearName()
       Output only. Identifier. The resource name of the tag template field in URL
       format. Example:
      
       * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field}
      
       Note that this TagTemplateField may not actually be stored in the location
       in this name.
       
      string name = 6 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public TagTemplateField.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. Identifier. The resource name of the tag template field in URL
       format. Example:
      
       * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field}
      
       Note that this TagTemplateField may not actually be stored in the location
       in this name.
       
      string name = 6 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       The display name for this field. Defaults to an empty string.
       
      string display_name = 1;
      Specified by:
      getDisplayName in interface TagTemplateFieldOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       The display name for this field. Defaults to an empty string.
       
      string display_name = 1;
      Specified by:
      getDisplayNameBytes in interface TagTemplateFieldOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public TagTemplateField.Builder setDisplayName(String value)
       The display name for this field. Defaults to an empty string.
       
      string display_name = 1;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public TagTemplateField.Builder clearDisplayName()
       The display name for this field. Defaults to an empty string.
       
      string display_name = 1;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public TagTemplateField.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       The display name for this field. Defaults to an empty string.
       
      string display_name = 1;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • hasType

      public boolean hasType()
       Required. The type of value this tag field can contain.
       
      .google.cloud.datacatalog.v1beta1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasType in interface TagTemplateFieldOrBuilder
      Returns:
      Whether the type field is set.
    • getType

      public FieldType getType()
       Required. The type of value this tag field can contain.
       
      .google.cloud.datacatalog.v1beta1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getType in interface TagTemplateFieldOrBuilder
      Returns:
      The type.
    • setType

      public TagTemplateField.Builder setType(FieldType value)
       Required. The type of value this tag field can contain.
       
      .google.cloud.datacatalog.v1beta1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED];
    • setType

      public TagTemplateField.Builder setType(FieldType.Builder builderForValue)
       Required. The type of value this tag field can contain.
       
      .google.cloud.datacatalog.v1beta1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeType

      public TagTemplateField.Builder mergeType(FieldType value)
       Required. The type of value this tag field can contain.
       
      .google.cloud.datacatalog.v1beta1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearType

      public TagTemplateField.Builder clearType()
       Required. The type of value this tag field can contain.
       
      .google.cloud.datacatalog.v1beta1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED];
    • getTypeBuilder

      public FieldType.Builder getTypeBuilder()
       Required. The type of value this tag field can contain.
       
      .google.cloud.datacatalog.v1beta1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED];
    • getTypeOrBuilder

      public FieldTypeOrBuilder getTypeOrBuilder()
       Required. The type of value this tag field can contain.
       
      .google.cloud.datacatalog.v1beta1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTypeOrBuilder in interface TagTemplateFieldOrBuilder
    • getIsRequired

      public boolean getIsRequired()
       Whether this is a required field. Defaults to false.
       
      bool is_required = 3;
      Specified by:
      getIsRequired in interface TagTemplateFieldOrBuilder
      Returns:
      The isRequired.
    • setIsRequired

      public TagTemplateField.Builder setIsRequired(boolean value)
       Whether this is a required field. Defaults to false.
       
      bool is_required = 3;
      Parameters:
      value - The isRequired to set.
      Returns:
      This builder for chaining.
    • clearIsRequired

      public TagTemplateField.Builder clearIsRequired()
       Whether this is a required field. Defaults to false.
       
      bool is_required = 3;
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       The description for this field. Defaults to an empty string.
       
      string description = 4;
      Specified by:
      getDescription in interface TagTemplateFieldOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       The description for this field. Defaults to an empty string.
       
      string description = 4;
      Specified by:
      getDescriptionBytes in interface TagTemplateFieldOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public TagTemplateField.Builder setDescription(String value)
       The description for this field. Defaults to an empty string.
       
      string description = 4;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public TagTemplateField.Builder clearDescription()
       The description for this field. Defaults to an empty string.
       
      string description = 4;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public TagTemplateField.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       The description for this field. Defaults to an empty string.
       
      string description = 4;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getOrder

      public int getOrder()
       The order of this field with respect to other fields in this tag
       template.  A higher value indicates a more important field. The value can
       be negative. Multiple fields can have the same order, and field orders
       within a tag do not have to be sequential.
       
      int32 order = 5;
      Specified by:
      getOrder in interface TagTemplateFieldOrBuilder
      Returns:
      The order.
    • setOrder

      public TagTemplateField.Builder setOrder(int value)
       The order of this field with respect to other fields in this tag
       template.  A higher value indicates a more important field. The value can
       be negative. Multiple fields can have the same order, and field orders
       within a tag do not have to be sequential.
       
      int32 order = 5;
      Parameters:
      value - The order to set.
      Returns:
      This builder for chaining.
    • clearOrder

      public TagTemplateField.Builder clearOrder()
       The order of this field with respect to other fields in this tag
       template.  A higher value indicates a more important field. The value can
       be negative. Multiple fields can have the same order, and field orders
       within a tag do not have to be sequential.
       
      int32 order = 5;
      Returns:
      This builder for chaining.