public
final
class
Tag
extends
GeneratedMessage
implements
TagOrBuilder
A tag associated with a resource.
Protobuf type google.privacy.dlp.v2.Tag
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > TagImplements
TagOrBuilderStatic Fields
KEY_FIELD_NUMBER
public
static
final
int
KEY_FIELD_NUMBER
NAMESPACED_TAG_VALUE_FIELD_NUMBER
public
static
final
int
NAMESPACED_TAG_VALUE_FIELD_NUMBER
VALUE_FIELD_NUMBER
public
static
final
int
VALUE_FIELD_NUMBER
Static Methods
getDefaultInstance()
public
static
Tag
getDefaultInstance
()
getDescriptor()
public
static
final
Descriptors
.
Descriptor
getDescriptor
()
newBuilder()
public
static
Tag
.
Builder
newBuilder
()
newBuilder(Tag prototype)
public
static
Tag
.
Builder
newBuilder
(
Tag
prototype
)
parseDelimitedFrom(InputStream input)
public
static
Tag
parseDelimitedFrom
(
InputStream
input
)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Tag
parseDelimitedFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(byte[] data)
public
static
Tag
parseFrom
(
byte
[]
data
)
data
byte
[]
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public
static
Tag
parseFrom
(
byte
[]
data
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(ByteString data)
public
static
Tag
parseFrom
(
ByteString
data
)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public
static
Tag
parseFrom
(
ByteString
data
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(CodedInputStream input)
public
static
Tag
parseFrom
(
CodedInputStream
input
)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Tag
parseFrom
(
CodedInputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(InputStream input)
public
static
Tag
parseFrom
(
InputStream
input
)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Tag
parseFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(ByteBuffer data)
public
static
Tag
parseFrom
(
ByteBuffer
data
)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public
static
Tag
parseFrom
(
ByteBuffer
data
,
ExtensionRegistryLite
extensionRegistry
)
parser()
public
static
Parser<Tag>
parser
()
Methods
equals(Object obj)
public
boolean
equals
(
Object
obj
)
getDefaultInstanceForType()
public
Tag
getDefaultInstanceForType
()
getKey()
public
String
getKey
()
The key of a tag key-value pair. For Google Cloud resources, this is the resource name of the key, for example, "tagKeys/123456".
string key = 2;
getKeyBytes()
public
ByteString
getKeyBytes
()
The key of a tag key-value pair. For Google Cloud resources, this is the resource name of the key, for example, "tagKeys/123456".
string key = 2;
getNamespacedTagValue()
public
String
getNamespacedTagValue
()
The namespaced name for the tag value to attach to Google Cloud resources.
Must be in the format {parent_id}/{tag_key_short_name}/{short_name}
, for
example, "123456/environment/prod" for an organization parent, or
"my-project/environment/prod" for a project parent. This is only set for
Google Cloud resources.
string namespaced_tag_value = 1;
getNamespacedTagValueBytes()
public
ByteString
getNamespacedTagValueBytes
()
The namespaced name for the tag value to attach to Google Cloud resources.
Must be in the format {parent_id}/{tag_key_short_name}/{short_name}
, for
example, "123456/environment/prod" for an organization parent, or
"my-project/environment/prod" for a project parent. This is only set for
Google Cloud resources.
string namespaced_tag_value = 1;
getParserForType()
public
Parser<Tag>
getParserForType
()
getSerializedSize()
public
int
getSerializedSize
()
getValue()
public
String
getValue
()
The value of a tag key-value pair. For Google Cloud resources, this is the resource name of the value, for example, "tagValues/123456".
string value = 3;
getValueBytes()
public
ByteString
getValueBytes
()
The value of a tag key-value pair. For Google Cloud resources, this is the resource name of the value, for example, "tagValues/123456".
string value = 3;
hashCode()
public
int
hashCode
()
internalGetFieldAccessorTable()
protected
GeneratedMessage
.
FieldAccessorTable
internalGetFieldAccessorTable
()
isInitialized()
public
final
boolean
isInitialized
()
newBuilderForType()
public
Tag
.
Builder
newBuilderForType
()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected
Tag
.
Builder
newBuilderForType
(
AbstractMessage
.
BuilderParent
parent
)
toBuilder()
public
Tag
.
Builder
toBuilder
()
writeTo(CodedOutputStream output)
public
void
writeTo
(
CodedOutputStream
output
)

