Class V1Authentication.TokenRequestSpec.Builder

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

public static final class V1Authentication.TokenRequestSpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1Authentication.TokenRequestSpec.Builder> implements V1Authentication.TokenRequestSpecOrBuilder
 TokenRequestSpec contains client provided parameters of a token request.
 
Protobuf type k8s.io.api.authentication.v1.TokenRequestSpec
  • 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.TokenRequestSpec.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.TokenRequestSpec.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.TokenRequestSpec.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

      public com.google.protobuf.ProtocolStringList getAudiencesList()
       Audiences are the intendend audiences of the token. A recipient of a
       token must identitfy themself with an identifier in the list of
       audiences of the token, and otherwise should reject the token. A
       token issued for multiple audiences may be used to authenticate
       against any of the audiences listed but implies a high degree of
       trust between the target audiences.
       
      repeated string audiences = 1;
      Specified by:
      getAudiencesList in interface V1Authentication.TokenRequestSpecOrBuilder
    • getAudiencesCount

      public int getAudiencesCount()
       Audiences are the intendend audiences of the token. A recipient of a
       token must identitfy themself with an identifier in the list of
       audiences of the token, and otherwise should reject the token. A
       token issued for multiple audiences may be used to authenticate
       against any of the audiences listed but implies a high degree of
       trust between the target audiences.
       
      repeated string audiences = 1;
      Specified by:
      getAudiencesCount in interface V1Authentication.TokenRequestSpecOrBuilder
    • getAudiences

      public String getAudiences(int index)
       Audiences are the intendend audiences of the token. A recipient of a
       token must identitfy themself with an identifier in the list of
       audiences of the token, and otherwise should reject the token. A
       token issued for multiple audiences may be used to authenticate
       against any of the audiences listed but implies a high degree of
       trust between the target audiences.
       
      repeated string audiences = 1;
      Specified by:
      getAudiences in interface V1Authentication.TokenRequestSpecOrBuilder
    • getAudiencesBytes

      public com.google.protobuf.ByteString getAudiencesBytes(int index)
       Audiences are the intendend audiences of the token. A recipient of a
       token must identitfy themself with an identifier in the list of
       audiences of the token, and otherwise should reject the token. A
       token issued for multiple audiences may be used to authenticate
       against any of the audiences listed but implies a high degree of
       trust between the target audiences.
       
      repeated string audiences = 1;
      Specified by:
      getAudiencesBytes in interface V1Authentication.TokenRequestSpecOrBuilder
    • setAudiences

      public V1Authentication.TokenRequestSpec.Builder setAudiences(int index, String value)
       Audiences are the intendend audiences of the token. A recipient of a
       token must identitfy themself with an identifier in the list of
       audiences of the token, and otherwise should reject the token. A
       token issued for multiple audiences may be used to authenticate
       against any of the audiences listed but implies a high degree of
       trust between the target audiences.
       
      repeated string audiences = 1;
    • addAudiences

       Audiences are the intendend audiences of the token. A recipient of a
       token must identitfy themself with an identifier in the list of
       audiences of the token, and otherwise should reject the token. A
       token issued for multiple audiences may be used to authenticate
       against any of the audiences listed but implies a high degree of
       trust between the target audiences.
       
      repeated string audiences = 1;
    • addAllAudiences

      public V1Authentication.TokenRequestSpec.Builder addAllAudiences(Iterable<String> values)
       Audiences are the intendend audiences of the token. A recipient of a
       token must identitfy themself with an identifier in the list of
       audiences of the token, and otherwise should reject the token. A
       token issued for multiple audiences may be used to authenticate
       against any of the audiences listed but implies a high degree of
       trust between the target audiences.
       
      repeated string audiences = 1;
    • clearAudiences

       Audiences are the intendend audiences of the token. A recipient of a
       token must identitfy themself with an identifier in the list of
       audiences of the token, and otherwise should reject the token. A
       token issued for multiple audiences may be used to authenticate
       against any of the audiences listed but implies a high degree of
       trust between the target audiences.
       
      repeated string audiences = 1;
    • addAudiencesBytes

      public V1Authentication.TokenRequestSpec.Builder addAudiencesBytes(com.google.protobuf.ByteString value)
       Audiences are the intendend audiences of the token. A recipient of a
       token must identitfy themself with an identifier in the list of
       audiences of the token, and otherwise should reject the token. A
       token issued for multiple audiences may be used to authenticate
       against any of the audiences listed but implies a high degree of
       trust between the target audiences.
       
      repeated string audiences = 1;
    • hasExpirationSeconds

      public boolean hasExpirationSeconds()
       ExpirationSeconds is the requested duration of validity of the request. The
       token issuer may return a token with a different validity duration so a
       client needs to check the 'expiration' field in a response.
       +optional
       
      optional int64 expirationSeconds = 4;
      Specified by:
      hasExpirationSeconds in interface V1Authentication.TokenRequestSpecOrBuilder
    • getExpirationSeconds

      public long getExpirationSeconds()
       ExpirationSeconds is the requested duration of validity of the request. The
       token issuer may return a token with a different validity duration so a
       client needs to check the 'expiration' field in a response.
       +optional
       
      optional int64 expirationSeconds = 4;
      Specified by:
      getExpirationSeconds in interface V1Authentication.TokenRequestSpecOrBuilder
    • setExpirationSeconds

      public V1Authentication.TokenRequestSpec.Builder setExpirationSeconds(long value)
       ExpirationSeconds is the requested duration of validity of the request. The
       token issuer may return a token with a different validity duration so a
       client needs to check the 'expiration' field in a response.
       +optional
       
      optional int64 expirationSeconds = 4;
    • clearExpirationSeconds

      public V1Authentication.TokenRequestSpec.Builder clearExpirationSeconds()
       ExpirationSeconds is the requested duration of validity of the request. The
       token issuer may return a token with a different validity duration so a
       client needs to check the 'expiration' field in a response.
       +optional
       
      optional int64 expirationSeconds = 4;
    • hasBoundObjectRef

      public boolean hasBoundObjectRef()
       BoundObjectRef is a reference to an object that the token will be bound to.
       The token will only be valid for as long as the bound object exists.
       NOTE: The API server's TokenReview endpoint will validate the
       BoundObjectRef, but other audiences may not. Keep ExpirationSeconds
       small if you want prompt revocation.
       +optional
       
      optional .k8s.io.api.authentication.v1.BoundObjectReference boundObjectRef = 3;
      Specified by:
      hasBoundObjectRef in interface V1Authentication.TokenRequestSpecOrBuilder
    • getBoundObjectRef

      public V1Authentication.BoundObjectReference getBoundObjectRef()
       BoundObjectRef is a reference to an object that the token will be bound to.
       The token will only be valid for as long as the bound object exists.
       NOTE: The API server's TokenReview endpoint will validate the
       BoundObjectRef, but other audiences may not. Keep ExpirationSeconds
       small if you want prompt revocation.
       +optional
       
      optional .k8s.io.api.authentication.v1.BoundObjectReference boundObjectRef = 3;
      Specified by:
      getBoundObjectRef in interface V1Authentication.TokenRequestSpecOrBuilder
    • setBoundObjectRef

       BoundObjectRef is a reference to an object that the token will be bound to.
       The token will only be valid for as long as the bound object exists.
       NOTE: The API server's TokenReview endpoint will validate the
       BoundObjectRef, but other audiences may not. Keep ExpirationSeconds
       small if you want prompt revocation.
       +optional
       
      optional .k8s.io.api.authentication.v1.BoundObjectReference boundObjectRef = 3;
    • setBoundObjectRef

       BoundObjectRef is a reference to an object that the token will be bound to.
       The token will only be valid for as long as the bound object exists.
       NOTE: The API server's TokenReview endpoint will validate the
       BoundObjectRef, but other audiences may not. Keep ExpirationSeconds
       small if you want prompt revocation.
       +optional
       
      optional .k8s.io.api.authentication.v1.BoundObjectReference boundObjectRef = 3;
    • mergeBoundObjectRef

       BoundObjectRef is a reference to an object that the token will be bound to.
       The token will only be valid for as long as the bound object exists.
       NOTE: The API server's TokenReview endpoint will validate the
       BoundObjectRef, but other audiences may not. Keep ExpirationSeconds
       small if you want prompt revocation.
       +optional
       
      optional .k8s.io.api.authentication.v1.BoundObjectReference boundObjectRef = 3;
    • clearBoundObjectRef

      public V1Authentication.TokenRequestSpec.Builder clearBoundObjectRef()
       BoundObjectRef is a reference to an object that the token will be bound to.
       The token will only be valid for as long as the bound object exists.
       NOTE: The API server's TokenReview endpoint will validate the
       BoundObjectRef, but other audiences may not. Keep ExpirationSeconds
       small if you want prompt revocation.
       +optional
       
      optional .k8s.io.api.authentication.v1.BoundObjectReference boundObjectRef = 3;
    • getBoundObjectRefBuilder

      public V1Authentication.BoundObjectReference.Builder getBoundObjectRefBuilder()
       BoundObjectRef is a reference to an object that the token will be bound to.
       The token will only be valid for as long as the bound object exists.
       NOTE: The API server's TokenReview endpoint will validate the
       BoundObjectRef, but other audiences may not. Keep ExpirationSeconds
       small if you want prompt revocation.
       +optional
       
      optional .k8s.io.api.authentication.v1.BoundObjectReference boundObjectRef = 3;
    • getBoundObjectRefOrBuilder

      public V1Authentication.BoundObjectReferenceOrBuilder getBoundObjectRefOrBuilder()
       BoundObjectRef is a reference to an object that the token will be bound to.
       The token will only be valid for as long as the bound object exists.
       NOTE: The API server's TokenReview endpoint will validate the
       BoundObjectRef, but other audiences may not. Keep ExpirationSeconds
       small if you want prompt revocation.
       +optional
       
      optional .k8s.io.api.authentication.v1.BoundObjectReference boundObjectRef = 3;
      Specified by:
      getBoundObjectRefOrBuilder in interface V1Authentication.TokenRequestSpecOrBuilder
    • setUnknownFields

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

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