Interface ResourceManagerTagsOrBuilder (2.55.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
Name Description
key String
Returns
Type Description
boolean

getTags() (deprecated)

public abstract Map<String,String> getTags()

Use #getTagsMap() instead.

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
String