Class V1Authentication.TokenReviewSpec.Builder

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

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

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

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

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

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

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

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

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

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

      public boolean hasToken()
       Token is the opaque bearer token.
       +optional
       
      optional string token = 1;
      Specified by:
      hasToken in interface V1Authentication.TokenReviewSpecOrBuilder
    • getToken

      public String getToken()
       Token is the opaque bearer token.
       +optional
       
      optional string token = 1;
      Specified by:
      getToken in interface V1Authentication.TokenReviewSpecOrBuilder
    • getTokenBytes

      public com.google.protobuf.ByteString getTokenBytes()
       Token is the opaque bearer token.
       +optional
       
      optional string token = 1;
      Specified by:
      getTokenBytes in interface V1Authentication.TokenReviewSpecOrBuilder
    • setToken

       Token is the opaque bearer token.
       +optional
       
      optional string token = 1;
    • clearToken

       Token is the opaque bearer token.
       +optional
       
      optional string token = 1;
    • setTokenBytes

      public V1Authentication.TokenReviewSpec.Builder setTokenBytes(com.google.protobuf.ByteString value)
       Token is the opaque bearer token.
       +optional
       
      optional string token = 1;
    • getAudiencesList

      public com.google.protobuf.ProtocolStringList getAudiencesList()
       Audiences is a list of the identifiers that the resource server presented
       with the token identifies as. Audience-aware token authenticators will
       verify that the token was intended for at least one of the audiences in
       this list. If no audiences are provided, the audience will default to the
       audience of the Kubernetes apiserver.
       +optional
       
      repeated string audiences = 2;
      Specified by:
      getAudiencesList in interface V1Authentication.TokenReviewSpecOrBuilder
    • getAudiencesCount

      public int getAudiencesCount()
       Audiences is a list of the identifiers that the resource server presented
       with the token identifies as. Audience-aware token authenticators will
       verify that the token was intended for at least one of the audiences in
       this list. If no audiences are provided, the audience will default to the
       audience of the Kubernetes apiserver.
       +optional
       
      repeated string audiences = 2;
      Specified by:
      getAudiencesCount in interface V1Authentication.TokenReviewSpecOrBuilder
    • getAudiences

      public String getAudiences(int index)
       Audiences is a list of the identifiers that the resource server presented
       with the token identifies as. Audience-aware token authenticators will
       verify that the token was intended for at least one of the audiences in
       this list. If no audiences are provided, the audience will default to the
       audience of the Kubernetes apiserver.
       +optional
       
      repeated string audiences = 2;
      Specified by:
      getAudiences in interface V1Authentication.TokenReviewSpecOrBuilder
    • getAudiencesBytes

      public com.google.protobuf.ByteString getAudiencesBytes(int index)
       Audiences is a list of the identifiers that the resource server presented
       with the token identifies as. Audience-aware token authenticators will
       verify that the token was intended for at least one of the audiences in
       this list. If no audiences are provided, the audience will default to the
       audience of the Kubernetes apiserver.
       +optional
       
      repeated string audiences = 2;
      Specified by:
      getAudiencesBytes in interface V1Authentication.TokenReviewSpecOrBuilder
    • setAudiences

      public V1Authentication.TokenReviewSpec.Builder setAudiences(int index, String value)
       Audiences is a list of the identifiers that the resource server presented
       with the token identifies as. Audience-aware token authenticators will
       verify that the token was intended for at least one of the audiences in
       this list. If no audiences are provided, the audience will default to the
       audience of the Kubernetes apiserver.
       +optional
       
      repeated string audiences = 2;
    • addAudiences

      public V1Authentication.TokenReviewSpec.Builder addAudiences(String value)
       Audiences is a list of the identifiers that the resource server presented
       with the token identifies as. Audience-aware token authenticators will
       verify that the token was intended for at least one of the audiences in
       this list. If no audiences are provided, the audience will default to the
       audience of the Kubernetes apiserver.
       +optional
       
      repeated string audiences = 2;
    • addAllAudiences

      public V1Authentication.TokenReviewSpec.Builder addAllAudiences(Iterable<String> values)
       Audiences is a list of the identifiers that the resource server presented
       with the token identifies as. Audience-aware token authenticators will
       verify that the token was intended for at least one of the audiences in
       this list. If no audiences are provided, the audience will default to the
       audience of the Kubernetes apiserver.
       +optional
       
      repeated string audiences = 2;
    • clearAudiences

       Audiences is a list of the identifiers that the resource server presented
       with the token identifies as. Audience-aware token authenticators will
       verify that the token was intended for at least one of the audiences in
       this list. If no audiences are provided, the audience will default to the
       audience of the Kubernetes apiserver.
       +optional
       
      repeated string audiences = 2;
    • addAudiencesBytes

      public V1Authentication.TokenReviewSpec.Builder addAudiencesBytes(com.google.protobuf.ByteString value)
       Audiences is a list of the identifiers that the resource server presented
       with the token identifies as. Audience-aware token authenticators will
       verify that the token was intended for at least one of the audiences in
       this list. If no audiences are provided, the audience will default to the
       audience of the Kubernetes apiserver.
       +optional
       
      repeated string audiences = 2;
    • setUnknownFields

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

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