Send feedback
Class ResourceManagerTags.Builder (2.35.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.35.0 keyboard_arrow_down
public static final class ResourceManagerTags . Builder extends GeneratedMessageV3 . Builder<ResourceManagerTags . Builder > 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.v1beta1.ResourceManagerTags
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors . Descriptor getDescriptor ()
Methods
public ResourceManagerTags . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
public ResourceManagerTags build ()
public ResourceManagerTags buildPartial ()
public ResourceManagerTags . Builder clear ()
Overrides
public ResourceManagerTags . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
public ResourceManagerTags . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
public ResourceManagerTags . Builder clearTags ()
public ResourceManagerTags . Builder clone ()
Overrides
public boolean containsTags ( String key )
Tags 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 ResourceManagerTags getDefaultInstanceForType ()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
public Map<String , String > getMutableTags ()
Use alternate mutation accessors instead.
public Map<String , String > getTags ()
public int getTagsCount ()
Tags 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 ()
Tags 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 )
Tags 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 getTagsOrThrow ( String key )
Tags 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
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
protected MapField internalGetMapField ( int number )
Parameter Name Description number
int
Overrides
protected MapField internalGetMutableMapField ( int number )
Parameter Name Description number
int
Overrides
public final boolean isInitialized ()
Overrides
public ResourceManagerTags . Builder mergeFrom ( ResourceManagerTags other )
public ResourceManagerTags . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
public ResourceManagerTags . Builder mergeFrom ( Message other )
Parameter Name Description other
Message
Overrides
public final ResourceManagerTags . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
public ResourceManagerTags . Builder putAllTags ( Map<String , String > values )
Tags 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 ResourceManagerTags . Builder putTags ( String key , String value )
Tags 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 ResourceManagerTags . Builder removeTags ( String key )
Tags 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 ResourceManagerTags . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
public ResourceManagerTags . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
public final ResourceManagerTags . Builder setUnknownFields ( UnknownFieldSet unknownFields )
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-27 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-27 UTC."],[],[]]