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 Summary
Modifier and TypeMethodDescriptionbuild()clear()The description for this field.The display name for this field.Whether this is a required field.Output only.The order of this field with respect to other fields in this tag template.Required.The description for this field.com.google.protobuf.ByteStringThe description for this field.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe display name for this field.com.google.protobuf.ByteStringThe display name for this field.booleanWhether this is a required field.getName()Output only.com.google.protobuf.ByteStringOutput only.intgetOrder()The order of this field with respect to other fields in this tag template.getType()Required.Required.Required.booleanhasType()Required.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(TagTemplateField other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Required.setDescription(String value) The description for this field.setDescriptionBytes(com.google.protobuf.ByteString value) The description for this field.setDisplayName(String value) The display name for this field.setDisplayNameBytes(com.google.protobuf.ByteString value) The display name for this field.setIsRequired(boolean value) Whether this is a required field.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setOrder(int value) The order of this field with respect to other fields in this tag template.Required.setType(FieldType.Builder builderForValue) Required.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<TagTemplateField.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<TagTemplateField.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<TagTemplateField.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<TagTemplateField.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TagTemplateField.Builder>- Throws:
IOException
-
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:
getNamein interfaceTagTemplateFieldOrBuilder- 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:
getNameBytesin interfaceTagTemplateFieldOrBuilder- Returns:
- The bytes for name.
-
setName
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
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
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
The display name for this field. Defaults to an empty string.
string display_name = 1;- Specified by:
getDisplayNamein interfaceTagTemplateFieldOrBuilder- 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:
getDisplayNameBytesin interfaceTagTemplateFieldOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
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
The display name for this field. Defaults to an empty string.
string display_name = 1;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
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:
hasTypein interfaceTagTemplateFieldOrBuilder- Returns:
- Whether the type field is set.
-
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:
getTypein interfaceTagTemplateFieldOrBuilder- Returns:
- The type.
-
setType
Required. The type of value this tag field can contain.
.google.cloud.datacatalog.v1beta1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; -
setType
Required. The type of value this tag field can contain.
.google.cloud.datacatalog.v1beta1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; -
mergeType
Required. The type of value this tag field can contain.
.google.cloud.datacatalog.v1beta1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; -
clearType
Required. The type of value this tag field can contain.
.google.cloud.datacatalog.v1beta1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; -
getTypeBuilder
Required. The type of value this tag field can contain.
.google.cloud.datacatalog.v1beta1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; -
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:
getTypeOrBuilderin interfaceTagTemplateFieldOrBuilder
-
getIsRequired
public boolean getIsRequired()Whether this is a required field. Defaults to false.
bool is_required = 3;- Specified by:
getIsRequiredin interfaceTagTemplateFieldOrBuilder- Returns:
- The isRequired.
-
setIsRequired
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
Whether this is a required field. Defaults to false.
bool is_required = 3;- Returns:
- This builder for chaining.
-
getDescription
The description for this field. Defaults to an empty string.
string description = 4;- Specified by:
getDescriptionin interfaceTagTemplateFieldOrBuilder- 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:
getDescriptionBytesin interfaceTagTemplateFieldOrBuilder- Returns:
- The bytes for description.
-
setDescription
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
The description for this field. Defaults to an empty string.
string description = 4;- Returns:
- This builder for chaining.
-
setDescriptionBytes
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:
getOrderin interfaceTagTemplateFieldOrBuilder- Returns:
- The order.
-
setOrder
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
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.
-