Class TagField.Builder

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

public static final class TagField.Builder extends com.google.protobuf.GeneratedMessage.Builder<TagField.Builder> implements TagFieldOrBuilder
 Contains the value and additional information on a field within
 a [Tag][google.cloud.datacatalog.v1.Tag].
 
Protobuf type google.cloud.datacatalog.v1.TagField
  • 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<TagField.Builder>
    • clear

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

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

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

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

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

      public TagField.Builder mergeFrom(TagField other)
    • isInitialized

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

      public TagField.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<TagField.Builder>
      Throws:
      IOException
    • getKindCase

      public TagField.KindCase getKindCase()
      Specified by:
      getKindCase in interface TagFieldOrBuilder
    • clearKind

      public TagField.Builder clearKind()
    • getDisplayName

      public String getDisplayName()
       Output only. The display name of this field.
       
      string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDisplayName in interface TagFieldOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Output only. The display name of this field.
       
      string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDisplayNameBytes in interface TagFieldOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public TagField.Builder setDisplayName(String value)
       Output only. The display name of this field.
       
      string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public TagField.Builder clearDisplayName()
       Output only. The display name of this field.
       
      string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public TagField.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Output only. The display name of this field.
       
      string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • hasDoubleValue

      public boolean hasDoubleValue()
       The value of a tag field with a double type.
       
      double double_value = 2;
      Specified by:
      hasDoubleValue in interface TagFieldOrBuilder
      Returns:
      Whether the doubleValue field is set.
    • getDoubleValue

      public double getDoubleValue()
       The value of a tag field with a double type.
       
      double double_value = 2;
      Specified by:
      getDoubleValue in interface TagFieldOrBuilder
      Returns:
      The doubleValue.
    • setDoubleValue

      public TagField.Builder setDoubleValue(double value)
       The value of a tag field with a double type.
       
      double double_value = 2;
      Parameters:
      value - The doubleValue to set.
      Returns:
      This builder for chaining.
    • clearDoubleValue

      public TagField.Builder clearDoubleValue()
       The value of a tag field with a double type.
       
      double double_value = 2;
      Returns:
      This builder for chaining.
    • hasStringValue

      public boolean hasStringValue()
       The value of a tag field with a string type.
      
       The maximum length is 2000 UTF-8 characters.
       
      string string_value = 3;
      Specified by:
      hasStringValue in interface TagFieldOrBuilder
      Returns:
      Whether the stringValue field is set.
    • getStringValue

      public String getStringValue()
       The value of a tag field with a string type.
      
       The maximum length is 2000 UTF-8 characters.
       
      string string_value = 3;
      Specified by:
      getStringValue in interface TagFieldOrBuilder
      Returns:
      The stringValue.
    • getStringValueBytes

      public com.google.protobuf.ByteString getStringValueBytes()
       The value of a tag field with a string type.
      
       The maximum length is 2000 UTF-8 characters.
       
      string string_value = 3;
      Specified by:
      getStringValueBytes in interface TagFieldOrBuilder
      Returns:
      The bytes for stringValue.
    • setStringValue

      public TagField.Builder setStringValue(String value)
       The value of a tag field with a string type.
      
       The maximum length is 2000 UTF-8 characters.
       
      string string_value = 3;
      Parameters:
      value - The stringValue to set.
      Returns:
      This builder for chaining.
    • clearStringValue

      public TagField.Builder clearStringValue()
       The value of a tag field with a string type.
      
       The maximum length is 2000 UTF-8 characters.
       
      string string_value = 3;
      Returns:
      This builder for chaining.
    • setStringValueBytes

      public TagField.Builder setStringValueBytes(com.google.protobuf.ByteString value)
       The value of a tag field with a string type.
      
       The maximum length is 2000 UTF-8 characters.
       
      string string_value = 3;
      Parameters:
      value - The bytes for stringValue to set.
      Returns:
      This builder for chaining.
    • hasBoolValue

      public boolean hasBoolValue()
       The value of a tag field with a boolean type.
       
      bool bool_value = 4;
      Specified by:
      hasBoolValue in interface TagFieldOrBuilder
      Returns:
      Whether the boolValue field is set.
    • getBoolValue

      public boolean getBoolValue()
       The value of a tag field with a boolean type.
       
      bool bool_value = 4;
      Specified by:
      getBoolValue in interface TagFieldOrBuilder
      Returns:
      The boolValue.
    • setBoolValue

      public TagField.Builder setBoolValue(boolean value)
       The value of a tag field with a boolean type.
       
      bool bool_value = 4;
      Parameters:
      value - The boolValue to set.
      Returns:
      This builder for chaining.
    • clearBoolValue

      public TagField.Builder clearBoolValue()
       The value of a tag field with a boolean type.
       
      bool bool_value = 4;
      Returns:
      This builder for chaining.
    • hasTimestampValue

      public boolean hasTimestampValue()
       The value of a tag field with a timestamp type.
       
      .google.protobuf.Timestamp timestamp_value = 5;
      Specified by:
      hasTimestampValue in interface TagFieldOrBuilder
      Returns:
      Whether the timestampValue field is set.
    • getTimestampValue

      public com.google.protobuf.Timestamp getTimestampValue()
       The value of a tag field with a timestamp type.
       
      .google.protobuf.Timestamp timestamp_value = 5;
      Specified by:
      getTimestampValue in interface TagFieldOrBuilder
      Returns:
      The timestampValue.
    • setTimestampValue

      public TagField.Builder setTimestampValue(com.google.protobuf.Timestamp value)
       The value of a tag field with a timestamp type.
       
      .google.protobuf.Timestamp timestamp_value = 5;
    • setTimestampValue

      public TagField.Builder setTimestampValue(com.google.protobuf.Timestamp.Builder builderForValue)
       The value of a tag field with a timestamp type.
       
      .google.protobuf.Timestamp timestamp_value = 5;
    • mergeTimestampValue

      public TagField.Builder mergeTimestampValue(com.google.protobuf.Timestamp value)
       The value of a tag field with a timestamp type.
       
      .google.protobuf.Timestamp timestamp_value = 5;
    • clearTimestampValue

      public TagField.Builder clearTimestampValue()
       The value of a tag field with a timestamp type.
       
      .google.protobuf.Timestamp timestamp_value = 5;
    • getTimestampValueBuilder

      public com.google.protobuf.Timestamp.Builder getTimestampValueBuilder()
       The value of a tag field with a timestamp type.
       
      .google.protobuf.Timestamp timestamp_value = 5;
    • getTimestampValueOrBuilder

      public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder()
       The value of a tag field with a timestamp type.
       
      .google.protobuf.Timestamp timestamp_value = 5;
      Specified by:
      getTimestampValueOrBuilder in interface TagFieldOrBuilder
    • hasEnumValue

      public boolean hasEnumValue()
       The value of a tag field with an enum type.
      
       This value must be one of the allowed values listed in this enum.
       
      .google.cloud.datacatalog.v1.TagField.EnumValue enum_value = 6;
      Specified by:
      hasEnumValue in interface TagFieldOrBuilder
      Returns:
      Whether the enumValue field is set.
    • getEnumValue

      public TagField.EnumValue getEnumValue()
       The value of a tag field with an enum type.
      
       This value must be one of the allowed values listed in this enum.
       
      .google.cloud.datacatalog.v1.TagField.EnumValue enum_value = 6;
      Specified by:
      getEnumValue in interface TagFieldOrBuilder
      Returns:
      The enumValue.
    • setEnumValue

      public TagField.Builder setEnumValue(TagField.EnumValue value)
       The value of a tag field with an enum type.
      
       This value must be one of the allowed values listed in this enum.
       
      .google.cloud.datacatalog.v1.TagField.EnumValue enum_value = 6;
    • setEnumValue

      public TagField.Builder setEnumValue(TagField.EnumValue.Builder builderForValue)
       The value of a tag field with an enum type.
      
       This value must be one of the allowed values listed in this enum.
       
      .google.cloud.datacatalog.v1.TagField.EnumValue enum_value = 6;
    • mergeEnumValue

      public TagField.Builder mergeEnumValue(TagField.EnumValue value)
       The value of a tag field with an enum type.
      
       This value must be one of the allowed values listed in this enum.
       
      .google.cloud.datacatalog.v1.TagField.EnumValue enum_value = 6;
    • clearEnumValue

      public TagField.Builder clearEnumValue()
       The value of a tag field with an enum type.
      
       This value must be one of the allowed values listed in this enum.
       
      .google.cloud.datacatalog.v1.TagField.EnumValue enum_value = 6;
    • getEnumValueBuilder

      public TagField.EnumValue.Builder getEnumValueBuilder()
       The value of a tag field with an enum type.
      
       This value must be one of the allowed values listed in this enum.
       
      .google.cloud.datacatalog.v1.TagField.EnumValue enum_value = 6;
    • getEnumValueOrBuilder

      public TagField.EnumValueOrBuilder getEnumValueOrBuilder()
       The value of a tag field with an enum type.
      
       This value must be one of the allowed values listed in this enum.
       
      .google.cloud.datacatalog.v1.TagField.EnumValue enum_value = 6;
      Specified by:
      getEnumValueOrBuilder in interface TagFieldOrBuilder
    • hasRichtextValue

      public boolean hasRichtextValue()
       The value of a tag field with a rich text type.
      
       The maximum length is 10 MiB as this value holds HTML descriptions
       including encoded images. The maximum length of the text without images
       is 100 KiB.
       
      string richtext_value = 8;
      Specified by:
      hasRichtextValue in interface TagFieldOrBuilder
      Returns:
      Whether the richtextValue field is set.
    • getRichtextValue

      public String getRichtextValue()
       The value of a tag field with a rich text type.
      
       The maximum length is 10 MiB as this value holds HTML descriptions
       including encoded images. The maximum length of the text without images
       is 100 KiB.
       
      string richtext_value = 8;
      Specified by:
      getRichtextValue in interface TagFieldOrBuilder
      Returns:
      The richtextValue.
    • getRichtextValueBytes

      public com.google.protobuf.ByteString getRichtextValueBytes()
       The value of a tag field with a rich text type.
      
       The maximum length is 10 MiB as this value holds HTML descriptions
       including encoded images. The maximum length of the text without images
       is 100 KiB.
       
      string richtext_value = 8;
      Specified by:
      getRichtextValueBytes in interface TagFieldOrBuilder
      Returns:
      The bytes for richtextValue.
    • setRichtextValue

      public TagField.Builder setRichtextValue(String value)
       The value of a tag field with a rich text type.
      
       The maximum length is 10 MiB as this value holds HTML descriptions
       including encoded images. The maximum length of the text without images
       is 100 KiB.
       
      string richtext_value = 8;
      Parameters:
      value - The richtextValue to set.
      Returns:
      This builder for chaining.
    • clearRichtextValue

      public TagField.Builder clearRichtextValue()
       The value of a tag field with a rich text type.
      
       The maximum length is 10 MiB as this value holds HTML descriptions
       including encoded images. The maximum length of the text without images
       is 100 KiB.
       
      string richtext_value = 8;
      Returns:
      This builder for chaining.
    • setRichtextValueBytes

      public TagField.Builder setRichtextValueBytes(com.google.protobuf.ByteString value)
       The value of a tag field with a rich text type.
      
       The maximum length is 10 MiB as this value holds HTML descriptions
       including encoded images. The maximum length of the text without images
       is 100 KiB.
       
      string richtext_value = 8;
      Parameters:
      value - The bytes for richtextValue to set.
      Returns:
      This builder for chaining.
    • getOrder

      public int getOrder()
       Output only. The order of this field with respect to other fields in this
       tag. Can be set by
       [Tag][google.cloud.datacatalog.v1.TagTemplateField.order].
      
       For example, a higher value can indicate a more important field.
       The value can be negative. Multiple fields can have the same order, and
       field orders within a tag don't have to be sequential.
       
      int32 order = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOrder in interface TagFieldOrBuilder
      Returns:
      The order.
    • setOrder

      public TagField.Builder setOrder(int value)
       Output only. The order of this field with respect to other fields in this
       tag. Can be set by
       [Tag][google.cloud.datacatalog.v1.TagTemplateField.order].
      
       For example, a higher value can indicate a more important field.
       The value can be negative. Multiple fields can have the same order, and
       field orders within a tag don't have to be sequential.
       
      int32 order = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The order to set.
      Returns:
      This builder for chaining.
    • clearOrder

      public TagField.Builder clearOrder()
       Output only. The order of this field with respect to other fields in this
       tag. Can be set by
       [Tag][google.cloud.datacatalog.v1.TagTemplateField.order].
      
       For example, a higher value can indicate a more important field.
       The value can be negative. Multiple fields can have the same order, and
       field orders within a tag don't have to be sequential.
       
      int32 order = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.