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.ByteString
getAudiencesBytes
(int index) Audiences are the intendend audiences of the token.int
Audiences are the intendend audiences of the token.com.google.protobuf.ProtocolStringList
Audiences 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.Descriptor
com.google.protobuf.Descriptors.Descriptor
long
ExpirationSeconds is the requested duration of validity of the request.boolean
BoundObjectRef is a reference to an object that the token will be bound to.boolean
ExpirationSeconds is the requested duration of validity of the request.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
BoundObjectRef 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, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authentication.TokenRequestSpec.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authentication.TokenRequestSpec.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authentication.TokenRequestSpec.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authentication.TokenRequestSpec.Builder>
-
clearField
public V1Authentication.TokenRequestSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authentication.TokenRequestSpec.Builder>
-
clearOneof
public V1Authentication.TokenRequestSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authentication.TokenRequestSpec.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V1Authentication.TokenRequestSpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getAudiencesList
in 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:
getAudiencesCount
in 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:
getAudiences
in 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:
getAudiencesBytes
in 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:
hasExpirationSeconds
in 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:
getExpirationSeconds
in 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:
hasBoundObjectRef
in 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:
getBoundObjectRef
in 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:
getBoundObjectRefOrBuilder
in interfaceV1Authentication.TokenRequestSpecOrBuilder
-
setUnknownFields
public final V1Authentication.TokenRequestSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authentication.TokenRequestSpec.Builder>
-
mergeUnknownFields
public final V1Authentication.TokenRequestSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authentication.TokenRequestSpec.Builder>
-