Class ResourceManagerTags.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ResourceManagerTags.Builder>
com.google.container.v1.ResourceManagerTags.Builder
All Implemented Interfaces:
ResourceManagerTagsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ResourceManagerTags

public static final class ResourceManagerTags.Builder extends com.google.protobuf.GeneratedMessage.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
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<ResourceManagerTags.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<ResourceManagerTags.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ResourceManagerTags.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ResourceManagerTags.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ResourceManagerTags.Builder>
    • getDefaultInstanceForType

      public ResourceManagerTags getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ResourceManagerTags build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ResourceManagerTags buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ResourceManagerTags.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ResourceManagerTags.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ResourceManagerTags.Builder>
    • mergeFrom

      public ResourceManagerTags.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ResourceManagerTags.Builder>
      Throws:
      IOException
    • getTagsCount

      public int getTagsCount()
      Description copied from interface: ResourceManagerTagsOrBuilder
       TagKeyValue 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;
      Specified by:
      getTagsCount in interface ResourceManagerTagsOrBuilder
    • containsTags

      public boolean containsTags(String key)
       TagKeyValue 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;
      Specified by:
      containsTags in interface ResourceManagerTagsOrBuilder
    • getTags

      @Deprecated public Map<String,String> getTags()
      Deprecated.
      Use getTagsMap() instead.
      Specified by:
      getTags in interface ResourceManagerTagsOrBuilder
    • getTagsMap

      public Map<String,String> getTagsMap()
       TagKeyValue 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;
      Specified by:
      getTagsMap in interface ResourceManagerTagsOrBuilder
    • getTagsOrDefault

      public String getTagsOrDefault(String key, String defaultValue)
       TagKeyValue 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;
      Specified by:
      getTagsOrDefault in interface ResourceManagerTagsOrBuilder
    • getTagsOrThrow

      public String getTagsOrThrow(String key)
       TagKeyValue 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;
      Specified by:
      getTagsOrThrow in interface ResourceManagerTagsOrBuilder
    • clearTags

      public ResourceManagerTags.Builder clearTags()
    • removeTags

      public ResourceManagerTags.Builder removeTags(String key)
       TagKeyValue 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;
    • getMutableTags

      @Deprecated public Map<String,String> getMutableTags()
      Deprecated.
      Use alternate mutation accessors instead.
    • putTags

      public ResourceManagerTags.Builder putTags(String key, String value)
       TagKeyValue 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;
    • putAllTags

      public ResourceManagerTags.Builder putAllTags(Map<String,String> values)
       TagKeyValue 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;