Class V1Authentication.TokenReviewStatus.Builder

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

public static final class V1Authentication.TokenReviewStatus.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1Authentication.TokenReviewStatus.Builder> implements V1Authentication.TokenReviewStatusOrBuilder
 TokenReviewStatus is the result of the token authentication request.
 
Protobuf type k8s.io.api.authentication.v1.TokenReviewStatus
  • 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<V1Authentication.TokenReviewStatus.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<V1Authentication.TokenReviewStatus.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<V1Authentication.TokenReviewStatus.Builder>
    • getDefaultInstanceForType

      public V1Authentication.TokenReviewStatus 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 V1Authentication.TokenReviewStatus 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<V1Authentication.TokenReviewStatus.Builder>
    • setField

      public V1Authentication.TokenReviewStatus.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<V1Authentication.TokenReviewStatus.Builder>
    • clearField

      public V1Authentication.TokenReviewStatus.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<V1Authentication.TokenReviewStatus.Builder>
    • clearOneof

      public V1Authentication.TokenReviewStatus.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<V1Authentication.TokenReviewStatus.Builder>
    • setRepeatedField

      public V1Authentication.TokenReviewStatus.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<V1Authentication.TokenReviewStatus.Builder>
    • addRepeatedField

      public V1Authentication.TokenReviewStatus.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<V1Authentication.TokenReviewStatus.Builder>
    • mergeFrom

      public V1Authentication.TokenReviewStatus.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<V1Authentication.TokenReviewStatus.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<V1Authentication.TokenReviewStatus.Builder>
    • mergeFrom

      public V1Authentication.TokenReviewStatus.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<V1Authentication.TokenReviewStatus.Builder>
      Throws:
      IOException
    • hasAuthenticated

      public boolean hasAuthenticated()
       Authenticated indicates that the token was associated with a known user.
       +optional
       
      optional bool authenticated = 1;
      Specified by:
      hasAuthenticated in interface V1Authentication.TokenReviewStatusOrBuilder
    • getAuthenticated

      public boolean getAuthenticated()
       Authenticated indicates that the token was associated with a known user.
       +optional
       
      optional bool authenticated = 1;
      Specified by:
      getAuthenticated in interface V1Authentication.TokenReviewStatusOrBuilder
    • setAuthenticated

      public V1Authentication.TokenReviewStatus.Builder setAuthenticated(boolean value)
       Authenticated indicates that the token was associated with a known user.
       +optional
       
      optional bool authenticated = 1;
    • clearAuthenticated

      public V1Authentication.TokenReviewStatus.Builder clearAuthenticated()
       Authenticated indicates that the token was associated with a known user.
       +optional
       
      optional bool authenticated = 1;
    • hasUser

      public boolean hasUser()
       User is the UserInfo associated with the provided token.
       +optional
       
      optional .k8s.io.api.authentication.v1.UserInfo user = 2;
      Specified by:
      hasUser in interface V1Authentication.TokenReviewStatusOrBuilder
    • getUser

      public V1Authentication.UserInfo getUser()
       User is the UserInfo associated with the provided token.
       +optional
       
      optional .k8s.io.api.authentication.v1.UserInfo user = 2;
      Specified by:
      getUser in interface V1Authentication.TokenReviewStatusOrBuilder
    • setUser

       User is the UserInfo associated with the provided token.
       +optional
       
      optional .k8s.io.api.authentication.v1.UserInfo user = 2;
    • setUser

       User is the UserInfo associated with the provided token.
       +optional
       
      optional .k8s.io.api.authentication.v1.UserInfo user = 2;
    • mergeUser

       User is the UserInfo associated with the provided token.
       +optional
       
      optional .k8s.io.api.authentication.v1.UserInfo user = 2;
    • clearUser

       User is the UserInfo associated with the provided token.
       +optional
       
      optional .k8s.io.api.authentication.v1.UserInfo user = 2;
    • getUserBuilder

      public V1Authentication.UserInfo.Builder getUserBuilder()
       User is the UserInfo associated with the provided token.
       +optional
       
      optional .k8s.io.api.authentication.v1.UserInfo user = 2;
    • getUserOrBuilder

      public V1Authentication.UserInfoOrBuilder getUserOrBuilder()
       User is the UserInfo associated with the provided token.
       +optional
       
      optional .k8s.io.api.authentication.v1.UserInfo user = 2;
      Specified by:
      getUserOrBuilder in interface V1Authentication.TokenReviewStatusOrBuilder
    • getAudiencesList

      public com.google.protobuf.ProtocolStringList getAudiencesList()
       Audiences are audience identifiers chosen by the authenticator that are
       compatible with both the TokenReview and token. An identifier is any
       identifier in the intersection of the TokenReviewSpec audiences and the
       token's audiences. A client of the TokenReview API that sets the
       spec.audiences field should validate that a compatible audience identifier
       is returned in the status.audiences field to ensure that the TokenReview
       server is audience aware. If a TokenReview returns an empty
       status.audience field where status.authenticated is "true", the token is
       valid against the audience of the Kubernetes API server.
       +optional
       
      repeated string audiences = 4;
      Specified by:
      getAudiencesList in interface V1Authentication.TokenReviewStatusOrBuilder
    • getAudiencesCount

      public int getAudiencesCount()
       Audiences are audience identifiers chosen by the authenticator that are
       compatible with both the TokenReview and token. An identifier is any
       identifier in the intersection of the TokenReviewSpec audiences and the
       token's audiences. A client of the TokenReview API that sets the
       spec.audiences field should validate that a compatible audience identifier
       is returned in the status.audiences field to ensure that the TokenReview
       server is audience aware. If a TokenReview returns an empty
       status.audience field where status.authenticated is "true", the token is
       valid against the audience of the Kubernetes API server.
       +optional
       
      repeated string audiences = 4;
      Specified by:
      getAudiencesCount in interface V1Authentication.TokenReviewStatusOrBuilder
    • getAudiences

      public String getAudiences(int index)
       Audiences are audience identifiers chosen by the authenticator that are
       compatible with both the TokenReview and token. An identifier is any
       identifier in the intersection of the TokenReviewSpec audiences and the
       token's audiences. A client of the TokenReview API that sets the
       spec.audiences field should validate that a compatible audience identifier
       is returned in the status.audiences field to ensure that the TokenReview
       server is audience aware. If a TokenReview returns an empty
       status.audience field where status.authenticated is "true", the token is
       valid against the audience of the Kubernetes API server.
       +optional
       
      repeated string audiences = 4;
      Specified by:
      getAudiences in interface V1Authentication.TokenReviewStatusOrBuilder
    • getAudiencesBytes

      public com.google.protobuf.ByteString getAudiencesBytes(int index)
       Audiences are audience identifiers chosen by the authenticator that are
       compatible with both the TokenReview and token. An identifier is any
       identifier in the intersection of the TokenReviewSpec audiences and the
       token's audiences. A client of the TokenReview API that sets the
       spec.audiences field should validate that a compatible audience identifier
       is returned in the status.audiences field to ensure that the TokenReview
       server is audience aware. If a TokenReview returns an empty
       status.audience field where status.authenticated is "true", the token is
       valid against the audience of the Kubernetes API server.
       +optional
       
      repeated string audiences = 4;
      Specified by:
      getAudiencesBytes in interface V1Authentication.TokenReviewStatusOrBuilder
    • setAudiences

      public V1Authentication.TokenReviewStatus.Builder setAudiences(int index, String value)
       Audiences are audience identifiers chosen by the authenticator that are
       compatible with both the TokenReview and token. An identifier is any
       identifier in the intersection of the TokenReviewSpec audiences and the
       token's audiences. A client of the TokenReview API that sets the
       spec.audiences field should validate that a compatible audience identifier
       is returned in the status.audiences field to ensure that the TokenReview
       server is audience aware. If a TokenReview returns an empty
       status.audience field where status.authenticated is "true", the token is
       valid against the audience of the Kubernetes API server.
       +optional
       
      repeated string audiences = 4;
    • addAudiences

       Audiences are audience identifiers chosen by the authenticator that are
       compatible with both the TokenReview and token. An identifier is any
       identifier in the intersection of the TokenReviewSpec audiences and the
       token's audiences. A client of the TokenReview API that sets the
       spec.audiences field should validate that a compatible audience identifier
       is returned in the status.audiences field to ensure that the TokenReview
       server is audience aware. If a TokenReview returns an empty
       status.audience field where status.authenticated is "true", the token is
       valid against the audience of the Kubernetes API server.
       +optional
       
      repeated string audiences = 4;
    • addAllAudiences

       Audiences are audience identifiers chosen by the authenticator that are
       compatible with both the TokenReview and token. An identifier is any
       identifier in the intersection of the TokenReviewSpec audiences and the
       token's audiences. A client of the TokenReview API that sets the
       spec.audiences field should validate that a compatible audience identifier
       is returned in the status.audiences field to ensure that the TokenReview
       server is audience aware. If a TokenReview returns an empty
       status.audience field where status.authenticated is "true", the token is
       valid against the audience of the Kubernetes API server.
       +optional
       
      repeated string audiences = 4;
    • clearAudiences

       Audiences are audience identifiers chosen by the authenticator that are
       compatible with both the TokenReview and token. An identifier is any
       identifier in the intersection of the TokenReviewSpec audiences and the
       token's audiences. A client of the TokenReview API that sets the
       spec.audiences field should validate that a compatible audience identifier
       is returned in the status.audiences field to ensure that the TokenReview
       server is audience aware. If a TokenReview returns an empty
       status.audience field where status.authenticated is "true", the token is
       valid against the audience of the Kubernetes API server.
       +optional
       
      repeated string audiences = 4;
    • addAudiencesBytes

      public V1Authentication.TokenReviewStatus.Builder addAudiencesBytes(com.google.protobuf.ByteString value)
       Audiences are audience identifiers chosen by the authenticator that are
       compatible with both the TokenReview and token. An identifier is any
       identifier in the intersection of the TokenReviewSpec audiences and the
       token's audiences. A client of the TokenReview API that sets the
       spec.audiences field should validate that a compatible audience identifier
       is returned in the status.audiences field to ensure that the TokenReview
       server is audience aware. If a TokenReview returns an empty
       status.audience field where status.authenticated is "true", the token is
       valid against the audience of the Kubernetes API server.
       +optional
       
      repeated string audiences = 4;
    • hasError

      public boolean hasError()
       Error indicates that the token couldn't be checked
       +optional
       
      optional string error = 3;
      Specified by:
      hasError in interface V1Authentication.TokenReviewStatusOrBuilder
    • getError

      public String getError()
       Error indicates that the token couldn't be checked
       +optional
       
      optional string error = 3;
      Specified by:
      getError in interface V1Authentication.TokenReviewStatusOrBuilder
    • getErrorBytes

      public com.google.protobuf.ByteString getErrorBytes()
       Error indicates that the token couldn't be checked
       +optional
       
      optional string error = 3;
      Specified by:
      getErrorBytes in interface V1Authentication.TokenReviewStatusOrBuilder
    • setError

       Error indicates that the token couldn't be checked
       +optional
       
      optional string error = 3;
    • clearError

       Error indicates that the token couldn't be checked
       +optional
       
      optional string error = 3;
    • setErrorBytes

      public V1Authentication.TokenReviewStatus.Builder setErrorBytes(com.google.protobuf.ByteString value)
       Error indicates that the token couldn't be checked
       +optional
       
      optional string error = 3;
    • setUnknownFields

      public final V1Authentication.TokenReviewStatus.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<V1Authentication.TokenReviewStatus.Builder>
    • mergeUnknownFields

      public final V1Authentication.TokenReviewStatus.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<V1Authentication.TokenReviewStatus.Builder>