Package io.kubernetes.client.proto
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 Summary
Modifier and TypeMethodDescriptionaddAllAudiences(Iterable<String> values) Audiences are the intendend audiences of the token.addAudiences(String value) Audiences are the intendend audiences of the token.addAudiencesBytes(com.google.protobuf.ByteString value) Audiences are the intendend audiences of the token.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Audiences are the intendend audiences of the token.BoundObjectRef is a reference to an object that the token will be bound to.ExpirationSeconds is the requested duration of validity of the request.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()getAudiences(int index) Audiences are the intendend audiences of the token.com.google.protobuf.ByteStringgetAudiencesBytes(int index) Audiences are the intendend audiences of the token.intAudiences are the intendend audiences of the token.com.google.protobuf.ProtocolStringListAudiences are the intendend audiences of the token.BoundObjectRef is a reference to an object that the token will be bound to.BoundObjectRef is a reference to an object that the token will be bound to.BoundObjectRef is a reference to an object that the token will be bound to.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongExpirationSeconds is the requested duration of validity of the request.booleanBoundObjectRef is a reference to an object that the token will be bound to.booleanExpirationSeconds is the requested duration of validity of the request.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanBoundObjectRef is a reference to an object that the token will be bound to.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setAudiences(int index, String value) Audiences are the intendend audiences of the token.BoundObjectRef is a reference to an object that the token will be bound to.setBoundObjectRef(V1Authentication.BoundObjectReference.Builder builderForValue) BoundObjectRef is a reference to an object that the token will be bound to.setExpirationSeconds(long value) ExpirationSeconds is the requested duration of validity of the request.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authentication.TokenRequestSpec.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authentication.TokenRequestSpec.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authentication.TokenRequestSpec.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authentication.TokenRequestSpec.Builder>
-
setField
public V1Authentication.TokenRequestSpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authentication.TokenRequestSpec.Builder>
-
clearField
public V1Authentication.TokenRequestSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authentication.TokenRequestSpec.Builder>
-
clearOneof
public V1Authentication.TokenRequestSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authentication.TokenRequestSpec.Builder>
-
addRepeatedField
public V1Authentication.TokenRequestSpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authentication.TokenRequestSpec.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1Authentication.TokenRequestSpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getAudiencesListin interfaceV1Authentication.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:
getAudiencesCountin interfaceV1Authentication.TokenRequestSpecOrBuilder
-
getAudiences
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:
getAudiencesin interfaceV1Authentication.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:
getAudiencesBytesin interfaceV1Authentication.TokenRequestSpecOrBuilder
-
setAudiences
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
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:
hasExpirationSecondsin interfaceV1Authentication.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:
getExpirationSecondsin interfaceV1Authentication.TokenRequestSpecOrBuilder
-
setExpirationSeconds
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
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:
hasBoundObjectRefin interfaceV1Authentication.TokenRequestSpecOrBuilder
-
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:
getBoundObjectRefin interfaceV1Authentication.TokenRequestSpecOrBuilder
-
setBoundObjectRef
public V1Authentication.TokenRequestSpec.Builder setBoundObjectRef(V1Authentication.BoundObjectReference value) 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
public V1Authentication.TokenRequestSpec.Builder setBoundObjectRef(V1Authentication.BoundObjectReference.Builder builderForValue) 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
public V1Authentication.TokenRequestSpec.Builder mergeBoundObjectRef(V1Authentication.BoundObjectReference value) 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
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
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
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:
getBoundObjectRefOrBuilderin interfaceV1Authentication.TokenRequestSpecOrBuilder
-
setUnknownFields
public final V1Authentication.TokenRequestSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authentication.TokenRequestSpec.Builder>
-
mergeUnknownFields
public final V1Authentication.TokenRequestSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authentication.TokenRequestSpec.Builder>
-