Interface ResourceManagerTagsOrBuilder (2.39.0)

public interface ResourceManagerTagsOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsTags(String key)

public abstract boolean containsTags(String key)

Tags must be in one of the following formats ([KEY]=[VALUE])

  1. tagKeys/{tag_key_id}=tagValues/{tag_value_id}
  2. {org_id}/{tag_key_name}={tag_value_name}
  3. {project_id}/{tag_key_name}={tag_value_name}

map<string, string> tags = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getTags() (deprecated)

public abstract Map<String,String> getTags()

Use #getTagsMap() instead.

Returns
TypeDescription
Map<String,String>

getTagsCount()

public abstract int getTagsCount()

Tags must be in one of the following formats ([KEY]=[VALUE])

  1. tagKeys/{tag_key_id}=tagValues/{tag_value_id}
  2. {org_id}/{tag_key_name}={tag_value_name}
  3. {project_id}/{tag_key_name}={tag_value_name}

map<string, string> tags = 1;

Returns
TypeDescription
int

getTagsMap()

public abstract Map<String,String> getTagsMap()

Tags must be in one of the following formats ([KEY]=[VALUE])

  1. tagKeys/{tag_key_id}=tagValues/{tag_value_id}
  2. {org_id}/{tag_key_name}={tag_value_name}
  3. {project_id}/{tag_key_name}={tag_value_name}

map<string, string> tags = 1;

Returns
TypeDescription
Map<String,String>

getTagsOrDefault(String key, String defaultValue)

public abstract String getTagsOrDefault(String key, String defaultValue)

Tags must be in one of the following formats ([KEY]=[VALUE])

  1. tagKeys/{tag_key_id}=tagValues/{tag_value_id}
  2. {org_id}/{tag_key_name}={tag_value_name}
  3. {project_id}/{tag_key_name}={tag_value_name}

map<string, string> tags = 1;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getTagsOrThrow(String key)

public abstract String getTagsOrThrow(String key)

Tags must be in one of the following formats ([KEY]=[VALUE])

  1. tagKeys/{tag_key_id}=tagValues/{tag_value_id}
  2. {org_id}/{tag_key_name}={tag_value_name}
  3. {project_id}/{tag_key_name}={tag_value_name}

map<string, string> tags = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
String