public final class Tag extends com.google.protobuf.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| Modifier and Type | Class and Description |
|---|---|
static class |
Tag.Builder
Tags contain custom metadata and are attached to Data Catalog resources.
|
static class |
Tag.ScopeCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
COLUMN_FIELD_NUMBER |
static int |
FIELDS_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
TEMPLATE_DISPLAY_NAME_FIELD_NUMBER |
static int |
TEMPLATE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsFields(String key)
Required.
|
boolean |
equals(Object obj) |
String |
getColumn()
Resources like entry can have schemas associated with them.
|
com.google.protobuf.ByteString |
getColumnBytes()
Resources like entry can have schemas associated with them.
|
static Tag |
getDefaultInstance() |
Tag |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Map<String,TagField> |
getFields()
Deprecated.
|
int |
getFieldsCount()
Required.
|
Map<String,TagField> |
getFieldsMap()
Required.
|
TagField |
getFieldsOrDefault(String key,
TagField defaultValue)
Required.
|
TagField |
getFieldsOrThrow(String key)
Required.
|
String |
getName()
The resource name of the tag in URL format where tag ID is a
system-generated identifier.
|
com.google.protobuf.ByteString |
getNameBytes()
The resource name of the tag in URL format where tag ID is a
system-generated identifier.
|
com.google.protobuf.Parser<Tag> |
getParserForType() |
Tag.ScopeCase |
getScopeCase() |
int |
getSerializedSize() |
String |
getTemplate()
Required.
|
com.google.protobuf.ByteString |
getTemplateBytes()
Required.
|
String |
getTemplateDisplayName()
Output only.
|
com.google.protobuf.ByteString |
getTemplateDisplayNameBytes()
Output only.
|
boolean |
hasColumn()
Resources like entry can have schemas associated with them.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static Tag.Builder |
newBuilder() |
static Tag.Builder |
newBuilder(Tag prototype) |
Tag.Builder |
newBuilderForType() |
protected Tag.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Tag |
parseDelimitedFrom(InputStream input) |
static Tag |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Tag |
parseFrom(byte[] data) |
static Tag |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Tag |
parseFrom(ByteBuffer data) |
static Tag |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Tag |
parseFrom(com.google.protobuf.ByteString data) |
static Tag |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Tag |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Tag |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Tag |
parseFrom(InputStream input) |
static Tag |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Tag> |
parser() |
Tag.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int TEMPLATE_FIELD_NUMBER
public static final int TEMPLATE_DISPLAY_NAME_FIELD_NUMBER
public static final int COLUMN_FIELD_NUMBER
public static final int FIELDS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public Tag.ScopeCase getScopeCase()
getScopeCase in interface TagOrBuilderpublic String 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;getName in interface TagOrBuilderpublic com.google.protobuf.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;getNameBytes in interface TagOrBuilderpublic 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];getTemplate in interface TagOrBuilderpublic com.google.protobuf.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];getTemplateBytes in interface TagOrBuilderpublic String getTemplateDisplayName()
Output only. The display name of the tag template.
string template_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];getTemplateDisplayName in interface TagOrBuilderpublic com.google.protobuf.ByteString getTemplateDisplayNameBytes()
Output only. The display name of the tag template.
string template_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];getTemplateDisplayNameBytes in interface TagOrBuilderpublic 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;hasColumn in interface TagOrBuilderpublic 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;getColumn in interface TagOrBuilderpublic com.google.protobuf.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;getColumnBytes in interface TagOrBuilderpublic int getFieldsCount()
TagOrBuilderRequired. 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];
getFieldsCount in interface TagOrBuilderpublic 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];
containsFields in interface TagOrBuilder@Deprecated public Map<String,TagField> getFields()
getFieldsMap() instead.getFields in interface TagOrBuilderpublic 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];
getFieldsMap in interface TagOrBuilderpublic 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];
getFieldsOrDefault in interface TagOrBuilderpublic 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];
getFieldsOrThrow in interface TagOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Tag parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Tag parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Tag parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Tag parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Tag parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Tag parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Tag parseFrom(InputStream input) throws IOException
IOExceptionpublic static Tag parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Tag parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Tag parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Tag parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Tag parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Tag.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Tag.Builder newBuilder()
public static Tag.Builder newBuilder(Tag prototype)
public Tag.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Tag.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Tag getDefaultInstance()
public static com.google.protobuf.Parser<Tag> parser()
public com.google.protobuf.Parser<Tag> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Tag getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.