Package io.kubernetes.client.proto
Class V1beta1Authentication.TokenReviewStatus.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Authentication.TokenReviewStatus.Builder>
io.kubernetes.client.proto.V1beta1Authentication.TokenReviewStatus.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,V1beta1Authentication.TokenReviewStatusOrBuilder
,Cloneable
- Enclosing class:
- V1beta1Authentication.TokenReviewStatus
public static final class V1beta1Authentication.TokenReviewStatus.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Authentication.TokenReviewStatus.Builder>
implements V1beta1Authentication.TokenReviewStatusOrBuilder
TokenReviewStatus is the result of the token authentication request.Protobuf type
k8s.io.api.authentication.v1beta1.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.ByteString
getAudiencesBytes
(int index) Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token.int
Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token.com.google.protobuf.ProtocolStringList
Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token.boolean
Authenticated indicates that the token was associated with a known user.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getError()
Error indicates that the token couldn't be checked +optionalcom.google.protobuf.ByteString
Error 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.boolean
Authenticated indicates that the token was associated with a known user.boolean
hasError()
Error indicates that the token couldn't be checked +optionalboolean
hasUser()
User is the UserInfo associated with the provided token.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(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) User is the UserInfo associated with the provided token.setUser
(V1beta1Authentication.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, 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<V1beta1Authentication.TokenReviewStatus.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<V1beta1Authentication.TokenReviewStatus.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<V1beta1Authentication.TokenReviewStatus.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<V1beta1Authentication.TokenReviewStatus.Builder>
-
setField
public V1beta1Authentication.TokenReviewStatus.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<V1beta1Authentication.TokenReviewStatus.Builder>
-
clearField
public V1beta1Authentication.TokenReviewStatus.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<V1beta1Authentication.TokenReviewStatus.Builder>
-
clearOneof
public V1beta1Authentication.TokenReviewStatus.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<V1beta1Authentication.TokenReviewStatus.Builder>
-
setRepeatedField
public V1beta1Authentication.TokenReviewStatus.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<V1beta1Authentication.TokenReviewStatus.Builder>
-
addRepeatedField
public V1beta1Authentication.TokenReviewStatus.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<V1beta1Authentication.TokenReviewStatus.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V1beta1Authentication.TokenReviewStatus.Builder>
-
mergeFrom
public V1beta1Authentication.TokenReviewStatus.Builder mergeFrom(V1beta1Authentication.TokenReviewStatus other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Authentication.TokenReviewStatus.Builder>
-
mergeFrom
public V1beta1Authentication.TokenReviewStatus.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<V1beta1Authentication.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:
hasAuthenticated
in interfaceV1beta1Authentication.TokenReviewStatusOrBuilder
-
getAuthenticated
public boolean getAuthenticated()Authenticated indicates that the token was associated with a known user. +optional
optional bool authenticated = 1;
- Specified by:
getAuthenticated
in interfaceV1beta1Authentication.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.v1beta1.UserInfo user = 2;
- Specified by:
hasUser
in interfaceV1beta1Authentication.TokenReviewStatusOrBuilder
-
getUser
User is the UserInfo associated with the provided token. +optional
optional .k8s.io.api.authentication.v1beta1.UserInfo user = 2;
- Specified by:
getUser
in interfaceV1beta1Authentication.TokenReviewStatusOrBuilder
-
setUser
public V1beta1Authentication.TokenReviewStatus.Builder setUser(V1beta1Authentication.UserInfo value) User is the UserInfo associated with the provided token. +optional
optional .k8s.io.api.authentication.v1beta1.UserInfo user = 2;
-
setUser
public V1beta1Authentication.TokenReviewStatus.Builder setUser(V1beta1Authentication.UserInfo.Builder builderForValue) User is the UserInfo associated with the provided token. +optional
optional .k8s.io.api.authentication.v1beta1.UserInfo user = 2;
-
mergeUser
public V1beta1Authentication.TokenReviewStatus.Builder mergeUser(V1beta1Authentication.UserInfo value) User is the UserInfo associated with the provided token. +optional
optional .k8s.io.api.authentication.v1beta1.UserInfo user = 2;
-
clearUser
User is the UserInfo associated with the provided token. +optional
optional .k8s.io.api.authentication.v1beta1.UserInfo user = 2;
-
getUserBuilder
User is the UserInfo associated with the provided token. +optional
optional .k8s.io.api.authentication.v1beta1.UserInfo user = 2;
-
getUserOrBuilder
User is the UserInfo associated with the provided token. +optional
optional .k8s.io.api.authentication.v1beta1.UserInfo user = 2;
- Specified by:
getUserOrBuilder
in interfaceV1beta1Authentication.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:
getAudiencesList
in interfaceV1beta1Authentication.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:
getAudiencesCount
in interfaceV1beta1Authentication.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:
getAudiences
in interfaceV1beta1Authentication.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:
getAudiencesBytes
in interfaceV1beta1Authentication.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 V1beta1Authentication.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:
hasError
in interfaceV1beta1Authentication.TokenReviewStatusOrBuilder
-
getError
Error indicates that the token couldn't be checked +optional
optional string error = 3;
- Specified by:
getError
in interfaceV1beta1Authentication.TokenReviewStatusOrBuilder
-
getErrorBytes
public com.google.protobuf.ByteString getErrorBytes()Error indicates that the token couldn't be checked +optional
optional string error = 3;
- Specified by:
getErrorBytes
in interfaceV1beta1Authentication.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 V1beta1Authentication.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 V1beta1Authentication.TokenReviewStatus.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Authentication.TokenReviewStatus.Builder>
-
mergeUnknownFields
public final V1beta1Authentication.TokenReviewStatus.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Authentication.TokenReviewStatus.Builder>
-