Class V1alpha1Rbac.PolicyRule.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<V1alpha1Rbac.PolicyRule.Builder>
io.kubernetes.client.proto.V1alpha1Rbac.PolicyRule.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1alpha1Rbac.PolicyRuleOrBuilder, Cloneable
Enclosing class:
V1alpha1Rbac.PolicyRule

public static final class V1alpha1Rbac.PolicyRule.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1alpha1Rbac.PolicyRule.Builder> implements V1alpha1Rbac.PolicyRuleOrBuilder
 PolicyRule holds information that describes a policy rule, but does not contain information
 about who the rule applies to or which namespace the rule applies to.
 
Protobuf type k8s.io.api.rbac.v1alpha1.PolicyRule
  • 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<V1alpha1Rbac.PolicyRule.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<V1alpha1Rbac.PolicyRule.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<V1alpha1Rbac.PolicyRule.Builder>
    • getDefaultInstanceForType

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

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

      public V1alpha1Rbac.PolicyRule 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<V1alpha1Rbac.PolicyRule.Builder>
    • setField

      public V1alpha1Rbac.PolicyRule.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<V1alpha1Rbac.PolicyRule.Builder>
    • clearField

      public V1alpha1Rbac.PolicyRule.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<V1alpha1Rbac.PolicyRule.Builder>
    • clearOneof

      public V1alpha1Rbac.PolicyRule.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<V1alpha1Rbac.PolicyRule.Builder>
    • setRepeatedField

      public V1alpha1Rbac.PolicyRule.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<V1alpha1Rbac.PolicyRule.Builder>
    • addRepeatedField

      public V1alpha1Rbac.PolicyRule.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<V1alpha1Rbac.PolicyRule.Builder>
    • mergeFrom

      public V1alpha1Rbac.PolicyRule.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<V1alpha1Rbac.PolicyRule.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<V1alpha1Rbac.PolicyRule.Builder>
    • mergeFrom

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

      public com.google.protobuf.ProtocolStringList getVerbsList()
       Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
       
      repeated string verbs = 1;
      Specified by:
      getVerbsList in interface V1alpha1Rbac.PolicyRuleOrBuilder
    • getVerbsCount

      public int getVerbsCount()
       Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
       
      repeated string verbs = 1;
      Specified by:
      getVerbsCount in interface V1alpha1Rbac.PolicyRuleOrBuilder
    • getVerbs

      public String getVerbs(int index)
       Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
       
      repeated string verbs = 1;
      Specified by:
      getVerbs in interface V1alpha1Rbac.PolicyRuleOrBuilder
    • getVerbsBytes

      public com.google.protobuf.ByteString getVerbsBytes(int index)
       Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
       
      repeated string verbs = 1;
      Specified by:
      getVerbsBytes in interface V1alpha1Rbac.PolicyRuleOrBuilder
    • setVerbs

      public V1alpha1Rbac.PolicyRule.Builder setVerbs(int index, String value)
       Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
       
      repeated string verbs = 1;
    • addVerbs

      public V1alpha1Rbac.PolicyRule.Builder addVerbs(String value)
       Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
       
      repeated string verbs = 1;
    • addAllVerbs

      public V1alpha1Rbac.PolicyRule.Builder addAllVerbs(Iterable<String> values)
       Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
       
      repeated string verbs = 1;
    • clearVerbs

      public V1alpha1Rbac.PolicyRule.Builder clearVerbs()
       Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
       
      repeated string verbs = 1;
    • addVerbsBytes

      public V1alpha1Rbac.PolicyRule.Builder addVerbsBytes(com.google.protobuf.ByteString value)
       Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
       
      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.
       +optional
       
      repeated string apiGroups = 3;
      Specified by:
      getApiGroupsList in interface V1alpha1Rbac.PolicyRuleOrBuilder
    • 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.
       +optional
       
      repeated string apiGroups = 3;
      Specified by:
      getApiGroupsCount in interface V1alpha1Rbac.PolicyRuleOrBuilder
    • 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.
       +optional
       
      repeated string apiGroups = 3;
      Specified by:
      getApiGroups in interface V1alpha1Rbac.PolicyRuleOrBuilder
    • 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.
       +optional
       
      repeated string apiGroups = 3;
      Specified by:
      getApiGroupsBytes in interface V1alpha1Rbac.PolicyRuleOrBuilder
    • setApiGroups

      public V1alpha1Rbac.PolicyRule.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.
       +optional
       
      repeated string apiGroups = 3;
    • addApiGroups

      public V1alpha1Rbac.PolicyRule.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.
       +optional
       
      repeated string apiGroups = 3;
    • addAllApiGroups

      public V1alpha1Rbac.PolicyRule.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.
       +optional
       
      repeated string apiGroups = 3;
    • clearApiGroups

      public V1alpha1Rbac.PolicyRule.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.
       +optional
       
      repeated string apiGroups = 3;
    • addApiGroupsBytes

      public V1alpha1Rbac.PolicyRule.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.
       +optional
       
      repeated string apiGroups = 3;
    • getResourcesList

      public com.google.protobuf.ProtocolStringList getResourcesList()
       Resources is a list of resources this rule applies to. '*' represents all resources.
       +optional
       
      repeated string resources = 4;
      Specified by:
      getResourcesList in interface V1alpha1Rbac.PolicyRuleOrBuilder
    • getResourcesCount

      public int getResourcesCount()
       Resources is a list of resources this rule applies to. '*' represents all resources.
       +optional
       
      repeated string resources = 4;
      Specified by:
      getResourcesCount in interface V1alpha1Rbac.PolicyRuleOrBuilder
    • getResources

      public String getResources(int index)
       Resources is a list of resources this rule applies to. '*' represents all resources.
       +optional
       
      repeated string resources = 4;
      Specified by:
      getResources in interface V1alpha1Rbac.PolicyRuleOrBuilder
    • getResourcesBytes

      public com.google.protobuf.ByteString getResourcesBytes(int index)
       Resources is a list of resources this rule applies to. '*' represents all resources.
       +optional
       
      repeated string resources = 4;
      Specified by:
      getResourcesBytes in interface V1alpha1Rbac.PolicyRuleOrBuilder
    • setResources

      public V1alpha1Rbac.PolicyRule.Builder setResources(int index, String value)
       Resources is a list of resources this rule applies to. '*' represents all resources.
       +optional
       
      repeated string resources = 4;
    • addResources

      public V1alpha1Rbac.PolicyRule.Builder addResources(String value)
       Resources is a list of resources this rule applies to. '*' represents all resources.
       +optional
       
      repeated string resources = 4;
    • addAllResources

      public V1alpha1Rbac.PolicyRule.Builder addAllResources(Iterable<String> values)
       Resources is a list of resources this rule applies to. '*' represents all resources.
       +optional
       
      repeated string resources = 4;
    • clearResources

      public V1alpha1Rbac.PolicyRule.Builder clearResources()
       Resources is a list of resources this rule applies to. '*' represents all resources.
       +optional
       
      repeated string resources = 4;
    • addResourcesBytes

      public V1alpha1Rbac.PolicyRule.Builder addResourcesBytes(com.google.protobuf.ByteString value)
       Resources is a list of resources this rule applies to. '*' represents all resources.
       +optional
       
      repeated string resources = 4;
    • 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.
       +optional
       
      repeated string resourceNames = 5;
      Specified by:
      getResourceNamesList in interface V1alpha1Rbac.PolicyRuleOrBuilder
    • 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.
       +optional
       
      repeated string resourceNames = 5;
      Specified by:
      getResourceNamesCount in interface V1alpha1Rbac.PolicyRuleOrBuilder
    • 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.
       +optional
       
      repeated string resourceNames = 5;
      Specified by:
      getResourceNames in interface V1alpha1Rbac.PolicyRuleOrBuilder
    • 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.
       +optional
       
      repeated string resourceNames = 5;
      Specified by:
      getResourceNamesBytes in interface V1alpha1Rbac.PolicyRuleOrBuilder
    • setResourceNames

      public V1alpha1Rbac.PolicyRule.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.
       +optional
       
      repeated string resourceNames = 5;
    • addResourceNames

      public V1alpha1Rbac.PolicyRule.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.
       +optional
       
      repeated string resourceNames = 5;
    • addAllResourceNames

      public V1alpha1Rbac.PolicyRule.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.
       +optional
       
      repeated string resourceNames = 5;
    • clearResourceNames

      public V1alpha1Rbac.PolicyRule.Builder clearResourceNames()
       ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
       +optional
       
      repeated string resourceNames = 5;
    • addResourceNamesBytes

      public V1alpha1Rbac.PolicyRule.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.
       +optional
       
      repeated string resourceNames = 5;
    • getNonResourceURLsList

      public com.google.protobuf.ProtocolStringList getNonResourceURLsList()
       NonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full, final step in the path
       Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding.
       Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"),  but not both.
       +optional
       
      repeated string nonResourceURLs = 6;
      Specified by:
      getNonResourceURLsList in interface V1alpha1Rbac.PolicyRuleOrBuilder
    • getNonResourceURLsCount

      public int getNonResourceURLsCount()
       NonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full, final step in the path
       Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding.
       Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"),  but not both.
       +optional
       
      repeated string nonResourceURLs = 6;
      Specified by:
      getNonResourceURLsCount in interface V1alpha1Rbac.PolicyRuleOrBuilder
    • getNonResourceURLs

      public String getNonResourceURLs(int index)
       NonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full, final step in the path
       Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding.
       Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"),  but not both.
       +optional
       
      repeated string nonResourceURLs = 6;
      Specified by:
      getNonResourceURLs in interface V1alpha1Rbac.PolicyRuleOrBuilder
    • getNonResourceURLsBytes

      public com.google.protobuf.ByteString getNonResourceURLsBytes(int index)
       NonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full, final step in the path
       Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding.
       Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"),  but not both.
       +optional
       
      repeated string nonResourceURLs = 6;
      Specified by:
      getNonResourceURLsBytes in interface V1alpha1Rbac.PolicyRuleOrBuilder
    • setNonResourceURLs

      public V1alpha1Rbac.PolicyRule.Builder setNonResourceURLs(int index, String value)
       NonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full, final step in the path
       Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding.
       Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"),  but not both.
       +optional
       
      repeated string nonResourceURLs = 6;
    • addNonResourceURLs

      public V1alpha1Rbac.PolicyRule.Builder addNonResourceURLs(String value)
       NonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full, final step in the path
       Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding.
       Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"),  but not both.
       +optional
       
      repeated string nonResourceURLs = 6;
    • addAllNonResourceURLs

      public V1alpha1Rbac.PolicyRule.Builder addAllNonResourceURLs(Iterable<String> values)
       NonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full, final step in the path
       Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding.
       Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"),  but not both.
       +optional
       
      repeated string nonResourceURLs = 6;
    • clearNonResourceURLs

      public V1alpha1Rbac.PolicyRule.Builder clearNonResourceURLs()
       NonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full, final step in the path
       Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding.
       Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"),  but not both.
       +optional
       
      repeated string nonResourceURLs = 6;
    • addNonResourceURLsBytes

      public V1alpha1Rbac.PolicyRule.Builder addNonResourceURLsBytes(com.google.protobuf.ByteString value)
       NonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full, final step in the path
       Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding.
       Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"),  but not both.
       +optional
       
      repeated string nonResourceURLs = 6;
    • setUnknownFields

      public final V1alpha1Rbac.PolicyRule.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<V1alpha1Rbac.PolicyRule.Builder>
    • mergeUnknownFields

      public final V1alpha1Rbac.PolicyRule.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<V1alpha1Rbac.PolicyRule.Builder>