- 1.60.0 (latest)
- 1.59.0
- 1.58.0
- 1.57.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.48.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.36.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.0
- 1.9.5
- 1.8.4
- 1.7.2
- 1.6.2
- 1.5.4
public static final class Tag.Builder extends GeneratedMessageV3.Builder<Tag.Builder> implements TagOrBuilder
Tags are used to attach custom metadata to Data Catalog resources. Tags conform to the specifications within their tag template. See Data Catalog IAM for information on the permissions needed to create or view tags.
Protobuf type google.cloud.datacatalog.v1beta1.Tag
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Tag.BuilderImplements
TagOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Tag.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Tag.Builder |
build()
public Tag build()
Type | Description |
Tag |
buildPartial()
public Tag buildPartial()
Type | Description |
Tag |
clear()
public Tag.Builder clear()
Type | Description |
Tag.Builder |
clearColumn()
public Tag.Builder clearColumn()
Resources like Entry can have schemas associated with them. This scope
allows users to attach tags to an individual column based on that schema.
For attaching a tag to a nested column, use .
to separate the column
names. Example:
outer_column.inner_column
string column = 4;
Type | Description |
Tag.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Tag.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Tag.Builder |
clearFields()
public Tag.Builder clearFields()
Type | Description |
Tag.Builder |
clearName()
public Tag.Builder clearName()
The resource name of the tag in URL format. Example:
- projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id}
where
tag_id
is a system-generated identifier. Note that this Tag may not actually be stored in the location in this name.
string name = 1;
Type | Description |
Tag.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Tag.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Tag.Builder |
clearScope()
public Tag.Builder clearScope()
Type | Description |
Tag.Builder |
clearTemplate()
public Tag.Builder clearTemplate()
Required. The resource name of the tag template that this tag uses. Example:
- projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} This field cannot be modified after creation.
string template = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
Tag.Builder | This builder for chaining. |
clearTemplateDisplayName()
public Tag.Builder clearTemplateDisplayName()
Output only. The display name of the tag template.
string template_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Tag.Builder | This builder for chaining. |
clone()
public Tag.Builder clone()
Type | Description |
Tag.Builder |
containsFields(String key)
public boolean containsFields(String key)
Required. This maps the ID of a tag field to the value of and additional information about that field. Valid field IDs are defined by the tag's template. A tag must have at least 1 field and at most 500 fields.
map<string, .google.cloud.datacatalog.v1beta1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
key | String |
Type | Description |
boolean |
getColumn()
public String getColumn()
Resources like Entry can have schemas associated with them. This scope
allows users to attach tags to an individual column based on that schema.
For attaching a tag to a nested column, use .
to separate the column
names. Example:
outer_column.inner_column
string column = 4;
Type | Description |
String | The column. |
getColumnBytes()
public ByteString getColumnBytes()
Resources like Entry can have schemas associated with them. This scope
allows users to attach tags to an individual column based on that schema.
For attaching a tag to a nested column, use .
to separate the column
names. Example:
outer_column.inner_column
string column = 4;
Type | Description |
ByteString | The bytes for column. |
getDefaultInstanceForType()
public Tag getDefaultInstanceForType()
Type | Description |
Tag |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getFields()
public Map<String,TagField> getFields()
Use #getFieldsMap() instead.
Type | Description |
Map<String,TagField> |
getFieldsCount()
public int getFieldsCount()
Required. This maps the ID of a tag field to the value of and additional information about that field. Valid field IDs are defined by the tag's template. A tag must have at least 1 field and at most 500 fields.
map<string, .google.cloud.datacatalog.v1beta1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
int |
getFieldsMap()
public Map<String,TagField> getFieldsMap()
Required. This maps the ID of a tag field to the value of and additional information about that field. Valid field IDs are defined by the tag's template. A tag must have at least 1 field and at most 500 fields.
map<string, .google.cloud.datacatalog.v1beta1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
Map<String,TagField> |
getFieldsOrDefault(String key, TagField defaultValue)
public TagField getFieldsOrDefault(String key, TagField defaultValue)
Required. This maps the ID of a tag field to the value of and additional information about that field. Valid field IDs are defined by the tag's template. A tag must have at least 1 field and at most 500 fields.
map<string, .google.cloud.datacatalog.v1beta1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
key | String |
defaultValue | TagField |
Type | Description |
TagField |
getFieldsOrThrow(String key)
public TagField getFieldsOrThrow(String key)
Required. This maps the ID of a tag field to the value of and additional information about that field. Valid field IDs are defined by the tag's template. A tag must have at least 1 field and at most 500 fields.
map<string, .google.cloud.datacatalog.v1beta1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
key | String |
Type | Description |
TagField |
getMutableFields()
public Map<String,TagField> getMutableFields()
Use alternate mutation accessors instead.
Type | Description |
Map<String,TagField> |
getName()
public String getName()
The resource name of the tag in URL format. Example:
- projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id}
where
tag_id
is a system-generated identifier. Note that this Tag may not actually be stored in the location in this name.
string name = 1;
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
The resource name of the tag in URL format. Example:
- projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id}
where
tag_id
is a system-generated identifier. Note that this Tag may not actually be stored in the location in this name.
string name = 1;
Type | Description |
ByteString | The bytes for name. |
getScopeCase()
public Tag.ScopeCase getScopeCase()
Type | Description |
Tag.ScopeCase |
getTemplate()
public String getTemplate()
Required. The resource name of the tag template that this tag uses. Example:
- projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} This field cannot be modified after creation.
string template = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
String | The template. |
getTemplateBytes()
public ByteString getTemplateBytes()
Required. The resource name of the tag template that this tag uses. Example:
- projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} This field cannot be modified after creation.
string template = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
ByteString | The bytes for template. |
getTemplateDisplayName()
public String getTemplateDisplayName()
Output only. The display name of the tag template.
string template_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
String | The templateDisplayName. |
getTemplateDisplayNameBytes()
public ByteString getTemplateDisplayNameBytes()
Output only. The display name of the tag template.
string template_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ByteString | The bytes for templateDisplayName. |
hasColumn()
public boolean hasColumn()
Resources like Entry can have schemas associated with them. This scope
allows users to attach tags to an individual column based on that schema.
For attaching a tag to a nested column, use .
to separate the column
names. Example:
outer_column.inner_column
string column = 4;
Type | Description |
boolean | Whether the column field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(Tag other)
public Tag.Builder mergeFrom(Tag other)
Name | Description |
other | Tag |
Type | Description |
Tag.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Tag.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Tag.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Tag.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Tag.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Tag.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Tag.Builder |
putAllFields(Map<String,TagField> values)
public Tag.Builder putAllFields(Map<String,TagField> values)
Required. This maps the ID of a tag field to the value of and additional information about that field. Valid field IDs are defined by the tag's template. A tag must have at least 1 field and at most 500 fields.
map<string, .google.cloud.datacatalog.v1beta1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
values | Map<String,TagField> |
Type | Description |
Tag.Builder |
putFields(String key, TagField value)
public Tag.Builder putFields(String key, TagField value)
Required. This maps the ID of a tag field to the value of and additional information about that field. Valid field IDs are defined by the tag's template. A tag must have at least 1 field and at most 500 fields.
map<string, .google.cloud.datacatalog.v1beta1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
key | String |
value | TagField |
Type | Description |
Tag.Builder |
removeFields(String key)
public Tag.Builder removeFields(String key)
Required. This maps the ID of a tag field to the value of and additional information about that field. Valid field IDs are defined by the tag's template. A tag must have at least 1 field and at most 500 fields.
map<string, .google.cloud.datacatalog.v1beta1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
key | String |
Type | Description |
Tag.Builder |
setColumn(String value)
public Tag.Builder setColumn(String value)
Resources like Entry can have schemas associated with them. This scope
allows users to attach tags to an individual column based on that schema.
For attaching a tag to a nested column, use .
to separate the column
names. Example:
outer_column.inner_column
string column = 4;
Name | Description |
value | String The column to set. |
Type | Description |
Tag.Builder | This builder for chaining. |
setColumnBytes(ByteString value)
public Tag.Builder setColumnBytes(ByteString value)
Resources like Entry can have schemas associated with them. This scope
allows users to attach tags to an individual column based on that schema.
For attaching a tag to a nested column, use .
to separate the column
names. Example:
outer_column.inner_column
string column = 4;
Name | Description |
value | ByteString The bytes for column to set. |
Type | Description |
Tag.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Tag.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Tag.Builder |
setName(String value)
public Tag.Builder setName(String value)
The resource name of the tag in URL format. Example:
- projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id}
where
tag_id
is a system-generated identifier. Note that this Tag may not actually be stored in the location in this name.
string name = 1;
Name | Description |
value | String The name to set. |
Type | Description |
Tag.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public Tag.Builder setNameBytes(ByteString value)
The resource name of the tag in URL format. Example:
- projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id}
where
tag_id
is a system-generated identifier. Note that this Tag may not actually be stored in the location in this name.
string name = 1;
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
Tag.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Tag.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Tag.Builder |
setTemplate(String value)
public Tag.Builder setTemplate(String value)
Required. The resource name of the tag template that this tag uses. Example:
- projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} This field cannot be modified after creation.
string template = 2 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | String The template to set. |
Type | Description |
Tag.Builder | This builder for chaining. |
setTemplateBytes(ByteString value)
public Tag.Builder setTemplateBytes(ByteString value)
Required. The resource name of the tag template that this tag uses. Example:
- projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} This field cannot be modified after creation.
string template = 2 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | ByteString The bytes for template to set. |
Type | Description |
Tag.Builder | This builder for chaining. |
setTemplateDisplayName(String value)
public Tag.Builder setTemplateDisplayName(String value)
Output only. The display name of the tag template.
string template_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | String The templateDisplayName to set. |
Type | Description |
Tag.Builder | This builder for chaining. |
setTemplateDisplayNameBytes(ByteString value)
public Tag.Builder setTemplateDisplayNameBytes(ByteString value)
Output only. The display name of the tag template.
string template_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | ByteString The bytes for templateDisplayName to set. |
Type | Description |
Tag.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Tag.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Tag.Builder |