Class V1Authorization.ResourceRule.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1Authorization.ResourceRule.Builder>
io.kubernetes.client.proto.V1Authorization.ResourceRule.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1Authorization.ResourceRuleOrBuilder, Cloneable
Enclosing class:
V1Authorization.ResourceRule

public static final class V1Authorization.ResourceRule.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1Authorization.ResourceRule.Builder> implements V1Authorization.ResourceRuleOrBuilder
 ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant,
 may contain duplicates, and possibly be incomplete.
 
Protobuf type k8s.io.api.authorization.v1.ResourceRule
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1Authorization.ResourceRule.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.GeneratedMessageV3.Builder<V1Authorization.ResourceRule.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.GeneratedMessageV3.Builder<V1Authorization.ResourceRule.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public V1Authorization.ResourceRule buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<V1Authorization.ResourceRule.Builder>
    • setField

      public V1Authorization.ResourceRule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Authorization.ResourceRule.Builder>
    • clearField

      public V1Authorization.ResourceRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Authorization.ResourceRule.Builder>
    • clearOneof

      public V1Authorization.ResourceRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1Authorization.ResourceRule.Builder>
    • setRepeatedField

      public V1Authorization.ResourceRule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Authorization.ResourceRule.Builder>
    • addRepeatedField

      public V1Authorization.ResourceRule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Authorization.ResourceRule.Builder>
    • mergeFrom

      public V1Authorization.ResourceRule.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<V1Authorization.ResourceRule.Builder>
    • mergeFrom

    • isInitialized

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

      public V1Authorization.ResourceRule.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<V1Authorization.ResourceRule.Builder>
      Throws:
      IOException
    • getVerbsList

      public com.google.protobuf.ProtocolStringList getVerbsList()
       Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
       
      repeated string verbs = 1;
      Specified by:
      getVerbsList in interface V1Authorization.ResourceRuleOrBuilder
    • getVerbsCount

      public int getVerbsCount()
       Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
       
      repeated string verbs = 1;
      Specified by:
      getVerbsCount in interface V1Authorization.ResourceRuleOrBuilder
    • getVerbs

      public String getVerbs(int index)
       Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
       
      repeated string verbs = 1;
      Specified by:
      getVerbs in interface V1Authorization.ResourceRuleOrBuilder
    • getVerbsBytes

      public com.google.protobuf.ByteString getVerbsBytes(int index)
       Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
       
      repeated string verbs = 1;
      Specified by:
      getVerbsBytes in interface V1Authorization.ResourceRuleOrBuilder
    • setVerbs

      public V1Authorization.ResourceRule.Builder setVerbs(int index, String value)
       Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
       
      repeated string verbs = 1;
    • addVerbs

       Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
       
      repeated string verbs = 1;
    • addAllVerbs

       Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
       
      repeated string verbs = 1;
    • clearVerbs

       Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
       
      repeated string verbs = 1;
    • addVerbsBytes

      public V1Authorization.ResourceRule.Builder addVerbsBytes(com.google.protobuf.ByteString value)
       Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
       
      repeated string verbs = 1;
    • getApiGroupsList

      public com.google.protobuf.ProtocolStringList getApiGroupsList()
       APIGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
       the enumerated resources in any API group will be allowed.  "*" means all.
       +optional
       
      repeated string apiGroups = 2;
      Specified by:
      getApiGroupsList in interface V1Authorization.ResourceRuleOrBuilder
    • getApiGroupsCount

      public int getApiGroupsCount()
       APIGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
       the enumerated resources in any API group will be allowed.  "*" means all.
       +optional
       
      repeated string apiGroups = 2;
      Specified by:
      getApiGroupsCount in interface V1Authorization.ResourceRuleOrBuilder
    • getApiGroups

      public String getApiGroups(int index)
       APIGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
       the enumerated resources in any API group will be allowed.  "*" means all.
       +optional
       
      repeated string apiGroups = 2;
      Specified by:
      getApiGroups in interface V1Authorization.ResourceRuleOrBuilder
    • getApiGroupsBytes

      public com.google.protobuf.ByteString getApiGroupsBytes(int index)
       APIGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
       the enumerated resources in any API group will be allowed.  "*" means all.
       +optional
       
      repeated string apiGroups = 2;
      Specified by:
      getApiGroupsBytes in interface V1Authorization.ResourceRuleOrBuilder
    • setApiGroups

      public V1Authorization.ResourceRule.Builder setApiGroups(int index, String value)
       APIGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
       the enumerated resources in any API group will be allowed.  "*" means all.
       +optional
       
      repeated string apiGroups = 2;
    • addApiGroups

      public V1Authorization.ResourceRule.Builder addApiGroups(String value)
       APIGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
       the enumerated resources in any API group will be allowed.  "*" means all.
       +optional
       
      repeated string apiGroups = 2;
    • addAllApiGroups

      public V1Authorization.ResourceRule.Builder addAllApiGroups(Iterable<String> values)
       APIGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
       the enumerated resources in any API group will be allowed.  "*" means all.
       +optional
       
      repeated string apiGroups = 2;
    • clearApiGroups

      public V1Authorization.ResourceRule.Builder clearApiGroups()
       APIGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
       the enumerated resources in any API group will be allowed.  "*" means all.
       +optional
       
      repeated string apiGroups = 2;
    • addApiGroupsBytes

      public V1Authorization.ResourceRule.Builder addApiGroupsBytes(com.google.protobuf.ByteString value)
       APIGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
       the enumerated resources in any API group will be allowed.  "*" means all.
       +optional
       
      repeated string apiGroups = 2;
    • getResourcesList

      public com.google.protobuf.ProtocolStringList getResourcesList()
       Resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
        "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups.
       +optional
       
      repeated string resources = 3;
      Specified by:
      getResourcesList in interface V1Authorization.ResourceRuleOrBuilder
    • getResourcesCount

      public int getResourcesCount()
       Resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
        "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups.
       +optional
       
      repeated string resources = 3;
      Specified by:
      getResourcesCount in interface V1Authorization.ResourceRuleOrBuilder
    • getResources

      public String getResources(int index)
       Resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
        "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups.
       +optional
       
      repeated string resources = 3;
      Specified by:
      getResources in interface V1Authorization.ResourceRuleOrBuilder
    • getResourcesBytes

      public com.google.protobuf.ByteString getResourcesBytes(int index)
       Resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
        "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups.
       +optional
       
      repeated string resources = 3;
      Specified by:
      getResourcesBytes in interface V1Authorization.ResourceRuleOrBuilder
    • setResources

      public V1Authorization.ResourceRule.Builder setResources(int index, String value)
       Resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
        "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups.
       +optional
       
      repeated string resources = 3;
    • addResources

      public V1Authorization.ResourceRule.Builder addResources(String value)
       Resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
        "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups.
       +optional
       
      repeated string resources = 3;
    • addAllResources

      public V1Authorization.ResourceRule.Builder addAllResources(Iterable<String> values)
       Resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
        "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups.
       +optional
       
      repeated string resources = 3;
    • clearResources

      public V1Authorization.ResourceRule.Builder clearResources()
       Resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
        "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups.
       +optional
       
      repeated string resources = 3;
    • addResourcesBytes

      public V1Authorization.ResourceRule.Builder addResourcesBytes(com.google.protobuf.ByteString value)
       Resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
        "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups.
       +optional
       
      repeated string resources = 3;
    • getResourceNamesList

      public com.google.protobuf.ProtocolStringList getResourceNamesList()
       ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
       +optional
       
      repeated string resourceNames = 4;
      Specified by:
      getResourceNamesList in interface V1Authorization.ResourceRuleOrBuilder
    • getResourceNamesCount

      public int getResourceNamesCount()
       ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
       +optional
       
      repeated string resourceNames = 4;
      Specified by:
      getResourceNamesCount in interface V1Authorization.ResourceRuleOrBuilder
    • getResourceNames

      public String getResourceNames(int index)
       ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
       +optional
       
      repeated string resourceNames = 4;
      Specified by:
      getResourceNames in interface V1Authorization.ResourceRuleOrBuilder
    • getResourceNamesBytes

      public com.google.protobuf.ByteString getResourceNamesBytes(int index)
       ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
       +optional
       
      repeated string resourceNames = 4;
      Specified by:
      getResourceNamesBytes in interface V1Authorization.ResourceRuleOrBuilder
    • setResourceNames

      public V1Authorization.ResourceRule.Builder setResourceNames(int index, String value)
       ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
       +optional
       
      repeated string resourceNames = 4;
    • addResourceNames

      public V1Authorization.ResourceRule.Builder addResourceNames(String value)
       ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
       +optional
       
      repeated string resourceNames = 4;
    • addAllResourceNames

      public V1Authorization.ResourceRule.Builder addAllResourceNames(Iterable<String> values)
       ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
       +optional
       
      repeated string resourceNames = 4;
    • clearResourceNames

      public V1Authorization.ResourceRule.Builder clearResourceNames()
       ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
       +optional
       
      repeated string resourceNames = 4;
    • addResourceNamesBytes

      public V1Authorization.ResourceRule.Builder addResourceNamesBytes(com.google.protobuf.ByteString value)
       ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
       +optional
       
      repeated string resourceNames = 4;
    • setUnknownFields

      public final V1Authorization.ResourceRule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1Authorization.ResourceRule.Builder>
    • mergeUnknownFields

      public final V1Authorization.ResourceRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1Authorization.ResourceRule.Builder>