Package io.kubernetes.client.proto
Class V1Authentication.TokenReviewStatus.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
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 Summary
Modifier and TypeMethodDescriptionaddAllAudiences(Iterable<String> values) Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token.addAudiences(String value) Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token.addAudiencesBytes(com.google.protobuf.ByteString value) Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token.Authenticated indicates that the token was associated with a known user.Error indicates that the token couldn't be checked +optionalclearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) User is the UserInfo associated with the provided token.clone()getAudiences(int index) Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token.com.google.protobuf.ByteStringgetAudiencesBytes(int index) Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token.intAudiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token.com.google.protobuf.ProtocolStringListAudiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token.booleanAuthenticated indicates that the token was associated with a known user.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetError()Error indicates that the token couldn't be checked +optionalcom.google.protobuf.ByteStringError indicates that the token couldn't be checked +optionalgetUser()User is the UserInfo associated with the provided token.User is the UserInfo associated with the provided token.User is the UserInfo associated with the provided token.booleanAuthenticated indicates that the token was associated with a known user.booleanhasError()Error indicates that the token couldn't be checked +optionalbooleanhasUser()User is the UserInfo associated with the provided token.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) User is the UserInfo associated with the provided token.setAudiences(int index, String value) Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token.setAuthenticated(boolean value) Authenticated indicates that the token was associated with a known user.Error indicates that the token couldn't be checked +optionalsetErrorBytes(com.google.protobuf.ByteString value) Error indicates that the token couldn't be checked +optionalsetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setUser(V1Authentication.UserInfo value) User is the UserInfo associated with the provided token.setUser(V1Authentication.UserInfo.Builder builderForValue) User is the UserInfo associated with the provided token.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.TokenReviewStatus.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.TokenReviewStatus.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.TokenReviewStatus.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.TokenReviewStatus.Builder>
-
setField
public V1Authentication.TokenReviewStatus.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.TokenReviewStatus.Builder>
-
clearField
public V1Authentication.TokenReviewStatus.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authentication.TokenReviewStatus.Builder>
-
clearOneof
public V1Authentication.TokenReviewStatus.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authentication.TokenReviewStatus.Builder>
-
addRepeatedField
public V1Authentication.TokenReviewStatus.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.TokenReviewStatus.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1Authentication.TokenReviewStatus.Builder>
-
mergeFrom
public V1Authentication.TokenReviewStatus.Builder mergeFrom(V1Authentication.TokenReviewStatus other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
hasAuthenticatedin interfaceV1Authentication.TokenReviewStatusOrBuilder
-
getAuthenticated
public boolean getAuthenticated()Authenticated indicates that the token was associated with a known user. +optional
optional bool authenticated = 1;- Specified by:
getAuthenticatedin interfaceV1Authentication.TokenReviewStatusOrBuilder
-
setAuthenticated
Authenticated indicates that the token was associated with a known user. +optional
optional bool authenticated = 1; -
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:
hasUserin interfaceV1Authentication.TokenReviewStatusOrBuilder
-
getUser
User is the UserInfo associated with the provided token. +optional
optional .k8s.io.api.authentication.v1.UserInfo user = 2;- Specified by:
getUserin interfaceV1Authentication.TokenReviewStatusOrBuilder
-
setUser
User is the UserInfo associated with the provided token. +optional
optional .k8s.io.api.authentication.v1.UserInfo user = 2; -
setUser
public V1Authentication.TokenReviewStatus.Builder setUser(V1Authentication.UserInfo.Builder builderForValue) 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
User is the UserInfo associated with the provided token. +optional
optional .k8s.io.api.authentication.v1.UserInfo user = 2; -
getUserOrBuilder
User is the UserInfo associated with the provided token. +optional
optional .k8s.io.api.authentication.v1.UserInfo user = 2;- Specified by:
getUserOrBuilderin interfaceV1Authentication.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:
getAudiencesListin interfaceV1Authentication.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:
getAudiencesCountin interfaceV1Authentication.TokenReviewStatusOrBuilder
-
getAudiences
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:
getAudiencesin interfaceV1Authentication.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:
getAudiencesBytesin interfaceV1Authentication.TokenReviewStatusOrBuilder
-
setAudiences
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:
hasErrorin interfaceV1Authentication.TokenReviewStatusOrBuilder
-
getError
Error indicates that the token couldn't be checked +optional
optional string error = 3;- Specified by:
getErrorin interfaceV1Authentication.TokenReviewStatusOrBuilder
-
getErrorBytes
public com.google.protobuf.ByteString getErrorBytes()Error indicates that the token couldn't be checked +optional
optional string error = 3;- Specified by:
getErrorBytesin interfaceV1Authentication.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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authentication.TokenReviewStatus.Builder>
-
mergeUnknownFields
public final V1Authentication.TokenReviewStatus.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authentication.TokenReviewStatus.Builder>
-