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.v1beta1.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 supporting information for a field within
 a [Tag][google.cloud.datacatalog.v1beta1.Tag].
 
Protobuf type google.cloud.datacatalog.v1beta1.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()
       Holds the value for a tag field with double type.
       
      double double_value = 2;
      Specified by:
      hasDoubleValue in interface TagFieldOrBuilder
      Returns:
      Whether the doubleValue field is set.
    • getDoubleValue

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

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

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

      public boolean hasStringValue()
       Holds the value for a tag field with string type.
       
      string string_value = 3;
      Specified by:
      hasStringValue in interface TagFieldOrBuilder
      Returns:
      Whether the stringValue field is set.
    • getStringValue

      public String getStringValue()
       Holds the value for a tag field with string type.
       
      string string_value = 3;
      Specified by:
      getStringValue in interface TagFieldOrBuilder
      Returns:
      The stringValue.
    • getStringValueBytes

      public com.google.protobuf.ByteString getStringValueBytes()
       Holds the value for a tag field with string type.
       
      string string_value = 3;
      Specified by:
      getStringValueBytes in interface TagFieldOrBuilder
      Returns:
      The bytes for stringValue.
    • setStringValue

      public TagField.Builder setStringValue(String value)
       Holds the value for a tag field with string type.
       
      string string_value = 3;
      Parameters:
      value - The stringValue to set.
      Returns:
      This builder for chaining.
    • clearStringValue

      public TagField.Builder clearStringValue()
       Holds the value for a tag field with string type.
       
      string string_value = 3;
      Returns:
      This builder for chaining.
    • setStringValueBytes

      public TagField.Builder setStringValueBytes(com.google.protobuf.ByteString value)
       Holds the value for a tag field with string type.
       
      string string_value = 3;
      Parameters:
      value - The bytes for stringValue to set.
      Returns:
      This builder for chaining.
    • hasBoolValue

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

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

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

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

      public boolean hasTimestampValue()
       Holds the value for a tag field with 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()
       Holds the value for a tag field with 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)
       Holds the value for a tag field with timestamp type.
       
      .google.protobuf.Timestamp timestamp_value = 5;
    • setTimestampValue

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

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

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

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

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

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

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

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

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

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

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

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

      public TagField.EnumValueOrBuilder getEnumValueOrBuilder()
       Holds the value for a tag field with enum type. This value must be
       one of the allowed values in the definition of this enum.
       
      .google.cloud.datacatalog.v1beta1.TagField.EnumValue enum_value = 6;
      Specified by:
      getEnumValueOrBuilder in interface TagFieldOrBuilder
    • getOrder

      public int getOrder()
       Output only. The order of this field with respect to other fields in this
       tag. It can be set in
       [Tag][google.cloud.datacatalog.v1beta1.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 do not 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. It can be set in
       [Tag][google.cloud.datacatalog.v1beta1.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 do not 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. It can be set in
       [Tag][google.cloud.datacatalog.v1beta1.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 do not have to be sequential.
       
      int32 order = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.