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.v1.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)
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 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()
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;
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
|
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.Builder.internalGetMapFieldReflection(int)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter |
---|
Name | Description |
number | int
|
Returns |
---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor | |
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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)
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 ResourceManagerTags.Builder putTags(String key, String value)
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 ResourceManagerTags.Builder removeTags(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 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