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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Holds the value for a tag field with boolean type.Output only.Holds the value for a tag field with double type.Holds the value for a tag field with enum type.Output only.Holds the value for a tag field with string type.Holds the value for a tag field with timestamp type.booleanHolds the value for a tag field with boolean type.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.doubleHolds the value for a tag field with double type.Holds the value for a tag field with enum type.Holds the value for a tag field with enum type.Holds the value for a tag field with enum type.intgetOrder()Output only.Holds the value for a tag field with string type.com.google.protobuf.ByteStringHolds the value for a tag field with string type.com.google.protobuf.TimestampHolds the value for a tag field with timestamp type.com.google.protobuf.Timestamp.BuilderHolds the value for a tag field with timestamp type.com.google.protobuf.TimestampOrBuilderHolds the value for a tag field with timestamp type.booleanHolds the value for a tag field with boolean type.booleanHolds the value for a tag field with double type.booleanHolds the value for a tag field with enum type.booleanHolds the value for a tag field with string type.booleanHolds the value for a tag field with timestamp type.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeEnumValue(TagField.EnumValue value) Holds the value for a tag field with 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) Holds the value for a tag field with timestamp type.setBoolValue(boolean value) Holds the value for a tag field with boolean type.setDisplayName(String value) Output only.setDisplayNameBytes(com.google.protobuf.ByteString value) Output only.setDoubleValue(double value) Holds the value for a tag field with double type.setEnumValue(TagField.EnumValue value) Holds the value for a tag field with enum type.setEnumValue(TagField.EnumValue.Builder builderForValue) Holds the value for a tag field with enum type.setOrder(int value) Output only.setStringValue(String value) Holds the value for a tag field with string type.setStringValueBytes(com.google.protobuf.ByteString value) Holds the value for a tag field with string type.setTimestampValue(com.google.protobuf.Timestamp value) Holds the value for a tag field with timestamp type.setTimestampValue(com.google.protobuf.Timestamp.Builder builderForValue) Holds the value for a tag field with 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()Holds the value for a tag field with double type.
double double_value = 2;- Specified by:
hasDoubleValuein interfaceTagFieldOrBuilder- 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:
getDoubleValuein interfaceTagFieldOrBuilder- Returns:
- The doubleValue.
-
setDoubleValue
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
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:
hasStringValuein interfaceTagFieldOrBuilder- Returns:
- Whether the stringValue field is set.
-
getStringValue
Holds the value for a tag field with string type.
string string_value = 3;- Specified by:
getStringValuein interfaceTagFieldOrBuilder- 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:
getStringValueBytesin interfaceTagFieldOrBuilder- Returns:
- The bytes for stringValue.
-
setStringValue
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
Holds the value for a tag field with string type.
string string_value = 3;- Returns:
- This builder for chaining.
-
setStringValueBytes
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:
hasBoolValuein interfaceTagFieldOrBuilder- 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:
getBoolValuein interfaceTagFieldOrBuilder- Returns:
- The boolValue.
-
setBoolValue
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
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:
hasTimestampValuein interfaceTagFieldOrBuilder- 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:
getTimestampValuein interfaceTagFieldOrBuilder- Returns:
- The timestampValue.
-
setTimestampValue
Holds the value for a tag field with timestamp type.
.google.protobuf.Timestamp timestamp_value = 5; -
setTimestampValue
Holds the value for a tag field with timestamp type.
.google.protobuf.Timestamp timestamp_value = 5; -
mergeTimestampValue
Holds the value for a tag field with timestamp type.
.google.protobuf.Timestamp timestamp_value = 5; -
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:
getTimestampValueOrBuilderin interfaceTagFieldOrBuilder
-
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:
hasEnumValuein interfaceTagFieldOrBuilder- Returns:
- Whether the enumValue field is set.
-
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:
getEnumValuein interfaceTagFieldOrBuilder- Returns:
- The enumValue.
-
setEnumValue
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
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
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
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
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
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:
getEnumValueOrBuilderin interfaceTagFieldOrBuilder
-
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:
getOrderin interfaceTagFieldOrBuilder- Returns:
- The order.
-
setOrder
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
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.
-