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;
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 |
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)
Overrides
public ResourceManagerTags.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides