public final class Tag extends GeneratedMessageV3 implements TagOrBuilder
Tags contain custom metadata and are attached to Data Catalog resources. Tags
conform with the specification of their tag template.
See [Data Catalog
IAM](https://cloud.google.com/data-catalog/docs/concepts/iam) for information
on the permissions needed to create or view tags.
Protobuf type google.cloud.datacatalog.v1.Tag
Fields
COLUMN_FIELD_NUMBER
public static final int COLUMN_FIELD_NUMBER
Field Value
FIELDS_FIELD_NUMBER
public static final int FIELDS_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
TEMPLATE_DISPLAY_NAME_FIELD_NUMBER
public static final int TEMPLATE_DISPLAY_NAME_FIELD_NUMBER
Field Value
TEMPLATE_FIELD_NUMBER
public static final int TEMPLATE_FIELD_NUMBER
Field Value
Methods
containsFields(String key)
public boolean containsFields(String key)
Required. Maps the ID of a tag field to its value and additional information
about that field.
Tag template defines valid field IDs. A tag
must have at least 1 field and at most 500 fields.
map<string, .google.cloud.datacatalog.v1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getColumn()
public String getColumn()
Resources like entry can have schemas associated with them. This scope
allows you to attach tags to an individual column based on that schema.
To attach a tag to a nested column, separate column names with a dot
(`.`). Example: `column.nested_column`.
string column = 4;
Returns
Type | Description |
String | The column.
|
getColumnBytes()
public ByteString getColumnBytes()
Resources like entry can have schemas associated with them. This scope
allows you to attach tags to an individual column based on that schema.
To attach a tag to a nested column, separate column names with a dot
(`.`). Example: `column.nested_column`.
string column = 4;
Returns
getDefaultInstance()
public static Tag getDefaultInstance()
Returns
getDefaultInstanceForType()
public Tag getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getFields()
public Map<String,TagField> getFields()
Returns
getFieldsCount()
public int getFieldsCount()
Required. Maps the ID of a tag field to its value and additional information
about that field.
Tag template defines valid field IDs. A tag
must have at least 1 field and at most 500 fields.
map<string, .google.cloud.datacatalog.v1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
getFieldsMap()
public Map<String,TagField> getFieldsMap()
Required. Maps the ID of a tag field to its value and additional information
about that field.
Tag template defines valid field IDs. A tag
must have at least 1 field and at most 500 fields.
map<string, .google.cloud.datacatalog.v1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
getFieldsOrDefault(String key, TagField defaultValue)
public TagField getFieldsOrDefault(String key, TagField defaultValue)
Required. Maps the ID of a tag field to its value and additional information
about that field.
Tag template defines valid field IDs. A tag
must have at least 1 field and at most 500 fields.
map<string, .google.cloud.datacatalog.v1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED];
Parameters
Returns
getFieldsOrThrow(String key)
public TagField getFieldsOrThrow(String key)
Required. Maps the ID of a tag field to its value and additional information
about that field.
Tag template defines valid field IDs. A tag
must have at least 1 field and at most 500 fields.
map<string, .google.cloud.datacatalog.v1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
getName()
The resource name of the tag in URL format where tag ID is a
system-generated identifier.
Note: The tag itself might not be stored in the location specified in its
name.
string name = 1;
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
The resource name of the tag in URL format where tag ID is a
system-generated identifier.
Note: The tag itself might not be stored in the location specified in its
name.
string name = 1;
Returns
getParserForType()
public Parser<Tag> getParserForType()
Returns
Overrides
getScopeCase()
public Tag.ScopeCase getScopeCase()
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getTemplate()
public String getTemplate()
Required. The resource name of the tag template 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];
Returns
Type | Description |
String | The template.
|
getTemplateBytes()
public ByteString getTemplateBytes()
Required. The resource name of the tag template 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];
Returns
getTemplateDisplayName()
public String getTemplateDisplayName()
Output only. The display name of the tag template.
string template_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
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];
Returns
Type | Description |
ByteString | The bytes for templateDisplayName.
|
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasColumn()
public boolean hasColumn()
Resources like entry can have schemas associated with them. This scope
allows you to attach tags to an individual column based on that schema.
To attach a tag to a nested column, separate column names with a dot
(`.`). Example: `column.nested_column`.
string column = 4;
Returns
Type | Description |
boolean | Whether the column field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilder()
public static Tag.Builder newBuilder()
Returns
newBuilder(Tag prototype)
public static Tag.Builder newBuilder(Tag prototype)
Parameter
Name | Description |
prototype | Tag
|
Returns
newBuilderForType()
public Tag.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Tag.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static Tag parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Tag parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Tag parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Tag parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Tag parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Tag parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Tag parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Tag parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Tag parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Tag parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Tag parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Tag parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Tag> parser()
Returns
toBuilder()
public Tag.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions