Class Tag (3.77.0)

  public 
  
 final 
  
 class 
 Tag 
  
 extends 
  
 GeneratedMessageV3 
  
 implements 
  
 TagOrBuilder 
 

A tag associated with a resource.

Protobuf type google.privacy.dlp.v2.Tag

Implements

TagOrBuilder

Static Fields

KEY_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 KEY_FIELD_NUMBER 
 
Field Value
Type
Description
int

NAMESPACED_TAG_VALUE_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 NAMESPACED_TAG_VALUE_FIELD_NUMBER 
 
Field Value
Type
Description
int

VALUE_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 VALUE_FIELD_NUMBER 
 
Field Value
Type
Description
int

Static Methods

getDefaultInstance()

  public 
  
 static 
  
 Tag 
  
 getDefaultInstance 
 () 
 
Returns
Type
Description
Tag

getDescriptor()

  public 
  
 static 
  
 final 
  
 Descriptors 
 . 
 Descriptor 
  
 getDescriptor 
 () 
 
Returns
Type
Description

newBuilder()

  public 
  
 static 
  
 Tag 
 . 
 Builder 
  
 newBuilder 
 () 
 
Returns
Type
Description

newBuilder(Tag prototype)

  public 
  
 static 
  
 Tag 
 . 
 Builder 
  
 newBuilder 
 ( 
 Tag 
  
 prototype 
 ) 
 
Parameter
Name
Description
prototype
Tag
Returns
Type
Description

parseDelimitedFrom(InputStream input)

  public 
  
 static 
  
 Tag 
  
 parseDelimitedFrom 
 ( 
 InputStream 
  
 input 
 ) 
 
Parameter
Name
Description
input
Returns
Type
Description
Tag
Exceptions
Type
Description

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Tag 
  
 parseDelimitedFrom 
 ( 
 InputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
input
extensionRegistry
Returns
Type
Description
Tag
Exceptions
Type
Description

parseFrom(byte[] data)

  public 
  
 static 
  
 Tag 
  
 parseFrom 
 ( 
 byte 
 [] 
  
 data 
 ) 
 
Parameter
Name
Description
data
byte []
Returns
Type
Description
Tag
Exceptions
Type
Description

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Tag 
  
 parseFrom 
 ( 
 byte 
 [] 
  
 data 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
data
byte []
extensionRegistry
Returns
Type
Description
Tag
Exceptions
Type
Description

parseFrom(ByteString data)

  public 
  
 static 
  
 Tag 
  
 parseFrom 
 ( 
 ByteString 
  
 data 
 ) 
 
Parameter
Name
Description
data
Returns
Type
Description
Tag
Exceptions
Type
Description

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Tag 
  
 parseFrom 
 ( 
 ByteString 
  
 data 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
data
extensionRegistry
Returns
Type
Description
Tag
Exceptions
Type
Description

parseFrom(CodedInputStream input)

  public 
  
 static 
  
 Tag 
  
 parseFrom 
 ( 
 CodedInputStream 
  
 input 
 ) 
 
Parameter
Name
Description
Returns
Type
Description
Tag
Exceptions
Type
Description

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Tag 
  
 parseFrom 
 ( 
 CodedInputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
extensionRegistry
Returns
Type
Description
Tag
Exceptions
Type
Description

parseFrom(InputStream input)

  public 
  
 static 
  
 Tag 
  
 parseFrom 
 ( 
 InputStream 
  
 input 
 ) 
 
Parameter
Name
Description
input
Returns
Type
Description
Tag
Exceptions
Type
Description

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Tag 
  
 parseFrom 
 ( 
 InputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
input
extensionRegistry
Returns
Type
Description
Tag
Exceptions
Type
Description

parseFrom(ByteBuffer data)

  public 
  
 static 
  
 Tag 
  
 parseFrom 
 ( 
 ByteBuffer 
  
 data 
 ) 
 
Parameter
Name
Description
data
Returns
Type
Description
Tag
Exceptions
Type
Description

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Tag 
  
 parseFrom 
 ( 
 ByteBuffer 
  
 data 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
data
extensionRegistry
Returns
Type
Description
Tag
Exceptions
Type
Description

parser()

  public 
  
 static 
  
 Parser<Tag> 
  
 parser 
 () 
 
Returns
Type
Description
Parser < Tag >

Methods

equals(Object obj)

  public 
  
 boolean 
  
 equals 
 ( 
 Object 
  
 obj 
 ) 
 
Parameter
Name
Description
obj
Returns
Type
Description
Overrides

getDefaultInstanceForType()

  public 
  
 Tag 
  
 getDefaultInstanceForType 
 () 
 
Returns
Type
Description
Tag

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;

Returns
Type
Description

The key.

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;

Returns
Type
Description

The bytes for key.

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". This is only set for Google Cloud resources.

string namespaced_tag_value = 1;

Returns
Type
Description

The namespacedTagValue.

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". This is only set for Google Cloud resources.

string namespaced_tag_value = 1;

Returns
Type
Description

The bytes for namespacedTagValue.

getParserForType()

  public 
  
 Parser<Tag> 
  
 getParserForType 
 () 
 
Returns
Type
Description
Parser < Tag >
Overrides

getSerializedSize()

  public 
  
 int 
  
 getSerializedSize 
 () 
 
Returns
Type
Description
int
Overrides

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;

Returns
Type
Description

The value.

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;

Returns
Type
Description

The bytes for value.

hashCode()

  public 
  
 int 
  
 hashCode 
 () 
 
Returns
Type
Description
int
Overrides

internalGetFieldAccessorTable()

  protected 
  
 GeneratedMessageV3 
 . 
 FieldAccessorTable 
  
 internalGetFieldAccessorTable 
 () 
 
Returns
Type
Description
Overrides

isInitialized()

  public 
  
 final 
  
 boolean 
  
 isInitialized 
 () 
 
Returns
Type
Description
Overrides

newBuilderForType()

  public 
  
 Tag 
 . 
 Builder 
  
 newBuilderForType 
 () 
 
Returns
Type
Description

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

  protected 
  
 Tag 
 . 
 Builder 
  
 newBuilderForType 
 ( 
 GeneratedMessageV3 
 . 
 BuilderParent 
  
 parent 
 ) 
 
Parameter
Name
Description
parent
Returns
Type
Description
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

  protected 
  
 Object 
  
 newInstance 
 ( 
 GeneratedMessageV3 
 . 
 UnusedPrivateParameter 
  
 unused 
 ) 
 
Parameter
Name
Description
Returns
Type
Description
Overrides

toBuilder()

  public 
  
 Tag 
 . 
 Builder 
  
 toBuilder 
 () 
 
Returns
Type
Description

writeTo(CodedOutputStream output)

  public 
  
 void 
  
 writeTo 
 ( 
 CodedOutputStream 
  
 output 
 ) 
 
Parameter
Name
Description
Overrides
Exceptions
Type
Description
Design a Mobile Site
View Site in Mobile | Classic
Share by: