Package com.google.cloud.datacatalog.v1
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 Summary
Modifier and TypeMethodDescriptionbuild()clear()The value of a tag field with a boolean type.Output only.The value of a tag field with a double type.The value of a tag field with an enum type.Output only.The value of a tag field with a rich text type.The value of a tag field with a string type.The value of a tag field with a timestamp type.booleanThe value of a tag field with a boolean type.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.doubleThe value of a tag field with a double type.The value of a tag field with an enum type.The value of a tag field with an enum type.The value of a tag field with an enum type.intgetOrder()Output only.The value of a tag field with a rich text type.com.google.protobuf.ByteStringThe value of a tag field with a rich text type.The value of a tag field with a string type.com.google.protobuf.ByteStringThe value of a tag field with a string type.com.google.protobuf.TimestampThe value of a tag field with a timestamp type.com.google.protobuf.Timestamp.BuilderThe value of a tag field with a timestamp type.com.google.protobuf.TimestampOrBuilderThe value of a tag field with a timestamp type.booleanThe value of a tag field with a boolean type.booleanThe value of a tag field with a double type.booleanThe value of a tag field with an enum type.booleanThe value of a tag field with a rich text type.booleanThe value of a tag field with a string type.booleanThe value of a tag field with a timestamp type.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeEnumValue(TagField.EnumValue value) The value of a tag field with an enum type.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeTimestampValue(com.google.protobuf.Timestamp value) The value of a tag field with a timestamp type.setBoolValue(boolean value) The value of a tag field with a boolean type.setDisplayName(String value) Output only.setDisplayNameBytes(com.google.protobuf.ByteString value) Output only.setDoubleValue(double value) The value of a tag field with a double type.setEnumValue(TagField.EnumValue value) The value of a tag field with an enum type.setEnumValue(TagField.EnumValue.Builder builderForValue) The value of a tag field with an enum type.setOrder(int value) Output only.setRichtextValue(String value) The value of a tag field with a rich text type.setRichtextValueBytes(com.google.protobuf.ByteString value) The value of a tag field with a rich text type.setStringValue(String value) The value of a tag field with a string type.setStringValueBytes(com.google.protobuf.ByteString value) The value of a tag field with a string type.setTimestampValue(com.google.protobuf.Timestamp value) The value of a tag field with a timestamp type.setTimestampValue(com.google.protobuf.Timestamp.Builder builderForValue) The value of a tag field with a timestamp type.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<TagField.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<TagField.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<TagField.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TagField.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TagField.Builder>- Throws:
IOException
-
getKindCase
- Specified by:
getKindCasein interfaceTagFieldOrBuilder
-
clearKind
-
getDisplayName
Output only. The display name of this field.
string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDisplayNamein interfaceTagFieldOrBuilder- 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:
getDisplayNameBytesin interfaceTagFieldOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
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
Output only. The display name of this field.
string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setDisplayNameBytes
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:
hasDoubleValuein interfaceTagFieldOrBuilder- 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:
getDoubleValuein interfaceTagFieldOrBuilder- Returns:
- The doubleValue.
-
setDoubleValue
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
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:
hasStringValuein interfaceTagFieldOrBuilder- Returns:
- Whether the stringValue field is set.
-
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:
getStringValuein interfaceTagFieldOrBuilder- 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:
getStringValueBytesin interfaceTagFieldOrBuilder- Returns:
- The bytes for stringValue.
-
setStringValue
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
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
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:
hasBoolValuein interfaceTagFieldOrBuilder- 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:
getBoolValuein interfaceTagFieldOrBuilder- Returns:
- The boolValue.
-
setBoolValue
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
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:
hasTimestampValuein interfaceTagFieldOrBuilder- 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:
getTimestampValuein interfaceTagFieldOrBuilder- Returns:
- The timestampValue.
-
setTimestampValue
The value of a tag field with a timestamp type.
.google.protobuf.Timestamp timestamp_value = 5; -
setTimestampValue
The value of a tag field with a timestamp type.
.google.protobuf.Timestamp timestamp_value = 5; -
mergeTimestampValue
The value of a tag field with a timestamp type.
.google.protobuf.Timestamp timestamp_value = 5; -
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:
getTimestampValueOrBuilderin interfaceTagFieldOrBuilder
-
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:
hasEnumValuein interfaceTagFieldOrBuilder- Returns:
- Whether the enumValue field is set.
-
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:
getEnumValuein interfaceTagFieldOrBuilder- Returns:
- The enumValue.
-
setEnumValue
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
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
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
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
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
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:
getEnumValueOrBuilderin interfaceTagFieldOrBuilder
-
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:
hasRichtextValuein interfaceTagFieldOrBuilder- Returns:
- Whether the richtextValue field is set.
-
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:
getRichtextValuein interfaceTagFieldOrBuilder- 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:
getRichtextValueBytesin interfaceTagFieldOrBuilder- Returns:
- The bytes for richtextValue.
-
setRichtextValue
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
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
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:
getOrderin interfaceTagFieldOrBuilder- Returns:
- The order.
-
setOrder
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
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.
-