Class V1Authorization.SubjectRulesReviewStatus.Builder

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

public static final class V1Authorization.SubjectRulesReviewStatus.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1Authorization.SubjectRulesReviewStatus.Builder> implements V1Authorization.SubjectRulesReviewStatusOrBuilder
 SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on
 the set of authorizers the server is configured with and any errors experienced during evaluation.
 Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission,
 even if that list is incomplete.
 
Protobuf type k8s.io.api.authorization.v1.SubjectRulesReviewStatus
  • 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.SubjectRulesReviewStatus.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.SubjectRulesReviewStatus.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.SubjectRulesReviewStatus.Builder>
    • getDefaultInstanceForType

      public V1Authorization.SubjectRulesReviewStatus 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

      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.SubjectRulesReviewStatus.Builder>
    • setField

      public V1Authorization.SubjectRulesReviewStatus.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.SubjectRulesReviewStatus.Builder>
    • clearField

      public V1Authorization.SubjectRulesReviewStatus.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.SubjectRulesReviewStatus.Builder>
    • clearOneof

      public V1Authorization.SubjectRulesReviewStatus.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.SubjectRulesReviewStatus.Builder>
    • setRepeatedField

      public V1Authorization.SubjectRulesReviewStatus.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.SubjectRulesReviewStatus.Builder>
    • addRepeatedField

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

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

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

      public List<V1Authorization.ResourceRule> getResourceRulesList()
       ResourceRules 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.
       
      repeated .k8s.io.api.authorization.v1.ResourceRule resourceRules = 1;
      Specified by:
      getResourceRulesList in interface V1Authorization.SubjectRulesReviewStatusOrBuilder
    • getResourceRulesCount

      public int getResourceRulesCount()
       ResourceRules 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.
       
      repeated .k8s.io.api.authorization.v1.ResourceRule resourceRules = 1;
      Specified by:
      getResourceRulesCount in interface V1Authorization.SubjectRulesReviewStatusOrBuilder
    • getResourceRules

      public V1Authorization.ResourceRule getResourceRules(int index)
       ResourceRules 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.
       
      repeated .k8s.io.api.authorization.v1.ResourceRule resourceRules = 1;
      Specified by:
      getResourceRules in interface V1Authorization.SubjectRulesReviewStatusOrBuilder
    • setResourceRules

       ResourceRules 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.
       
      repeated .k8s.io.api.authorization.v1.ResourceRule resourceRules = 1;
    • setResourceRules

      public V1Authorization.SubjectRulesReviewStatus.Builder setResourceRules(int index, V1Authorization.ResourceRule.Builder builderForValue)
       ResourceRules 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.
       
      repeated .k8s.io.api.authorization.v1.ResourceRule resourceRules = 1;
    • addResourceRules

       ResourceRules 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.
       
      repeated .k8s.io.api.authorization.v1.ResourceRule resourceRules = 1;
    • addResourceRules

       ResourceRules 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.
       
      repeated .k8s.io.api.authorization.v1.ResourceRule resourceRules = 1;
    • addResourceRules

       ResourceRules 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.
       
      repeated .k8s.io.api.authorization.v1.ResourceRule resourceRules = 1;
    • addResourceRules

      public V1Authorization.SubjectRulesReviewStatus.Builder addResourceRules(int index, V1Authorization.ResourceRule.Builder builderForValue)
       ResourceRules 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.
       
      repeated .k8s.io.api.authorization.v1.ResourceRule resourceRules = 1;
    • addAllResourceRules

       ResourceRules 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.
       
      repeated .k8s.io.api.authorization.v1.ResourceRule resourceRules = 1;
    • clearResourceRules

       ResourceRules 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.
       
      repeated .k8s.io.api.authorization.v1.ResourceRule resourceRules = 1;
    • removeResourceRules

      public V1Authorization.SubjectRulesReviewStatus.Builder removeResourceRules(int index)
       ResourceRules 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.
       
      repeated .k8s.io.api.authorization.v1.ResourceRule resourceRules = 1;
    • getResourceRulesBuilder

      public V1Authorization.ResourceRule.Builder getResourceRulesBuilder(int index)
       ResourceRules 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.
       
      repeated .k8s.io.api.authorization.v1.ResourceRule resourceRules = 1;
    • getResourceRulesOrBuilder

      public V1Authorization.ResourceRuleOrBuilder getResourceRulesOrBuilder(int index)
       ResourceRules 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.
       
      repeated .k8s.io.api.authorization.v1.ResourceRule resourceRules = 1;
      Specified by:
      getResourceRulesOrBuilder in interface V1Authorization.SubjectRulesReviewStatusOrBuilder
    • getResourceRulesOrBuilderList

      public List<? extends V1Authorization.ResourceRuleOrBuilder> getResourceRulesOrBuilderList()
       ResourceRules 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.
       
      repeated .k8s.io.api.authorization.v1.ResourceRule resourceRules = 1;
      Specified by:
      getResourceRulesOrBuilderList in interface V1Authorization.SubjectRulesReviewStatusOrBuilder
    • addResourceRulesBuilder

      public V1Authorization.ResourceRule.Builder addResourceRulesBuilder()
       ResourceRules 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.
       
      repeated .k8s.io.api.authorization.v1.ResourceRule resourceRules = 1;
    • addResourceRulesBuilder

      public V1Authorization.ResourceRule.Builder addResourceRulesBuilder(int index)
       ResourceRules 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.
       
      repeated .k8s.io.api.authorization.v1.ResourceRule resourceRules = 1;
    • getResourceRulesBuilderList

      public List<V1Authorization.ResourceRule.Builder> getResourceRulesBuilderList()
       ResourceRules 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.
       
      repeated .k8s.io.api.authorization.v1.ResourceRule resourceRules = 1;
    • getNonResourceRulesList

      public List<V1Authorization.NonResourceRule> getNonResourceRulesList()
       NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
       The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
       
      repeated .k8s.io.api.authorization.v1.NonResourceRule nonResourceRules = 2;
      Specified by:
      getNonResourceRulesList in interface V1Authorization.SubjectRulesReviewStatusOrBuilder
    • getNonResourceRulesCount

      public int getNonResourceRulesCount()
       NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
       The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
       
      repeated .k8s.io.api.authorization.v1.NonResourceRule nonResourceRules = 2;
      Specified by:
      getNonResourceRulesCount in interface V1Authorization.SubjectRulesReviewStatusOrBuilder
    • getNonResourceRules

      public V1Authorization.NonResourceRule getNonResourceRules(int index)
       NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
       The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
       
      repeated .k8s.io.api.authorization.v1.NonResourceRule nonResourceRules = 2;
      Specified by:
      getNonResourceRules in interface V1Authorization.SubjectRulesReviewStatusOrBuilder
    • setNonResourceRules

       NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
       The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
       
      repeated .k8s.io.api.authorization.v1.NonResourceRule nonResourceRules = 2;
    • setNonResourceRules

      public V1Authorization.SubjectRulesReviewStatus.Builder setNonResourceRules(int index, V1Authorization.NonResourceRule.Builder builderForValue)
       NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
       The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
       
      repeated .k8s.io.api.authorization.v1.NonResourceRule nonResourceRules = 2;
    • addNonResourceRules

       NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
       The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
       
      repeated .k8s.io.api.authorization.v1.NonResourceRule nonResourceRules = 2;
    • addNonResourceRules

       NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
       The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
       
      repeated .k8s.io.api.authorization.v1.NonResourceRule nonResourceRules = 2;
    • addNonResourceRules

       NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
       The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
       
      repeated .k8s.io.api.authorization.v1.NonResourceRule nonResourceRules = 2;
    • addNonResourceRules

      public V1Authorization.SubjectRulesReviewStatus.Builder addNonResourceRules(int index, V1Authorization.NonResourceRule.Builder builderForValue)
       NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
       The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
       
      repeated .k8s.io.api.authorization.v1.NonResourceRule nonResourceRules = 2;
    • addAllNonResourceRules

       NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
       The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
       
      repeated .k8s.io.api.authorization.v1.NonResourceRule nonResourceRules = 2;
    • clearNonResourceRules

      public V1Authorization.SubjectRulesReviewStatus.Builder clearNonResourceRules()
       NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
       The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
       
      repeated .k8s.io.api.authorization.v1.NonResourceRule nonResourceRules = 2;
    • removeNonResourceRules

      public V1Authorization.SubjectRulesReviewStatus.Builder removeNonResourceRules(int index)
       NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
       The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
       
      repeated .k8s.io.api.authorization.v1.NonResourceRule nonResourceRules = 2;
    • getNonResourceRulesBuilder

      public V1Authorization.NonResourceRule.Builder getNonResourceRulesBuilder(int index)
       NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
       The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
       
      repeated .k8s.io.api.authorization.v1.NonResourceRule nonResourceRules = 2;
    • getNonResourceRulesOrBuilder

      public V1Authorization.NonResourceRuleOrBuilder getNonResourceRulesOrBuilder(int index)
       NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
       The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
       
      repeated .k8s.io.api.authorization.v1.NonResourceRule nonResourceRules = 2;
      Specified by:
      getNonResourceRulesOrBuilder in interface V1Authorization.SubjectRulesReviewStatusOrBuilder
    • getNonResourceRulesOrBuilderList

      public List<? extends V1Authorization.NonResourceRuleOrBuilder> getNonResourceRulesOrBuilderList()
       NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
       The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
       
      repeated .k8s.io.api.authorization.v1.NonResourceRule nonResourceRules = 2;
      Specified by:
      getNonResourceRulesOrBuilderList in interface V1Authorization.SubjectRulesReviewStatusOrBuilder
    • addNonResourceRulesBuilder

      public V1Authorization.NonResourceRule.Builder addNonResourceRulesBuilder()
       NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
       The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
       
      repeated .k8s.io.api.authorization.v1.NonResourceRule nonResourceRules = 2;
    • addNonResourceRulesBuilder

      public V1Authorization.NonResourceRule.Builder addNonResourceRulesBuilder(int index)
       NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
       The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
       
      repeated .k8s.io.api.authorization.v1.NonResourceRule nonResourceRules = 2;
    • getNonResourceRulesBuilderList

      public List<V1Authorization.NonResourceRule.Builder> getNonResourceRulesBuilderList()
       NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
       The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
       
      repeated .k8s.io.api.authorization.v1.NonResourceRule nonResourceRules = 2;
    • hasIncomplete

      public boolean hasIncomplete()
       Incomplete is true when the rules returned by this call are incomplete. This is most commonly
       encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.
       
      optional bool incomplete = 3;
      Specified by:
      hasIncomplete in interface V1Authorization.SubjectRulesReviewStatusOrBuilder
    • getIncomplete

      public boolean getIncomplete()
       Incomplete is true when the rules returned by this call are incomplete. This is most commonly
       encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.
       
      optional bool incomplete = 3;
      Specified by:
      getIncomplete in interface V1Authorization.SubjectRulesReviewStatusOrBuilder
    • setIncomplete

      public V1Authorization.SubjectRulesReviewStatus.Builder setIncomplete(boolean value)
       Incomplete is true when the rules returned by this call are incomplete. This is most commonly
       encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.
       
      optional bool incomplete = 3;
    • clearIncomplete

       Incomplete is true when the rules returned by this call are incomplete. This is most commonly
       encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.
       
      optional bool incomplete = 3;
    • hasEvaluationError

      public boolean hasEvaluationError()
       EvaluationError can appear in combination with Rules. It indicates an error occurred during
       rule evaluation, such as an authorizer that doesn't support rule evaluation, and that
       ResourceRules and/or NonResourceRules may be incomplete.
       +optional
       
      optional string evaluationError = 4;
      Specified by:
      hasEvaluationError in interface V1Authorization.SubjectRulesReviewStatusOrBuilder
    • getEvaluationError

      public String getEvaluationError()
       EvaluationError can appear in combination with Rules. It indicates an error occurred during
       rule evaluation, such as an authorizer that doesn't support rule evaluation, and that
       ResourceRules and/or NonResourceRules may be incomplete.
       +optional
       
      optional string evaluationError = 4;
      Specified by:
      getEvaluationError in interface V1Authorization.SubjectRulesReviewStatusOrBuilder
    • getEvaluationErrorBytes

      public com.google.protobuf.ByteString getEvaluationErrorBytes()
       EvaluationError can appear in combination with Rules. It indicates an error occurred during
       rule evaluation, such as an authorizer that doesn't support rule evaluation, and that
       ResourceRules and/or NonResourceRules may be incomplete.
       +optional
       
      optional string evaluationError = 4;
      Specified by:
      getEvaluationErrorBytes in interface V1Authorization.SubjectRulesReviewStatusOrBuilder
    • setEvaluationError

      public V1Authorization.SubjectRulesReviewStatus.Builder setEvaluationError(String value)
       EvaluationError can appear in combination with Rules. It indicates an error occurred during
       rule evaluation, such as an authorizer that doesn't support rule evaluation, and that
       ResourceRules and/or NonResourceRules may be incomplete.
       +optional
       
      optional string evaluationError = 4;
    • clearEvaluationError

      public V1Authorization.SubjectRulesReviewStatus.Builder clearEvaluationError()
       EvaluationError can appear in combination with Rules. It indicates an error occurred during
       rule evaluation, such as an authorizer that doesn't support rule evaluation, and that
       ResourceRules and/or NonResourceRules may be incomplete.
       +optional
       
      optional string evaluationError = 4;
    • setEvaluationErrorBytes

      public V1Authorization.SubjectRulesReviewStatus.Builder setEvaluationErrorBytes(com.google.protobuf.ByteString value)
       EvaluationError can appear in combination with Rules. It indicates an error occurred during
       rule evaluation, such as an authorizer that doesn't support rule evaluation, and that
       ResourceRules and/or NonResourceRules may be incomplete.
       +optional
       
      optional string evaluationError = 4;
    • setUnknownFields

      public final V1Authorization.SubjectRulesReviewStatus.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.SubjectRulesReviewStatus.Builder>
    • mergeUnknownFields

      public final V1Authorization.SubjectRulesReviewStatus.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.SubjectRulesReviewStatus.Builder>