Interface TagOrBuilder (3.66.0)

public interface TagOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getKey()

public abstract 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
String

The key.

getKeyBytes()

public abstract 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
ByteString

The bytes for key.

getNamespacedTagValue()

public abstract 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
String

The namespacedTagValue.

getNamespacedTagValueBytes()

public abstract 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
ByteString

The bytes for namespacedTagValue.

getValue()

public abstract 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
String

The value.

getValueBytes()

public abstract 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
ByteString

The bytes for value.