Send feedback
Class ResourceManagerTags (2.57.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.57.0 keyboard_arrow_down
public final class ResourceManagerTags extends GeneratedMessageV3 implements ResourceManagerTagsOrBuilder
A map of resource manager tag keys and values to be attached to the nodes
for managing Compute Engine firewalls using Network Firewall Policies.
Tags must be according to specifications in
https://cloud.google.com/vpc/docs/tags-firewalls-overview#specifications .
A maximum of 5 tag key-value pairs can be specified.
Existing tags will be replaced with new values.
Protobuf type google.container.v1.ResourceManagerTags
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int TAGS_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
public static ResourceManagerTags getDefaultInstance ()
public static final Descriptors . Descriptor getDescriptor ()
public static ResourceManagerTags . Builder newBuilder ()
public static ResourceManagerTags . Builder newBuilder ( ResourceManagerTags prototype )
public static ResourceManagerTags parseDelimitedFrom ( InputStream input )
public static ResourceManagerTags parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static ResourceManagerTags parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
public static ResourceManagerTags parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
public static ResourceManagerTags parseFrom ( ByteString data )
public static ResourceManagerTags parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static ResourceManagerTags parseFrom ( CodedInputStream input )
public static ResourceManagerTags parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static ResourceManagerTags parseFrom ( InputStream input )
public static ResourceManagerTags parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static ResourceManagerTags parseFrom ( ByteBuffer data )
public static ResourceManagerTags parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
public static Parser<ResourceManagerTags> parser ()
Methods
public boolean containsTags ( String key )
TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
tagKeys/{tag_key_id}=tagValues/{tag_value_id}
{org_id}/{tag_key_name}={tag_value_name}
{project_id}/{tag_key_name}={tag_value_name}
map<string, string> tags = 1;
Parameter
Name
Description
key
String
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
public ResourceManagerTags getDefaultInstanceForType ()
public Parser<ResourceManagerTags> getParserForType ()
Overrides
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
public Map<String , String > getTags ()
public int getTagsCount ()
TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
tagKeys/{tag_key_id}=tagValues/{tag_value_id}
{org_id}/{tag_key_name}={tag_value_name}
{project_id}/{tag_key_name}={tag_value_name}
map<string, string> tags = 1;
Returns
Type
Description
int
public Map<String , String > getTagsMap ()
TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
tagKeys/{tag_key_id}=tagValues/{tag_value_id}
{org_id}/{tag_key_name}={tag_value_name}
{project_id}/{tag_key_name}={tag_value_name}
map<string, string> tags = 1;
public String getTagsOrDefault ( String key , String defaultValue )
TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
tagKeys/{tag_key_id}=tagValues/{tag_value_id}
{org_id}/{tag_key_name}={tag_value_name}
{project_id}/{tag_key_name}={tag_value_name}
map<string, string> tags = 1;
Returns
Type
Description
String
public String getTagsOrThrow ( String key )
TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
tagKeys/{tag_key_id}=tagValues/{tag_value_id}
{org_id}/{tag_key_name}={tag_value_name}
{project_id}/{tag_key_name}={tag_value_name}
map<string, string> tags = 1;
Parameter
Name
Description
key
String
Returns
Type
Description
String
Returns
Type
Description
int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
protected MapFieldReflectionAccessor internalGetMapFieldReflection ( int number )
Parameter
Name
Description
number
int
Returns
Type
Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
public final boolean isInitialized ()
Overrides
public ResourceManagerTags . Builder newBuilderForType ()
protected ResourceManagerTags . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
public ResourceManagerTags . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]