
io.kubernetes.client.proto.V1Authentication Maven / Gradle / Ivy
/*
Copyright 2021 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package io.kubernetes.client.proto;
public final class V1Authentication {
private V1Authentication() {}
public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface BoundObjectReferenceOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.authentication.v1.BoundObjectReference)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Kind of the referent. Valid kinds are 'Pod' and 'Secret'.
* +optional
*
*
* optional string kind = 1;
*/
boolean hasKind();
/**
*
*
*
* Kind of the referent. Valid kinds are 'Pod' and 'Secret'.
* +optional
*
*
* optional string kind = 1;
*/
java.lang.String getKind();
/**
*
*
*
* Kind of the referent. Valid kinds are 'Pod' and 'Secret'.
* +optional
*
*
* optional string kind = 1;
*/
com.google.protobuf.ByteString getKindBytes();
/**
*
*
*
* API version of the referent.
* +optional
*
*
* optional string apiVersion = 2;
*/
boolean hasApiVersion();
/**
*
*
*
* API version of the referent.
* +optional
*
*
* optional string apiVersion = 2;
*/
java.lang.String getApiVersion();
/**
*
*
*
* API version of the referent.
* +optional
*
*
* optional string apiVersion = 2;
*/
com.google.protobuf.ByteString getApiVersionBytes();
/**
*
*
*
* Name of the referent.
* +optional
*
*
* optional string name = 3;
*/
boolean hasName();
/**
*
*
*
* Name of the referent.
* +optional
*
*
* optional string name = 3;
*/
java.lang.String getName();
/**
*
*
*
* Name of the referent.
* +optional
*
*
* optional string name = 3;
*/
com.google.protobuf.ByteString getNameBytes();
/**
*
*
*
* UID of the referent.
* +optional
*
*
* optional string uID = 4;
*/
boolean hasUID();
/**
*
*
*
* UID of the referent.
* +optional
*
*
* optional string uID = 4;
*/
java.lang.String getUID();
/**
*
*
*
* UID of the referent.
* +optional
*
*
* optional string uID = 4;
*/
com.google.protobuf.ByteString getUIDBytes();
}
/**
*
*
*
* BoundObjectReference is a reference to an object that a token is bound to.
*
*
* Protobuf type {@code k8s.io.api.authentication.v1.BoundObjectReference}
*/
public static final class BoundObjectReference extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.authentication.v1.BoundObjectReference)
BoundObjectReferenceOrBuilder {
private static final long serialVersionUID = 0L;
// Use BoundObjectReference.newBuilder() to construct.
private BoundObjectReference(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BoundObjectReference() {
kind_ = "";
apiVersion_ = "";
name_ = "";
uID_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private BoundObjectReference(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
kind_ = bs;
break;
}
case 18:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
apiVersion_ = bs;
break;
}
case 26:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
name_ = bs;
break;
}
case 34:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
uID_ = bs;
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_BoundObjectReference_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_BoundObjectReference_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Authentication.BoundObjectReference.class,
io.kubernetes.client.proto.V1Authentication.BoundObjectReference.Builder.class);
}
private int bitField0_;
public static final int KIND_FIELD_NUMBER = 1;
private volatile java.lang.Object kind_;
/**
*
*
*
* Kind of the referent. Valid kinds are 'Pod' and 'Secret'.
* +optional
*
*
* optional string kind = 1;
*/
public boolean hasKind() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Kind of the referent. Valid kinds are 'Pod' and 'Secret'.
* +optional
*
*
* optional string kind = 1;
*/
public java.lang.String getKind() {
java.lang.Object ref = kind_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
kind_ = s;
}
return s;
}
}
/**
*
*
*
* Kind of the referent. Valid kinds are 'Pod' and 'Secret'.
* +optional
*
*
* optional string kind = 1;
*/
public com.google.protobuf.ByteString getKindBytes() {
java.lang.Object ref = kind_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
kind_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int APIVERSION_FIELD_NUMBER = 2;
private volatile java.lang.Object apiVersion_;
/**
*
*
*
* API version of the referent.
* +optional
*
*
* optional string apiVersion = 2;
*/
public boolean hasApiVersion() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* API version of the referent.
* +optional
*
*
* optional string apiVersion = 2;
*/
public java.lang.String getApiVersion() {
java.lang.Object ref = apiVersion_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
apiVersion_ = s;
}
return s;
}
}
/**
*
*
*
* API version of the referent.
* +optional
*
*
* optional string apiVersion = 2;
*/
public com.google.protobuf.ByteString getApiVersionBytes() {
java.lang.Object ref = apiVersion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
apiVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object name_;
/**
*
*
*
* Name of the referent.
* +optional
*
*
* optional string name = 3;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
*
*
* Name of the referent.
* +optional
*
*
* optional string name = 3;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
*
*
*
* Name of the referent.
* +optional
*
*
* optional string name = 3;
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UID_FIELD_NUMBER = 4;
private volatile java.lang.Object uID_;
/**
*
*
*
* UID of the referent.
* +optional
*
*
* optional string uID = 4;
*/
public boolean hasUID() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
*
*
* UID of the referent.
* +optional
*
*
* optional string uID = 4;
*/
public java.lang.String getUID() {
java.lang.Object ref = uID_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
uID_ = s;
}
return s;
}
}
/**
*
*
*
* UID of the referent.
* +optional
*
*
* optional string uID = 4;
*/
public com.google.protobuf.ByteString getUIDBytes() {
java.lang.Object ref = uID_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
uID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kind_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, apiVersion_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, uID_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kind_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, apiVersion_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, uID_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1Authentication.BoundObjectReference)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1Authentication.BoundObjectReference other =
(io.kubernetes.client.proto.V1Authentication.BoundObjectReference) obj;
boolean result = true;
result = result && (hasKind() == other.hasKind());
if (hasKind()) {
result = result && getKind().equals(other.getKind());
}
result = result && (hasApiVersion() == other.hasApiVersion());
if (hasApiVersion()) {
result = result && getApiVersion().equals(other.getApiVersion());
}
result = result && (hasName() == other.hasName());
if (hasName()) {
result = result && getName().equals(other.getName());
}
result = result && (hasUID() == other.hasUID());
if (hasUID()) {
result = result && getUID().equals(other.getUID());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasKind()) {
hash = (37 * hash) + KIND_FIELD_NUMBER;
hash = (53 * hash) + getKind().hashCode();
}
if (hasApiVersion()) {
hash = (37 * hash) + APIVERSION_FIELD_NUMBER;
hash = (53 * hash) + getApiVersion().hashCode();
}
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasUID()) {
hash = (37 * hash) + UID_FIELD_NUMBER;
hash = (53 * hash) + getUID().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1Authentication.BoundObjectReference parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Authentication.BoundObjectReference parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.BoundObjectReference parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Authentication.BoundObjectReference parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.BoundObjectReference parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Authentication.BoundObjectReference parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.BoundObjectReference parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Authentication.BoundObjectReference parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.BoundObjectReference
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Authentication.BoundObjectReference
parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.BoundObjectReference parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Authentication.BoundObjectReference parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
io.kubernetes.client.proto.V1Authentication.BoundObjectReference prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* BoundObjectReference is a reference to an object that a token is bound to.
*
*
* Protobuf type {@code k8s.io.api.authentication.v1.BoundObjectReference}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.authentication.v1.BoundObjectReference)
io.kubernetes.client.proto.V1Authentication.BoundObjectReferenceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_BoundObjectReference_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_BoundObjectReference_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Authentication.BoundObjectReference.class,
io.kubernetes.client.proto.V1Authentication.BoundObjectReference.Builder.class);
}
// Construct using
// io.kubernetes.client.proto.V1Authentication.BoundObjectReference.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
kind_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
apiVersion_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
name_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
uID_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_BoundObjectReference_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.BoundObjectReference
getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1Authentication.BoundObjectReference
.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.BoundObjectReference build() {
io.kubernetes.client.proto.V1Authentication.BoundObjectReference result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.BoundObjectReference buildPartial() {
io.kubernetes.client.proto.V1Authentication.BoundObjectReference result =
new io.kubernetes.client.proto.V1Authentication.BoundObjectReference(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.kind_ = kind_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.apiVersion_ = apiVersion_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.uID_ = uID_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1Authentication.BoundObjectReference) {
return mergeFrom(
(io.kubernetes.client.proto.V1Authentication.BoundObjectReference) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
io.kubernetes.client.proto.V1Authentication.BoundObjectReference other) {
if (other
== io.kubernetes.client.proto.V1Authentication.BoundObjectReference
.getDefaultInstance()) return this;
if (other.hasKind()) {
bitField0_ |= 0x00000001;
kind_ = other.kind_;
onChanged();
}
if (other.hasApiVersion()) {
bitField0_ |= 0x00000002;
apiVersion_ = other.apiVersion_;
onChanged();
}
if (other.hasName()) {
bitField0_ |= 0x00000004;
name_ = other.name_;
onChanged();
}
if (other.hasUID()) {
bitField0_ |= 0x00000008;
uID_ = other.uID_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1Authentication.BoundObjectReference parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1Authentication.BoundObjectReference)
e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object kind_ = "";
/**
*
*
*
* Kind of the referent. Valid kinds are 'Pod' and 'Secret'.
* +optional
*
*
* optional string kind = 1;
*/
public boolean hasKind() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Kind of the referent. Valid kinds are 'Pod' and 'Secret'.
* +optional
*
*
* optional string kind = 1;
*/
public java.lang.String getKind() {
java.lang.Object ref = kind_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
kind_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Kind of the referent. Valid kinds are 'Pod' and 'Secret'.
* +optional
*
*
* optional string kind = 1;
*/
public com.google.protobuf.ByteString getKindBytes() {
java.lang.Object ref = kind_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
kind_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Kind of the referent. Valid kinds are 'Pod' and 'Secret'.
* +optional
*
*
* optional string kind = 1;
*/
public Builder setKind(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
kind_ = value;
onChanged();
return this;
}
/**
*
*
*
* Kind of the referent. Valid kinds are 'Pod' and 'Secret'.
* +optional
*
*
* optional string kind = 1;
*/
public Builder clearKind() {
bitField0_ = (bitField0_ & ~0x00000001);
kind_ = getDefaultInstance().getKind();
onChanged();
return this;
}
/**
*
*
*
* Kind of the referent. Valid kinds are 'Pod' and 'Secret'.
* +optional
*
*
* optional string kind = 1;
*/
public Builder setKindBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
kind_ = value;
onChanged();
return this;
}
private java.lang.Object apiVersion_ = "";
/**
*
*
*
* API version of the referent.
* +optional
*
*
* optional string apiVersion = 2;
*/
public boolean hasApiVersion() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* API version of the referent.
* +optional
*
*
* optional string apiVersion = 2;
*/
public java.lang.String getApiVersion() {
java.lang.Object ref = apiVersion_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
apiVersion_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* API version of the referent.
* +optional
*
*
* optional string apiVersion = 2;
*/
public com.google.protobuf.ByteString getApiVersionBytes() {
java.lang.Object ref = apiVersion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
apiVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* API version of the referent.
* +optional
*
*
* optional string apiVersion = 2;
*/
public Builder setApiVersion(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
apiVersion_ = value;
onChanged();
return this;
}
/**
*
*
*
* API version of the referent.
* +optional
*
*
* optional string apiVersion = 2;
*/
public Builder clearApiVersion() {
bitField0_ = (bitField0_ & ~0x00000002);
apiVersion_ = getDefaultInstance().getApiVersion();
onChanged();
return this;
}
/**
*
*
*
* API version of the referent.
* +optional
*
*
* optional string apiVersion = 2;
*/
public Builder setApiVersionBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
apiVersion_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
*
*
* Name of the referent.
* +optional
*
*
* optional string name = 3;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
*
*
* Name of the referent.
* +optional
*
*
* optional string name = 3;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Name of the referent.
* +optional
*
*
* optional string name = 3;
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Name of the referent.
* +optional
*
*
* optional string name = 3;
*/
public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
name_ = value;
onChanged();
return this;
}
/**
*
*
*
* Name of the referent.
* +optional
*
*
* optional string name = 3;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000004);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
*
*
* Name of the referent.
* +optional
*
*
* optional string name = 3;
*/
public Builder setNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
name_ = value;
onChanged();
return this;
}
private java.lang.Object uID_ = "";
/**
*
*
*
* UID of the referent.
* +optional
*
*
* optional string uID = 4;
*/
public boolean hasUID() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
*
*
* UID of the referent.
* +optional
*
*
* optional string uID = 4;
*/
public java.lang.String getUID() {
java.lang.Object ref = uID_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
uID_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* UID of the referent.
* +optional
*
*
* optional string uID = 4;
*/
public com.google.protobuf.ByteString getUIDBytes() {
java.lang.Object ref = uID_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
uID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* UID of the referent.
* +optional
*
*
* optional string uID = 4;
*/
public Builder setUID(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
uID_ = value;
onChanged();
return this;
}
/**
*
*
*
* UID of the referent.
* +optional
*
*
* optional string uID = 4;
*/
public Builder clearUID() {
bitField0_ = (bitField0_ & ~0x00000008);
uID_ = getDefaultInstance().getUID();
onChanged();
return this;
}
/**
*
*
*
* UID of the referent.
* +optional
*
*
* optional string uID = 4;
*/
public Builder setUIDBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
uID_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.authentication.v1.BoundObjectReference)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.authentication.v1.BoundObjectReference)
private static final io.kubernetes.client.proto.V1Authentication.BoundObjectReference
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Authentication.BoundObjectReference();
}
public static io.kubernetes.client.proto.V1Authentication.BoundObjectReference
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BoundObjectReference parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BoundObjectReference(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.BoundObjectReference
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExtraValueOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.authentication.v1.ExtraValue)
com.google.protobuf.MessageOrBuilder {
/** repeated string items = 1;
*/
java.util.List getItemsList();
/** repeated string items = 1;
*/
int getItemsCount();
/** repeated string items = 1;
*/
java.lang.String getItems(int index);
/** repeated string items = 1;
*/
com.google.protobuf.ByteString getItemsBytes(int index);
}
/**
*
*
*
* ExtraValue masks the value so protobuf can generate
* +protobuf.nullable=true
* +protobuf.options.(gogoproto.goproto_stringer)=false
*
*
* Protobuf type {@code k8s.io.api.authentication.v1.ExtraValue}
*/
public static final class ExtraValue extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.authentication.v1.ExtraValue)
ExtraValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExtraValue.newBuilder() to construct.
private ExtraValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExtraValue() {
items_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private ExtraValue(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
items_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
items_.add(bs);
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
items_ = items_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_ExtraValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_ExtraValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Authentication.ExtraValue.class,
io.kubernetes.client.proto.V1Authentication.ExtraValue.Builder.class);
}
public static final int ITEMS_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList items_;
/** repeated string items = 1;
*/
public com.google.protobuf.ProtocolStringList getItemsList() {
return items_;
}
/** repeated string items = 1;
*/
public int getItemsCount() {
return items_.size();
}
/** repeated string items = 1;
*/
public java.lang.String getItems(int index) {
return items_.get(index);
}
/** repeated string items = 1;
*/
public com.google.protobuf.ByteString getItemsBytes(int index) {
return items_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
for (int i = 0; i < items_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, items_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < items_.size(); i++) {
dataSize += computeStringSizeNoTag(items_.getRaw(i));
}
size += dataSize;
size += 1 * getItemsList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1Authentication.ExtraValue)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1Authentication.ExtraValue other =
(io.kubernetes.client.proto.V1Authentication.ExtraValue) obj;
boolean result = true;
result = result && getItemsList().equals(other.getItemsList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getItemsCount() > 0) {
hash = (37 * hash) + ITEMS_FIELD_NUMBER;
hash = (53 * hash) + getItemsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1Authentication.ExtraValue parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Authentication.ExtraValue parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.ExtraValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Authentication.ExtraValue parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.ExtraValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Authentication.ExtraValue parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.ExtraValue parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Authentication.ExtraValue parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.ExtraValue parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Authentication.ExtraValue parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.ExtraValue parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Authentication.ExtraValue parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
io.kubernetes.client.proto.V1Authentication.ExtraValue prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* ExtraValue masks the value so protobuf can generate
* +protobuf.nullable=true
* +protobuf.options.(gogoproto.goproto_stringer)=false
*
*
* Protobuf type {@code k8s.io.api.authentication.v1.ExtraValue}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.authentication.v1.ExtraValue)
io.kubernetes.client.proto.V1Authentication.ExtraValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_ExtraValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_ExtraValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Authentication.ExtraValue.class,
io.kubernetes.client.proto.V1Authentication.ExtraValue.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1Authentication.ExtraValue.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
items_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_ExtraValue_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.ExtraValue getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1Authentication.ExtraValue.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.ExtraValue build() {
io.kubernetes.client.proto.V1Authentication.ExtraValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.ExtraValue buildPartial() {
io.kubernetes.client.proto.V1Authentication.ExtraValue result =
new io.kubernetes.client.proto.V1Authentication.ExtraValue(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
items_ = items_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.items_ = items_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1Authentication.ExtraValue) {
return mergeFrom((io.kubernetes.client.proto.V1Authentication.ExtraValue) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1Authentication.ExtraValue other) {
if (other == io.kubernetes.client.proto.V1Authentication.ExtraValue.getDefaultInstance())
return this;
if (!other.items_.isEmpty()) {
if (items_.isEmpty()) {
items_ = other.items_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureItemsIsMutable();
items_.addAll(other.items_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1Authentication.ExtraValue parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1Authentication.ExtraValue) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList items_ =
com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureItemsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
items_ = new com.google.protobuf.LazyStringArrayList(items_);
bitField0_ |= 0x00000001;
}
}
/** repeated string items = 1;
*/
public com.google.protobuf.ProtocolStringList getItemsList() {
return items_.getUnmodifiableView();
}
/** repeated string items = 1;
*/
public int getItemsCount() {
return items_.size();
}
/** repeated string items = 1;
*/
public java.lang.String getItems(int index) {
return items_.get(index);
}
/** repeated string items = 1;
*/
public com.google.protobuf.ByteString getItemsBytes(int index) {
return items_.getByteString(index);
}
/** repeated string items = 1;
*/
public Builder setItems(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.set(index, value);
onChanged();
return this;
}
/** repeated string items = 1;
*/
public Builder addItems(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(value);
onChanged();
return this;
}
/** repeated string items = 1;
*/
public Builder addAllItems(java.lang.Iterable values) {
ensureItemsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_);
onChanged();
return this;
}
/** repeated string items = 1;
*/
public Builder clearItems() {
items_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/** repeated string items = 1;
*/
public Builder addItemsBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.authentication.v1.ExtraValue)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.authentication.v1.ExtraValue)
private static final io.kubernetes.client.proto.V1Authentication.ExtraValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Authentication.ExtraValue();
}
public static io.kubernetes.client.proto.V1Authentication.ExtraValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExtraValue parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExtraValue(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.ExtraValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TokenRequestOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.authentication.v1.TokenRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
boolean hasMetadata();
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
io.kubernetes.client.proto.Meta.ObjectMeta getMetadata();
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder();
/**
*
*
*
* Spec holds information about the request being evaluated
*
*
* optional .k8s.io.api.authentication.v1.TokenRequestSpec spec = 2;
*/
boolean hasSpec();
/**
*
*
*
* Spec holds information about the request being evaluated
*
*
* optional .k8s.io.api.authentication.v1.TokenRequestSpec spec = 2;
*/
io.kubernetes.client.proto.V1Authentication.TokenRequestSpec getSpec();
/**
*
*
*
* Spec holds information about the request being evaluated
*
*
* optional .k8s.io.api.authentication.v1.TokenRequestSpec spec = 2;
*/
io.kubernetes.client.proto.V1Authentication.TokenRequestSpecOrBuilder getSpecOrBuilder();
/**
*
*
*
* Status is filled in by the server and indicates whether the token can be authenticated.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.TokenRequestStatus status = 3;
*/
boolean hasStatus();
/**
*
*
*
* Status is filled in by the server and indicates whether the token can be authenticated.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.TokenRequestStatus status = 3;
*/
io.kubernetes.client.proto.V1Authentication.TokenRequestStatus getStatus();
/**
*
*
*
* Status is filled in by the server and indicates whether the token can be authenticated.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.TokenRequestStatus status = 3;
*/
io.kubernetes.client.proto.V1Authentication.TokenRequestStatusOrBuilder getStatusOrBuilder();
}
/**
*
*
*
* TokenRequest requests a token for a given service account.
*
*
* Protobuf type {@code k8s.io.api.authentication.v1.TokenRequest}
*/
public static final class TokenRequest extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.authentication.v1.TokenRequest)
TokenRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use TokenRequest.newBuilder() to construct.
private TokenRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TokenRequest() {}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private TokenRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = metadata_.toBuilder();
}
metadata_ =
input.readMessage(
io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18:
{
io.kubernetes.client.proto.V1Authentication.TokenRequestSpec.Builder subBuilder =
null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = spec_.toBuilder();
}
spec_ =
input.readMessage(
io.kubernetes.client.proto.V1Authentication.TokenRequestSpec.PARSER,
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(spec_);
spec_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26:
{
io.kubernetes.client.proto.V1Authentication.TokenRequestStatus.Builder subBuilder =
null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = status_.toBuilder();
}
status_ =
input.readMessage(
io.kubernetes.client.proto.V1Authentication.TokenRequestStatus.PARSER,
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(status_);
status_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_TokenRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_TokenRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Authentication.TokenRequest.class,
io.kubernetes.client.proto.V1Authentication.TokenRequest.Builder.class);
}
private int bitField0_;
public static final int METADATA_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.Meta.ObjectMeta metadata_;
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() {
return metadata_ == null
? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()
: metadata_;
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() {
return metadata_ == null
? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()
: metadata_;
}
public static final int SPEC_FIELD_NUMBER = 2;
private io.kubernetes.client.proto.V1Authentication.TokenRequestSpec spec_;
/**
*
*
*
* Spec holds information about the request being evaluated
*
*
* optional .k8s.io.api.authentication.v1.TokenRequestSpec spec = 2;
*/
public boolean hasSpec() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* Spec holds information about the request being evaluated
*
*
* optional .k8s.io.api.authentication.v1.TokenRequestSpec spec = 2;
*/
public io.kubernetes.client.proto.V1Authentication.TokenRequestSpec getSpec() {
return spec_ == null
? io.kubernetes.client.proto.V1Authentication.TokenRequestSpec.getDefaultInstance()
: spec_;
}
/**
*
*
*
* Spec holds information about the request being evaluated
*
*
* optional .k8s.io.api.authentication.v1.TokenRequestSpec spec = 2;
*/
public io.kubernetes.client.proto.V1Authentication.TokenRequestSpecOrBuilder
getSpecOrBuilder() {
return spec_ == null
? io.kubernetes.client.proto.V1Authentication.TokenRequestSpec.getDefaultInstance()
: spec_;
}
public static final int STATUS_FIELD_NUMBER = 3;
private io.kubernetes.client.proto.V1Authentication.TokenRequestStatus status_;
/**
*
*
*
* Status is filled in by the server and indicates whether the token can be authenticated.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.TokenRequestStatus status = 3;
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
*
*
* Status is filled in by the server and indicates whether the token can be authenticated.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.TokenRequestStatus status = 3;
*/
public io.kubernetes.client.proto.V1Authentication.TokenRequestStatus getStatus() {
return status_ == null
? io.kubernetes.client.proto.V1Authentication.TokenRequestStatus.getDefaultInstance()
: status_;
}
/**
*
*
*
* Status is filled in by the server and indicates whether the token can be authenticated.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.TokenRequestStatus status = 3;
*/
public io.kubernetes.client.proto.V1Authentication.TokenRequestStatusOrBuilder
getStatusOrBuilder() {
return status_ == null
? io.kubernetes.client.proto.V1Authentication.TokenRequestStatus.getDefaultInstance()
: status_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getMetadata());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getSpec());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, getStatus());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetadata());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpec());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStatus());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1Authentication.TokenRequest)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1Authentication.TokenRequest other =
(io.kubernetes.client.proto.V1Authentication.TokenRequest) obj;
boolean result = true;
result = result && (hasMetadata() == other.hasMetadata());
if (hasMetadata()) {
result = result && getMetadata().equals(other.getMetadata());
}
result = result && (hasSpec() == other.hasSpec());
if (hasSpec()) {
result = result && getSpec().equals(other.getSpec());
}
result = result && (hasStatus() == other.hasStatus());
if (hasStatus()) {
result = result && getStatus().equals(other.getStatus());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
if (hasSpec()) {
hash = (37 * hash) + SPEC_FIELD_NUMBER;
hash = (53 * hash) + getSpec().hashCode();
}
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequest parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequest parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequest parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequest parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequest parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequest parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequest parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequest parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
io.kubernetes.client.proto.V1Authentication.TokenRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* TokenRequest requests a token for a given service account.
*
*
* Protobuf type {@code k8s.io.api.authentication.v1.TokenRequest}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.authentication.v1.TokenRequest)
io.kubernetes.client.proto.V1Authentication.TokenRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_TokenRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_TokenRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Authentication.TokenRequest.class,
io.kubernetes.client.proto.V1Authentication.TokenRequest.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1Authentication.TokenRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getMetadataFieldBuilder();
getSpecFieldBuilder();
getStatusFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (specBuilder_ == null) {
spec_ = null;
} else {
specBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (statusBuilder_ == null) {
status_ = null;
} else {
statusBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_TokenRequest_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.TokenRequest getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1Authentication.TokenRequest.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.TokenRequest build() {
io.kubernetes.client.proto.V1Authentication.TokenRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.TokenRequest buildPartial() {
io.kubernetes.client.proto.V1Authentication.TokenRequest result =
new io.kubernetes.client.proto.V1Authentication.TokenRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (specBuilder_ == null) {
result.spec_ = spec_;
} else {
result.spec_ = specBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (statusBuilder_ == null) {
result.status_ = status_;
} else {
result.status_ = statusBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1Authentication.TokenRequest) {
return mergeFrom((io.kubernetes.client.proto.V1Authentication.TokenRequest) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1Authentication.TokenRequest other) {
if (other == io.kubernetes.client.proto.V1Authentication.TokenRequest.getDefaultInstance())
return this;
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (other.hasSpec()) {
mergeSpec(other.getSpec());
}
if (other.hasStatus()) {
mergeStatus(other.getStatus());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1Authentication.TokenRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1Authentication.TokenRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ObjectMeta,
io.kubernetes.client.proto.Meta.ObjectMeta.Builder,
io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>
metadataBuilder_;
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null
? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()
: metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public Builder setMetadata(
io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) {
if (metadataBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)
&& metadata_ != null
&& metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) {
metadata_ =
io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_)
.mergeFrom(value)
.buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null
? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()
: metadata_;
}
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ObjectMeta,
io.kubernetes.client.proto.Meta.ObjectMeta.Builder,
io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ObjectMeta,
io.kubernetes.client.proto.Meta.ObjectMeta.Builder,
io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>(
getMetadata(), getParentForChildren(), isClean());
metadata_ = null;
}
return metadataBuilder_;
}
private io.kubernetes.client.proto.V1Authentication.TokenRequestSpec spec_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Authentication.TokenRequestSpec,
io.kubernetes.client.proto.V1Authentication.TokenRequestSpec.Builder,
io.kubernetes.client.proto.V1Authentication.TokenRequestSpecOrBuilder>
specBuilder_;
/**
*
*
*
* Spec holds information about the request being evaluated
*
*
* optional .k8s.io.api.authentication.v1.TokenRequestSpec spec = 2;
*/
public boolean hasSpec() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* Spec holds information about the request being evaluated
*
*
* optional .k8s.io.api.authentication.v1.TokenRequestSpec spec = 2;
*/
public io.kubernetes.client.proto.V1Authentication.TokenRequestSpec getSpec() {
if (specBuilder_ == null) {
return spec_ == null
? io.kubernetes.client.proto.V1Authentication.TokenRequestSpec.getDefaultInstance()
: spec_;
} else {
return specBuilder_.getMessage();
}
}
/**
*
*
*
* Spec holds information about the request being evaluated
*
*
* optional .k8s.io.api.authentication.v1.TokenRequestSpec spec = 2;
*/
public Builder setSpec(io.kubernetes.client.proto.V1Authentication.TokenRequestSpec value) {
if (specBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
spec_ = value;
onChanged();
} else {
specBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* Spec holds information about the request being evaluated
*
*
* optional .k8s.io.api.authentication.v1.TokenRequestSpec spec = 2;
*/
public Builder setSpec(
io.kubernetes.client.proto.V1Authentication.TokenRequestSpec.Builder builderForValue) {
if (specBuilder_ == null) {
spec_ = builderForValue.build();
onChanged();
} else {
specBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* Spec holds information about the request being evaluated
*
*
* optional .k8s.io.api.authentication.v1.TokenRequestSpec spec = 2;
*/
public Builder mergeSpec(io.kubernetes.client.proto.V1Authentication.TokenRequestSpec value) {
if (specBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)
&& spec_ != null
&& spec_
!= io.kubernetes.client.proto.V1Authentication.TokenRequestSpec
.getDefaultInstance()) {
spec_ =
io.kubernetes.client.proto.V1Authentication.TokenRequestSpec.newBuilder(spec_)
.mergeFrom(value)
.buildPartial();
} else {
spec_ = value;
}
onChanged();
} else {
specBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* Spec holds information about the request being evaluated
*
*
* optional .k8s.io.api.authentication.v1.TokenRequestSpec spec = 2;
*/
public Builder clearSpec() {
if (specBuilder_ == null) {
spec_ = null;
onChanged();
} else {
specBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
*
*
*
* Spec holds information about the request being evaluated
*
*
* optional .k8s.io.api.authentication.v1.TokenRequestSpec spec = 2;
*/
public io.kubernetes.client.proto.V1Authentication.TokenRequestSpec.Builder getSpecBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getSpecFieldBuilder().getBuilder();
}
/**
*
*
*
* Spec holds information about the request being evaluated
*
*
* optional .k8s.io.api.authentication.v1.TokenRequestSpec spec = 2;
*/
public io.kubernetes.client.proto.V1Authentication.TokenRequestSpecOrBuilder
getSpecOrBuilder() {
if (specBuilder_ != null) {
return specBuilder_.getMessageOrBuilder();
} else {
return spec_ == null
? io.kubernetes.client.proto.V1Authentication.TokenRequestSpec.getDefaultInstance()
: spec_;
}
}
/**
*
*
*
* Spec holds information about the request being evaluated
*
*
* optional .k8s.io.api.authentication.v1.TokenRequestSpec spec = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Authentication.TokenRequestSpec,
io.kubernetes.client.proto.V1Authentication.TokenRequestSpec.Builder,
io.kubernetes.client.proto.V1Authentication.TokenRequestSpecOrBuilder>
getSpecFieldBuilder() {
if (specBuilder_ == null) {
specBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Authentication.TokenRequestSpec,
io.kubernetes.client.proto.V1Authentication.TokenRequestSpec.Builder,
io.kubernetes.client.proto.V1Authentication.TokenRequestSpecOrBuilder>(
getSpec(), getParentForChildren(), isClean());
spec_ = null;
}
return specBuilder_;
}
private io.kubernetes.client.proto.V1Authentication.TokenRequestStatus status_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Authentication.TokenRequestStatus,
io.kubernetes.client.proto.V1Authentication.TokenRequestStatus.Builder,
io.kubernetes.client.proto.V1Authentication.TokenRequestStatusOrBuilder>
statusBuilder_;
/**
*
*
*
* Status is filled in by the server and indicates whether the token can be authenticated.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.TokenRequestStatus status = 3;
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
*
*
* Status is filled in by the server and indicates whether the token can be authenticated.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.TokenRequestStatus status = 3;
*/
public io.kubernetes.client.proto.V1Authentication.TokenRequestStatus getStatus() {
if (statusBuilder_ == null) {
return status_ == null
? io.kubernetes.client.proto.V1Authentication.TokenRequestStatus.getDefaultInstance()
: status_;
} else {
return statusBuilder_.getMessage();
}
}
/**
*
*
*
* Status is filled in by the server and indicates whether the token can be authenticated.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.TokenRequestStatus status = 3;
*/
public Builder setStatus(
io.kubernetes.client.proto.V1Authentication.TokenRequestStatus value) {
if (statusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
status_ = value;
onChanged();
} else {
statusBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
*
*
* Status is filled in by the server and indicates whether the token can be authenticated.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.TokenRequestStatus status = 3;
*/
public Builder setStatus(
io.kubernetes.client.proto.V1Authentication.TokenRequestStatus.Builder builderForValue) {
if (statusBuilder_ == null) {
status_ = builderForValue.build();
onChanged();
} else {
statusBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
*
*
* Status is filled in by the server and indicates whether the token can be authenticated.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.TokenRequestStatus status = 3;
*/
public Builder mergeStatus(
io.kubernetes.client.proto.V1Authentication.TokenRequestStatus value) {
if (statusBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)
&& status_ != null
&& status_
!= io.kubernetes.client.proto.V1Authentication.TokenRequestStatus
.getDefaultInstance()) {
status_ =
io.kubernetes.client.proto.V1Authentication.TokenRequestStatus.newBuilder(status_)
.mergeFrom(value)
.buildPartial();
} else {
status_ = value;
}
onChanged();
} else {
statusBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
*
*
* Status is filled in by the server and indicates whether the token can be authenticated.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.TokenRequestStatus status = 3;
*/
public Builder clearStatus() {
if (statusBuilder_ == null) {
status_ = null;
onChanged();
} else {
statusBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
*
*
*
* Status is filled in by the server and indicates whether the token can be authenticated.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.TokenRequestStatus status = 3;
*/
public io.kubernetes.client.proto.V1Authentication.TokenRequestStatus.Builder
getStatusBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getStatusFieldBuilder().getBuilder();
}
/**
*
*
*
* Status is filled in by the server and indicates whether the token can be authenticated.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.TokenRequestStatus status = 3;
*/
public io.kubernetes.client.proto.V1Authentication.TokenRequestStatusOrBuilder
getStatusOrBuilder() {
if (statusBuilder_ != null) {
return statusBuilder_.getMessageOrBuilder();
} else {
return status_ == null
? io.kubernetes.client.proto.V1Authentication.TokenRequestStatus.getDefaultInstance()
: status_;
}
}
/**
*
*
*
* Status is filled in by the server and indicates whether the token can be authenticated.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.TokenRequestStatus status = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Authentication.TokenRequestStatus,
io.kubernetes.client.proto.V1Authentication.TokenRequestStatus.Builder,
io.kubernetes.client.proto.V1Authentication.TokenRequestStatusOrBuilder>
getStatusFieldBuilder() {
if (statusBuilder_ == null) {
statusBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Authentication.TokenRequestStatus,
io.kubernetes.client.proto.V1Authentication.TokenRequestStatus.Builder,
io.kubernetes.client.proto.V1Authentication.TokenRequestStatusOrBuilder>(
getStatus(), getParentForChildren(), isClean());
status_ = null;
}
return statusBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.authentication.v1.TokenRequest)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.authentication.v1.TokenRequest)
private static final io.kubernetes.client.proto.V1Authentication.TokenRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Authentication.TokenRequest();
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TokenRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TokenRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.TokenRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TokenRequestSpecOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.authentication.v1.TokenRequestSpec)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* 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;
*/
java.util.List 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;
*/
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;
*/
java.lang.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;
*/
com.google.protobuf.ByteString getAudiencesBytes(int index);
/**
*
*
*
* 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;
*/
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;
*/
long getExpirationSeconds();
/**
*
*
*
* 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;
*/
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;
*/
io.kubernetes.client.proto.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;
*/
io.kubernetes.client.proto.V1Authentication.BoundObjectReferenceOrBuilder
getBoundObjectRefOrBuilder();
}
/**
*
*
*
* TokenRequestSpec contains client provided parameters of a token request.
*
*
* Protobuf type {@code k8s.io.api.authentication.v1.TokenRequestSpec}
*/
public static final class TokenRequestSpec extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.authentication.v1.TokenRequestSpec)
TokenRequestSpecOrBuilder {
private static final long serialVersionUID = 0L;
// Use TokenRequestSpec.newBuilder() to construct.
private TokenRequestSpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TokenRequestSpec() {
audiences_ = com.google.protobuf.LazyStringArrayList.EMPTY;
expirationSeconds_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private TokenRequestSpec(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
audiences_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
audiences_.add(bs);
break;
}
case 26:
{
io.kubernetes.client.proto.V1Authentication.BoundObjectReference.Builder
subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = boundObjectRef_.toBuilder();
}
boundObjectRef_ =
input.readMessage(
io.kubernetes.client.proto.V1Authentication.BoundObjectReference.PARSER,
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(boundObjectRef_);
boundObjectRef_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 32:
{
bitField0_ |= 0x00000001;
expirationSeconds_ = input.readInt64();
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
audiences_ = audiences_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_TokenRequestSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_TokenRequestSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Authentication.TokenRequestSpec.class,
io.kubernetes.client.proto.V1Authentication.TokenRequestSpec.Builder.class);
}
private int bitField0_;
public static final int AUDIENCES_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList audiences_;
/**
*
*
*
* 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;
*/
public com.google.protobuf.ProtocolStringList getAudiencesList() {
return audiences_;
}
/**
*
*
*
* 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;
*/
public int getAudiencesCount() {
return audiences_.size();
}
/**
*
*
*
* 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;
*/
public java.lang.String getAudiences(int index) {
return audiences_.get(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;
*/
public com.google.protobuf.ByteString getAudiencesBytes(int index) {
return audiences_.getByteString(index);
}
public static final int EXPIRATIONSECONDS_FIELD_NUMBER = 4;
private long expirationSeconds_;
/**
*
*
*
* 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;
*/
public boolean hasExpirationSeconds() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* 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;
*/
public long getExpirationSeconds() {
return expirationSeconds_;
}
public static final int BOUNDOBJECTREF_FIELD_NUMBER = 3;
private io.kubernetes.client.proto.V1Authentication.BoundObjectReference boundObjectRef_;
/**
*
*
*
* 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;
*/
public boolean hasBoundObjectRef() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* 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;
*/
public io.kubernetes.client.proto.V1Authentication.BoundObjectReference getBoundObjectRef() {
return boundObjectRef_ == null
? io.kubernetes.client.proto.V1Authentication.BoundObjectReference.getDefaultInstance()
: boundObjectRef_;
}
/**
*
*
*
* 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;
*/
public io.kubernetes.client.proto.V1Authentication.BoundObjectReferenceOrBuilder
getBoundObjectRefOrBuilder() {
return boundObjectRef_ == null
? io.kubernetes.client.proto.V1Authentication.BoundObjectReference.getDefaultInstance()
: boundObjectRef_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
for (int i = 0; i < audiences_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, audiences_.getRaw(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(3, getBoundObjectRef());
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt64(4, expirationSeconds_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < audiences_.size(); i++) {
dataSize += computeStringSizeNoTag(audiences_.getRaw(i));
}
size += dataSize;
size += 1 * getAudiencesList().size();
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBoundObjectRef());
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, expirationSeconds_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1Authentication.TokenRequestSpec)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1Authentication.TokenRequestSpec other =
(io.kubernetes.client.proto.V1Authentication.TokenRequestSpec) obj;
boolean result = true;
result = result && getAudiencesList().equals(other.getAudiencesList());
result = result && (hasExpirationSeconds() == other.hasExpirationSeconds());
if (hasExpirationSeconds()) {
result = result && (getExpirationSeconds() == other.getExpirationSeconds());
}
result = result && (hasBoundObjectRef() == other.hasBoundObjectRef());
if (hasBoundObjectRef()) {
result = result && getBoundObjectRef().equals(other.getBoundObjectRef());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getAudiencesCount() > 0) {
hash = (37 * hash) + AUDIENCES_FIELD_NUMBER;
hash = (53 * hash) + getAudiencesList().hashCode();
}
if (hasExpirationSeconds()) {
hash = (37 * hash) + EXPIRATIONSECONDS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getExpirationSeconds());
}
if (hasBoundObjectRef()) {
hash = (37 * hash) + BOUNDOBJECTREF_FIELD_NUMBER;
hash = (53 * hash) + getBoundObjectRef().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequestSpec parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequestSpec parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequestSpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequestSpec parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequestSpec parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequestSpec parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequestSpec parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequestSpec parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequestSpec parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequestSpec parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequestSpec parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequestSpec parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
io.kubernetes.client.proto.V1Authentication.TokenRequestSpec prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* TokenRequestSpec contains client provided parameters of a token request.
*
*
* Protobuf type {@code k8s.io.api.authentication.v1.TokenRequestSpec}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.authentication.v1.TokenRequestSpec)
io.kubernetes.client.proto.V1Authentication.TokenRequestSpecOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_TokenRequestSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_TokenRequestSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Authentication.TokenRequestSpec.class,
io.kubernetes.client.proto.V1Authentication.TokenRequestSpec.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1Authentication.TokenRequestSpec.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getBoundObjectRefFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
audiences_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
expirationSeconds_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
if (boundObjectRefBuilder_ == null) {
boundObjectRef_ = null;
} else {
boundObjectRefBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_TokenRequestSpec_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.TokenRequestSpec
getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1Authentication.TokenRequestSpec.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.TokenRequestSpec build() {
io.kubernetes.client.proto.V1Authentication.TokenRequestSpec result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.TokenRequestSpec buildPartial() {
io.kubernetes.client.proto.V1Authentication.TokenRequestSpec result =
new io.kubernetes.client.proto.V1Authentication.TokenRequestSpec(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
audiences_ = audiences_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.audiences_ = audiences_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
result.expirationSeconds_ = expirationSeconds_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000002;
}
if (boundObjectRefBuilder_ == null) {
result.boundObjectRef_ = boundObjectRef_;
} else {
result.boundObjectRef_ = boundObjectRefBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1Authentication.TokenRequestSpec) {
return mergeFrom((io.kubernetes.client.proto.V1Authentication.TokenRequestSpec) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1Authentication.TokenRequestSpec other) {
if (other
== io.kubernetes.client.proto.V1Authentication.TokenRequestSpec.getDefaultInstance())
return this;
if (!other.audiences_.isEmpty()) {
if (audiences_.isEmpty()) {
audiences_ = other.audiences_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAudiencesIsMutable();
audiences_.addAll(other.audiences_);
}
onChanged();
}
if (other.hasExpirationSeconds()) {
setExpirationSeconds(other.getExpirationSeconds());
}
if (other.hasBoundObjectRef()) {
mergeBoundObjectRef(other.getBoundObjectRef());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1Authentication.TokenRequestSpec parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1Authentication.TokenRequestSpec)
e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList audiences_ =
com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAudiencesIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
audiences_ = new com.google.protobuf.LazyStringArrayList(audiences_);
bitField0_ |= 0x00000001;
}
}
/**
*
*
*
* 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;
*/
public com.google.protobuf.ProtocolStringList getAudiencesList() {
return audiences_.getUnmodifiableView();
}
/**
*
*
*
* 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;
*/
public int getAudiencesCount() {
return audiences_.size();
}
/**
*
*
*
* 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;
*/
public java.lang.String getAudiences(int index) {
return audiences_.get(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;
*/
public com.google.protobuf.ByteString getAudiencesBytes(int index) {
return audiences_.getByteString(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;
*/
public Builder setAudiences(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAudiencesIsMutable();
audiences_.set(index, value);
onChanged();
return this;
}
/**
*
*
*
* 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;
*/
public Builder addAudiences(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAudiencesIsMutable();
audiences_.add(value);
onChanged();
return this;
}
/**
*
*
*
* 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;
*/
public Builder addAllAudiences(java.lang.Iterable values) {
ensureAudiencesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, audiences_);
onChanged();
return this;
}
/**
*
*
*
* 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;
*/
public Builder clearAudiences() {
audiences_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* 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;
*/
public Builder addAudiencesBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureAudiencesIsMutable();
audiences_.add(value);
onChanged();
return this;
}
private long expirationSeconds_;
/**
*
*
*
* 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;
*/
public boolean hasExpirationSeconds() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* 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;
*/
public long getExpirationSeconds() {
return expirationSeconds_;
}
/**
*
*
*
* 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;
*/
public Builder setExpirationSeconds(long value) {
bitField0_ |= 0x00000002;
expirationSeconds_ = value;
onChanged();
return this;
}
/**
*
*
*
* 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;
*/
public Builder clearExpirationSeconds() {
bitField0_ = (bitField0_ & ~0x00000002);
expirationSeconds_ = 0L;
onChanged();
return this;
}
private io.kubernetes.client.proto.V1Authentication.BoundObjectReference boundObjectRef_ =
null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Authentication.BoundObjectReference,
io.kubernetes.client.proto.V1Authentication.BoundObjectReference.Builder,
io.kubernetes.client.proto.V1Authentication.BoundObjectReferenceOrBuilder>
boundObjectRefBuilder_;
/**
*
*
*
* 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;
*
*/
public boolean hasBoundObjectRef() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
*
*
* 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;
*
*/
public io.kubernetes.client.proto.V1Authentication.BoundObjectReference getBoundObjectRef() {
if (boundObjectRefBuilder_ == null) {
return boundObjectRef_ == null
? io.kubernetes.client.proto.V1Authentication.BoundObjectReference
.getDefaultInstance()
: boundObjectRef_;
} else {
return boundObjectRefBuilder_.getMessage();
}
}
/**
*
*
*
* 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;
*
*/
public Builder setBoundObjectRef(
io.kubernetes.client.proto.V1Authentication.BoundObjectReference value) {
if (boundObjectRefBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
boundObjectRef_ = value;
onChanged();
} else {
boundObjectRefBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
*
*
* 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;
*
*/
public Builder setBoundObjectRef(
io.kubernetes.client.proto.V1Authentication.BoundObjectReference.Builder
builderForValue) {
if (boundObjectRefBuilder_ == null) {
boundObjectRef_ = builderForValue.build();
onChanged();
} else {
boundObjectRefBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
*
*
* 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;
*
*/
public Builder mergeBoundObjectRef(
io.kubernetes.client.proto.V1Authentication.BoundObjectReference value) {
if (boundObjectRefBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)
&& boundObjectRef_ != null
&& boundObjectRef_
!= io.kubernetes.client.proto.V1Authentication.BoundObjectReference
.getDefaultInstance()) {
boundObjectRef_ =
io.kubernetes.client.proto.V1Authentication.BoundObjectReference.newBuilder(
boundObjectRef_)
.mergeFrom(value)
.buildPartial();
} else {
boundObjectRef_ = value;
}
onChanged();
} else {
boundObjectRefBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
*
*
* 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;
*
*/
public Builder clearBoundObjectRef() {
if (boundObjectRefBuilder_ == null) {
boundObjectRef_ = null;
onChanged();
} else {
boundObjectRefBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
*
*
*
* 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;
*
*/
public io.kubernetes.client.proto.V1Authentication.BoundObjectReference.Builder
getBoundObjectRefBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getBoundObjectRefFieldBuilder().getBuilder();
}
/**
*
*
*
* 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;
*
*/
public io.kubernetes.client.proto.V1Authentication.BoundObjectReferenceOrBuilder
getBoundObjectRefOrBuilder() {
if (boundObjectRefBuilder_ != null) {
return boundObjectRefBuilder_.getMessageOrBuilder();
} else {
return boundObjectRef_ == null
? io.kubernetes.client.proto.V1Authentication.BoundObjectReference
.getDefaultInstance()
: boundObjectRef_;
}
}
/**
*
*
*
* 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;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Authentication.BoundObjectReference,
io.kubernetes.client.proto.V1Authentication.BoundObjectReference.Builder,
io.kubernetes.client.proto.V1Authentication.BoundObjectReferenceOrBuilder>
getBoundObjectRefFieldBuilder() {
if (boundObjectRefBuilder_ == null) {
boundObjectRefBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Authentication.BoundObjectReference,
io.kubernetes.client.proto.V1Authentication.BoundObjectReference.Builder,
io.kubernetes.client.proto.V1Authentication.BoundObjectReferenceOrBuilder>(
getBoundObjectRef(), getParentForChildren(), isClean());
boundObjectRef_ = null;
}
return boundObjectRefBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.authentication.v1.TokenRequestSpec)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.authentication.v1.TokenRequestSpec)
private static final io.kubernetes.client.proto.V1Authentication.TokenRequestSpec
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Authentication.TokenRequestSpec();
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequestSpec
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TokenRequestSpec parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TokenRequestSpec(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.TokenRequestSpec
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TokenRequestStatusOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.authentication.v1.TokenRequestStatus)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Token is the opaque bearer token.
*
*
* optional string token = 1;
*/
boolean hasToken();
/**
*
*
*
* Token is the opaque bearer token.
*
*
* optional string token = 1;
*/
java.lang.String getToken();
/**
*
*
*
* Token is the opaque bearer token.
*
*
* optional string token = 1;
*/
com.google.protobuf.ByteString getTokenBytes();
/**
*
*
*
* ExpirationTimestamp is the time of expiration of the returned token.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time expirationTimestamp = 2;
*/
boolean hasExpirationTimestamp();
/**
*
*
*
* ExpirationTimestamp is the time of expiration of the returned token.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time expirationTimestamp = 2;
*/
io.kubernetes.client.proto.Meta.Time getExpirationTimestamp();
/**
*
*
*
* ExpirationTimestamp is the time of expiration of the returned token.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time expirationTimestamp = 2;
*/
io.kubernetes.client.proto.Meta.TimeOrBuilder getExpirationTimestampOrBuilder();
}
/**
*
*
*
* TokenRequestStatus is the result of a token request.
*
*
* Protobuf type {@code k8s.io.api.authentication.v1.TokenRequestStatus}
*/
public static final class TokenRequestStatus extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.authentication.v1.TokenRequestStatus)
TokenRequestStatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use TokenRequestStatus.newBuilder() to construct.
private TokenRequestStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TokenRequestStatus() {
token_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private TokenRequestStatus(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
token_ = bs;
break;
}
case 18:
{
io.kubernetes.client.proto.Meta.Time.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = expirationTimestamp_.toBuilder();
}
expirationTimestamp_ =
input.readMessage(
io.kubernetes.client.proto.Meta.Time.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(expirationTimestamp_);
expirationTimestamp_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_TokenRequestStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_TokenRequestStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Authentication.TokenRequestStatus.class,
io.kubernetes.client.proto.V1Authentication.TokenRequestStatus.Builder.class);
}
private int bitField0_;
public static final int TOKEN_FIELD_NUMBER = 1;
private volatile java.lang.Object token_;
/**
*
*
*
* Token is the opaque bearer token.
*
*
* optional string token = 1;
*/
public boolean hasToken() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Token is the opaque bearer token.
*
*
* optional string token = 1;
*/
public java.lang.String getToken() {
java.lang.Object ref = token_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
token_ = s;
}
return s;
}
}
/**
*
*
*
* Token is the opaque bearer token.
*
*
* optional string token = 1;
*/
public com.google.protobuf.ByteString getTokenBytes() {
java.lang.Object ref = token_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
token_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EXPIRATIONTIMESTAMP_FIELD_NUMBER = 2;
private io.kubernetes.client.proto.Meta.Time expirationTimestamp_;
/**
*
*
*
* ExpirationTimestamp is the time of expiration of the returned token.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time expirationTimestamp = 2;
*/
public boolean hasExpirationTimestamp() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* ExpirationTimestamp is the time of expiration of the returned token.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time expirationTimestamp = 2;
*/
public io.kubernetes.client.proto.Meta.Time getExpirationTimestamp() {
return expirationTimestamp_ == null
? io.kubernetes.client.proto.Meta.Time.getDefaultInstance()
: expirationTimestamp_;
}
/**
*
*
*
* ExpirationTimestamp is the time of expiration of the returned token.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time expirationTimestamp = 2;
*/
public io.kubernetes.client.proto.Meta.TimeOrBuilder getExpirationTimestampOrBuilder() {
return expirationTimestamp_ == null
? io.kubernetes.client.proto.Meta.Time.getDefaultInstance()
: expirationTimestamp_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, token_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getExpirationTimestamp());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, token_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpirationTimestamp());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1Authentication.TokenRequestStatus)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1Authentication.TokenRequestStatus other =
(io.kubernetes.client.proto.V1Authentication.TokenRequestStatus) obj;
boolean result = true;
result = result && (hasToken() == other.hasToken());
if (hasToken()) {
result = result && getToken().equals(other.getToken());
}
result = result && (hasExpirationTimestamp() == other.hasExpirationTimestamp());
if (hasExpirationTimestamp()) {
result = result && getExpirationTimestamp().equals(other.getExpirationTimestamp());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasToken()) {
hash = (37 * hash) + TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getToken().hashCode();
}
if (hasExpirationTimestamp()) {
hash = (37 * hash) + EXPIRATIONTIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getExpirationTimestamp().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequestStatus parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequestStatus parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequestStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequestStatus parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequestStatus parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequestStatus parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequestStatus parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequestStatus parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequestStatus parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequestStatus parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequestStatus parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequestStatus parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
io.kubernetes.client.proto.V1Authentication.TokenRequestStatus prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* TokenRequestStatus is the result of a token request.
*
*
* Protobuf type {@code k8s.io.api.authentication.v1.TokenRequestStatus}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.authentication.v1.TokenRequestStatus)
io.kubernetes.client.proto.V1Authentication.TokenRequestStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_TokenRequestStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_TokenRequestStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Authentication.TokenRequestStatus.class,
io.kubernetes.client.proto.V1Authentication.TokenRequestStatus.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1Authentication.TokenRequestStatus.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getExpirationTimestampFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
token_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (expirationTimestampBuilder_ == null) {
expirationTimestamp_ = null;
} else {
expirationTimestampBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_TokenRequestStatus_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.TokenRequestStatus
getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1Authentication.TokenRequestStatus.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.TokenRequestStatus build() {
io.kubernetes.client.proto.V1Authentication.TokenRequestStatus result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.TokenRequestStatus buildPartial() {
io.kubernetes.client.proto.V1Authentication.TokenRequestStatus result =
new io.kubernetes.client.proto.V1Authentication.TokenRequestStatus(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.token_ = token_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (expirationTimestampBuilder_ == null) {
result.expirationTimestamp_ = expirationTimestamp_;
} else {
result.expirationTimestamp_ = expirationTimestampBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1Authentication.TokenRequestStatus) {
return mergeFrom((io.kubernetes.client.proto.V1Authentication.TokenRequestStatus) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
io.kubernetes.client.proto.V1Authentication.TokenRequestStatus other) {
if (other
== io.kubernetes.client.proto.V1Authentication.TokenRequestStatus.getDefaultInstance())
return this;
if (other.hasToken()) {
bitField0_ |= 0x00000001;
token_ = other.token_;
onChanged();
}
if (other.hasExpirationTimestamp()) {
mergeExpirationTimestamp(other.getExpirationTimestamp());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1Authentication.TokenRequestStatus parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1Authentication.TokenRequestStatus)
e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object token_ = "";
/**
*
*
*
* Token is the opaque bearer token.
*
*
* optional string token = 1;
*/
public boolean hasToken() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Token is the opaque bearer token.
*
*
* optional string token = 1;
*/
public java.lang.String getToken() {
java.lang.Object ref = token_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
token_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Token is the opaque bearer token.
*
*
* optional string token = 1;
*/
public com.google.protobuf.ByteString getTokenBytes() {
java.lang.Object ref = token_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
token_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Token is the opaque bearer token.
*
*
* optional string token = 1;
*/
public Builder setToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
token_ = value;
onChanged();
return this;
}
/**
*
*
*
* Token is the opaque bearer token.
*
*
* optional string token = 1;
*/
public Builder clearToken() {
bitField0_ = (bitField0_ & ~0x00000001);
token_ = getDefaultInstance().getToken();
onChanged();
return this;
}
/**
*
*
*
* Token is the opaque bearer token.
*
*
* optional string token = 1;
*/
public Builder setTokenBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
token_ = value;
onChanged();
return this;
}
private io.kubernetes.client.proto.Meta.Time expirationTimestamp_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.Time,
io.kubernetes.client.proto.Meta.Time.Builder,
io.kubernetes.client.proto.Meta.TimeOrBuilder>
expirationTimestampBuilder_;
/**
*
*
*
* ExpirationTimestamp is the time of expiration of the returned token.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time expirationTimestamp = 2;
*/
public boolean hasExpirationTimestamp() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* ExpirationTimestamp is the time of expiration of the returned token.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time expirationTimestamp = 2;
*/
public io.kubernetes.client.proto.Meta.Time getExpirationTimestamp() {
if (expirationTimestampBuilder_ == null) {
return expirationTimestamp_ == null
? io.kubernetes.client.proto.Meta.Time.getDefaultInstance()
: expirationTimestamp_;
} else {
return expirationTimestampBuilder_.getMessage();
}
}
/**
*
*
*
* ExpirationTimestamp is the time of expiration of the returned token.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time expirationTimestamp = 2;
*/
public Builder setExpirationTimestamp(io.kubernetes.client.proto.Meta.Time value) {
if (expirationTimestampBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
expirationTimestamp_ = value;
onChanged();
} else {
expirationTimestampBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* ExpirationTimestamp is the time of expiration of the returned token.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time expirationTimestamp = 2;
*/
public Builder setExpirationTimestamp(
io.kubernetes.client.proto.Meta.Time.Builder builderForValue) {
if (expirationTimestampBuilder_ == null) {
expirationTimestamp_ = builderForValue.build();
onChanged();
} else {
expirationTimestampBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* ExpirationTimestamp is the time of expiration of the returned token.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time expirationTimestamp = 2;
*/
public Builder mergeExpirationTimestamp(io.kubernetes.client.proto.Meta.Time value) {
if (expirationTimestampBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)
&& expirationTimestamp_ != null
&& expirationTimestamp_
!= io.kubernetes.client.proto.Meta.Time.getDefaultInstance()) {
expirationTimestamp_ =
io.kubernetes.client.proto.Meta.Time.newBuilder(expirationTimestamp_)
.mergeFrom(value)
.buildPartial();
} else {
expirationTimestamp_ = value;
}
onChanged();
} else {
expirationTimestampBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* ExpirationTimestamp is the time of expiration of the returned token.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time expirationTimestamp = 2;
*/
public Builder clearExpirationTimestamp() {
if (expirationTimestampBuilder_ == null) {
expirationTimestamp_ = null;
onChanged();
} else {
expirationTimestampBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
*
*
*
* ExpirationTimestamp is the time of expiration of the returned token.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time expirationTimestamp = 2;
*/
public io.kubernetes.client.proto.Meta.Time.Builder getExpirationTimestampBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getExpirationTimestampFieldBuilder().getBuilder();
}
/**
*
*
*
* ExpirationTimestamp is the time of expiration of the returned token.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time expirationTimestamp = 2;
*/
public io.kubernetes.client.proto.Meta.TimeOrBuilder getExpirationTimestampOrBuilder() {
if (expirationTimestampBuilder_ != null) {
return expirationTimestampBuilder_.getMessageOrBuilder();
} else {
return expirationTimestamp_ == null
? io.kubernetes.client.proto.Meta.Time.getDefaultInstance()
: expirationTimestamp_;
}
}
/**
*
*
*
* ExpirationTimestamp is the time of expiration of the returned token.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time expirationTimestamp = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.Time,
io.kubernetes.client.proto.Meta.Time.Builder,
io.kubernetes.client.proto.Meta.TimeOrBuilder>
getExpirationTimestampFieldBuilder() {
if (expirationTimestampBuilder_ == null) {
expirationTimestampBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.Time,
io.kubernetes.client.proto.Meta.Time.Builder,
io.kubernetes.client.proto.Meta.TimeOrBuilder>(
getExpirationTimestamp(), getParentForChildren(), isClean());
expirationTimestamp_ = null;
}
return expirationTimestampBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.authentication.v1.TokenRequestStatus)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.authentication.v1.TokenRequestStatus)
private static final io.kubernetes.client.proto.V1Authentication.TokenRequestStatus
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Authentication.TokenRequestStatus();
}
public static io.kubernetes.client.proto.V1Authentication.TokenRequestStatus
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TokenRequestStatus parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TokenRequestStatus(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.TokenRequestStatus
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TokenReviewOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.authentication.v1.TokenReview)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
boolean hasMetadata();
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
io.kubernetes.client.proto.Meta.ObjectMeta getMetadata();
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder();
/**
*
*
*
* Spec holds information about the request being evaluated
*
*
* optional .k8s.io.api.authentication.v1.TokenReviewSpec spec = 2;
*/
boolean hasSpec();
/**
*
*
*
* Spec holds information about the request being evaluated
*
*
* optional .k8s.io.api.authentication.v1.TokenReviewSpec spec = 2;
*/
io.kubernetes.client.proto.V1Authentication.TokenReviewSpec getSpec();
/**
*
*
*
* Spec holds information about the request being evaluated
*
*
* optional .k8s.io.api.authentication.v1.TokenReviewSpec spec = 2;
*/
io.kubernetes.client.proto.V1Authentication.TokenReviewSpecOrBuilder getSpecOrBuilder();
/**
*
*
*
* Status is filled in by the server and indicates whether the request can be authenticated.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.TokenReviewStatus status = 3;
*/
boolean hasStatus();
/**
*
*
*
* Status is filled in by the server and indicates whether the request can be authenticated.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.TokenReviewStatus status = 3;
*/
io.kubernetes.client.proto.V1Authentication.TokenReviewStatus getStatus();
/**
*
*
*
* Status is filled in by the server and indicates whether the request can be authenticated.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.TokenReviewStatus status = 3;
*/
io.kubernetes.client.proto.V1Authentication.TokenReviewStatusOrBuilder getStatusOrBuilder();
}
/**
*
*
*
* TokenReview attempts to authenticate a token to a known user.
* Note: TokenReview requests may be cached by the webhook token authenticator
* plugin in the kube-apiserver.
*
*
* Protobuf type {@code k8s.io.api.authentication.v1.TokenReview}
*/
public static final class TokenReview extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.authentication.v1.TokenReview)
TokenReviewOrBuilder {
private static final long serialVersionUID = 0L;
// Use TokenReview.newBuilder() to construct.
private TokenReview(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TokenReview() {}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private TokenReview(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = metadata_.toBuilder();
}
metadata_ =
input.readMessage(
io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18:
{
io.kubernetes.client.proto.V1Authentication.TokenReviewSpec.Builder subBuilder =
null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = spec_.toBuilder();
}
spec_ =
input.readMessage(
io.kubernetes.client.proto.V1Authentication.TokenReviewSpec.PARSER,
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(spec_);
spec_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26:
{
io.kubernetes.client.proto.V1Authentication.TokenReviewStatus.Builder subBuilder =
null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = status_.toBuilder();
}
status_ =
input.readMessage(
io.kubernetes.client.proto.V1Authentication.TokenReviewStatus.PARSER,
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(status_);
status_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_TokenReview_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_TokenReview_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Authentication.TokenReview.class,
io.kubernetes.client.proto.V1Authentication.TokenReview.Builder.class);
}
private int bitField0_;
public static final int METADATA_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.Meta.ObjectMeta metadata_;
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() {
return metadata_ == null
? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()
: metadata_;
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() {
return metadata_ == null
? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()
: metadata_;
}
public static final int SPEC_FIELD_NUMBER = 2;
private io.kubernetes.client.proto.V1Authentication.TokenReviewSpec spec_;
/**
*
*
*
* Spec holds information about the request being evaluated
*
*
* optional .k8s.io.api.authentication.v1.TokenReviewSpec spec = 2;
*/
public boolean hasSpec() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* Spec holds information about the request being evaluated
*
*
* optional .k8s.io.api.authentication.v1.TokenReviewSpec spec = 2;
*/
public io.kubernetes.client.proto.V1Authentication.TokenReviewSpec getSpec() {
return spec_ == null
? io.kubernetes.client.proto.V1Authentication.TokenReviewSpec.getDefaultInstance()
: spec_;
}
/**
*
*
*
* Spec holds information about the request being evaluated
*
*
* optional .k8s.io.api.authentication.v1.TokenReviewSpec spec = 2;
*/
public io.kubernetes.client.proto.V1Authentication.TokenReviewSpecOrBuilder getSpecOrBuilder() {
return spec_ == null
? io.kubernetes.client.proto.V1Authentication.TokenReviewSpec.getDefaultInstance()
: spec_;
}
public static final int STATUS_FIELD_NUMBER = 3;
private io.kubernetes.client.proto.V1Authentication.TokenReviewStatus status_;
/**
*
*
*
* Status is filled in by the server and indicates whether the request can be authenticated.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.TokenReviewStatus status = 3;
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
*
*
* Status is filled in by the server and indicates whether the request can be authenticated.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.TokenReviewStatus status = 3;
*/
public io.kubernetes.client.proto.V1Authentication.TokenReviewStatus getStatus() {
return status_ == null
? io.kubernetes.client.proto.V1Authentication.TokenReviewStatus.getDefaultInstance()
: status_;
}
/**
*
*
*
* Status is filled in by the server and indicates whether the request can be authenticated.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.TokenReviewStatus status = 3;
*/
public io.kubernetes.client.proto.V1Authentication.TokenReviewStatusOrBuilder
getStatusOrBuilder() {
return status_ == null
? io.kubernetes.client.proto.V1Authentication.TokenReviewStatus.getDefaultInstance()
: status_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getMetadata());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getSpec());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, getStatus());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetadata());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpec());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStatus());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1Authentication.TokenReview)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1Authentication.TokenReview other =
(io.kubernetes.client.proto.V1Authentication.TokenReview) obj;
boolean result = true;
result = result && (hasMetadata() == other.hasMetadata());
if (hasMetadata()) {
result = result && getMetadata().equals(other.getMetadata());
}
result = result && (hasSpec() == other.hasSpec());
if (hasSpec()) {
result = result && getSpec().equals(other.getSpec());
}
result = result && (hasStatus() == other.hasStatus());
if (hasStatus()) {
result = result && getStatus().equals(other.getStatus());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
if (hasSpec()) {
hash = (37 * hash) + SPEC_FIELD_NUMBER;
hash = (53 * hash) + getSpec().hashCode();
}
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1Authentication.TokenReview parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Authentication.TokenReview parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.TokenReview parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Authentication.TokenReview parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.TokenReview parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Authentication.TokenReview parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.TokenReview parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Authentication.TokenReview parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.TokenReview parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Authentication.TokenReview parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.TokenReview parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Authentication.TokenReview parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
io.kubernetes.client.proto.V1Authentication.TokenReview prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* TokenReview attempts to authenticate a token to a known user.
* Note: TokenReview requests may be cached by the webhook token authenticator
* plugin in the kube-apiserver.
*
*
* Protobuf type {@code k8s.io.api.authentication.v1.TokenReview}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.authentication.v1.TokenReview)
io.kubernetes.client.proto.V1Authentication.TokenReviewOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_TokenReview_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_TokenReview_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Authentication.TokenReview.class,
io.kubernetes.client.proto.V1Authentication.TokenReview.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1Authentication.TokenReview.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getMetadataFieldBuilder();
getSpecFieldBuilder();
getStatusFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (specBuilder_ == null) {
spec_ = null;
} else {
specBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (statusBuilder_ == null) {
status_ = null;
} else {
statusBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_TokenReview_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.TokenReview getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1Authentication.TokenReview.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.TokenReview build() {
io.kubernetes.client.proto.V1Authentication.TokenReview result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.TokenReview buildPartial() {
io.kubernetes.client.proto.V1Authentication.TokenReview result =
new io.kubernetes.client.proto.V1Authentication.TokenReview(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (specBuilder_ == null) {
result.spec_ = spec_;
} else {
result.spec_ = specBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (statusBuilder_ == null) {
result.status_ = status_;
} else {
result.status_ = statusBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1Authentication.TokenReview) {
return mergeFrom((io.kubernetes.client.proto.V1Authentication.TokenReview) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1Authentication.TokenReview other) {
if (other == io.kubernetes.client.proto.V1Authentication.TokenReview.getDefaultInstance())
return this;
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (other.hasSpec()) {
mergeSpec(other.getSpec());
}
if (other.hasStatus()) {
mergeStatus(other.getStatus());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1Authentication.TokenReview parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1Authentication.TokenReview) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ObjectMeta,
io.kubernetes.client.proto.Meta.ObjectMeta.Builder,
io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>
metadataBuilder_;
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null
? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()
: metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public Builder setMetadata(
io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) {
if (metadataBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)
&& metadata_ != null
&& metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) {
metadata_ =
io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_)
.mergeFrom(value)
.buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null
? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()
: metadata_;
}
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ObjectMeta,
io.kubernetes.client.proto.Meta.ObjectMeta.Builder,
io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ObjectMeta,
io.kubernetes.client.proto.Meta.ObjectMeta.Builder,
io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>(
getMetadata(), getParentForChildren(), isClean());
metadata_ = null;
}
return metadataBuilder_;
}
private io.kubernetes.client.proto.V1Authentication.TokenReviewSpec spec_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Authentication.TokenReviewSpec,
io.kubernetes.client.proto.V1Authentication.TokenReviewSpec.Builder,
io.kubernetes.client.proto.V1Authentication.TokenReviewSpecOrBuilder>
specBuilder_;
/**
*
*
*
* Spec holds information about the request being evaluated
*
*
* optional .k8s.io.api.authentication.v1.TokenReviewSpec spec = 2;
*/
public boolean hasSpec() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* Spec holds information about the request being evaluated
*
*
* optional .k8s.io.api.authentication.v1.TokenReviewSpec spec = 2;
*/
public io.kubernetes.client.proto.V1Authentication.TokenReviewSpec getSpec() {
if (specBuilder_ == null) {
return spec_ == null
? io.kubernetes.client.proto.V1Authentication.TokenReviewSpec.getDefaultInstance()
: spec_;
} else {
return specBuilder_.getMessage();
}
}
/**
*
*
*
* Spec holds information about the request being evaluated
*
*
* optional .k8s.io.api.authentication.v1.TokenReviewSpec spec = 2;
*/
public Builder setSpec(io.kubernetes.client.proto.V1Authentication.TokenReviewSpec value) {
if (specBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
spec_ = value;
onChanged();
} else {
specBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* Spec holds information about the request being evaluated
*
*
* optional .k8s.io.api.authentication.v1.TokenReviewSpec spec = 2;
*/
public Builder setSpec(
io.kubernetes.client.proto.V1Authentication.TokenReviewSpec.Builder builderForValue) {
if (specBuilder_ == null) {
spec_ = builderForValue.build();
onChanged();
} else {
specBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* Spec holds information about the request being evaluated
*
*
* optional .k8s.io.api.authentication.v1.TokenReviewSpec spec = 2;
*/
public Builder mergeSpec(io.kubernetes.client.proto.V1Authentication.TokenReviewSpec value) {
if (specBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)
&& spec_ != null
&& spec_
!= io.kubernetes.client.proto.V1Authentication.TokenReviewSpec
.getDefaultInstance()) {
spec_ =
io.kubernetes.client.proto.V1Authentication.TokenReviewSpec.newBuilder(spec_)
.mergeFrom(value)
.buildPartial();
} else {
spec_ = value;
}
onChanged();
} else {
specBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* Spec holds information about the request being evaluated
*
*
* optional .k8s.io.api.authentication.v1.TokenReviewSpec spec = 2;
*/
public Builder clearSpec() {
if (specBuilder_ == null) {
spec_ = null;
onChanged();
} else {
specBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
*
*
*
* Spec holds information about the request being evaluated
*
*
* optional .k8s.io.api.authentication.v1.TokenReviewSpec spec = 2;
*/
public io.kubernetes.client.proto.V1Authentication.TokenReviewSpec.Builder getSpecBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getSpecFieldBuilder().getBuilder();
}
/**
*
*
*
* Spec holds information about the request being evaluated
*
*
* optional .k8s.io.api.authentication.v1.TokenReviewSpec spec = 2;
*/
public io.kubernetes.client.proto.V1Authentication.TokenReviewSpecOrBuilder
getSpecOrBuilder() {
if (specBuilder_ != null) {
return specBuilder_.getMessageOrBuilder();
} else {
return spec_ == null
? io.kubernetes.client.proto.V1Authentication.TokenReviewSpec.getDefaultInstance()
: spec_;
}
}
/**
*
*
*
* Spec holds information about the request being evaluated
*
*
* optional .k8s.io.api.authentication.v1.TokenReviewSpec spec = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Authentication.TokenReviewSpec,
io.kubernetes.client.proto.V1Authentication.TokenReviewSpec.Builder,
io.kubernetes.client.proto.V1Authentication.TokenReviewSpecOrBuilder>
getSpecFieldBuilder() {
if (specBuilder_ == null) {
specBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Authentication.TokenReviewSpec,
io.kubernetes.client.proto.V1Authentication.TokenReviewSpec.Builder,
io.kubernetes.client.proto.V1Authentication.TokenReviewSpecOrBuilder>(
getSpec(), getParentForChildren(), isClean());
spec_ = null;
}
return specBuilder_;
}
private io.kubernetes.client.proto.V1Authentication.TokenReviewStatus status_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Authentication.TokenReviewStatus,
io.kubernetes.client.proto.V1Authentication.TokenReviewStatus.Builder,
io.kubernetes.client.proto.V1Authentication.TokenReviewStatusOrBuilder>
statusBuilder_;
/**
*
*
*
* Status is filled in by the server and indicates whether the request can be authenticated.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.TokenReviewStatus status = 3;
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
*
*
* Status is filled in by the server and indicates whether the request can be authenticated.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.TokenReviewStatus status = 3;
*/
public io.kubernetes.client.proto.V1Authentication.TokenReviewStatus getStatus() {
if (statusBuilder_ == null) {
return status_ == null
? io.kubernetes.client.proto.V1Authentication.TokenReviewStatus.getDefaultInstance()
: status_;
} else {
return statusBuilder_.getMessage();
}
}
/**
*
*
*
* Status is filled in by the server and indicates whether the request can be authenticated.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.TokenReviewStatus status = 3;
*/
public Builder setStatus(
io.kubernetes.client.proto.V1Authentication.TokenReviewStatus value) {
if (statusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
status_ = value;
onChanged();
} else {
statusBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
*
*
* Status is filled in by the server and indicates whether the request can be authenticated.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.TokenReviewStatus status = 3;
*/
public Builder setStatus(
io.kubernetes.client.proto.V1Authentication.TokenReviewStatus.Builder builderForValue) {
if (statusBuilder_ == null) {
status_ = builderForValue.build();
onChanged();
} else {
statusBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
*
*
* Status is filled in by the server and indicates whether the request can be authenticated.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.TokenReviewStatus status = 3;
*/
public Builder mergeStatus(
io.kubernetes.client.proto.V1Authentication.TokenReviewStatus value) {
if (statusBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)
&& status_ != null
&& status_
!= io.kubernetes.client.proto.V1Authentication.TokenReviewStatus
.getDefaultInstance()) {
status_ =
io.kubernetes.client.proto.V1Authentication.TokenReviewStatus.newBuilder(status_)
.mergeFrom(value)
.buildPartial();
} else {
status_ = value;
}
onChanged();
} else {
statusBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
*
*
* Status is filled in by the server and indicates whether the request can be authenticated.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.TokenReviewStatus status = 3;
*/
public Builder clearStatus() {
if (statusBuilder_ == null) {
status_ = null;
onChanged();
} else {
statusBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
*
*
*
* Status is filled in by the server and indicates whether the request can be authenticated.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.TokenReviewStatus status = 3;
*/
public io.kubernetes.client.proto.V1Authentication.TokenReviewStatus.Builder
getStatusBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getStatusFieldBuilder().getBuilder();
}
/**
*
*
*
* Status is filled in by the server and indicates whether the request can be authenticated.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.TokenReviewStatus status = 3;
*/
public io.kubernetes.client.proto.V1Authentication.TokenReviewStatusOrBuilder
getStatusOrBuilder() {
if (statusBuilder_ != null) {
return statusBuilder_.getMessageOrBuilder();
} else {
return status_ == null
? io.kubernetes.client.proto.V1Authentication.TokenReviewStatus.getDefaultInstance()
: status_;
}
}
/**
*
*
*
* Status is filled in by the server and indicates whether the request can be authenticated.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.TokenReviewStatus status = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Authentication.TokenReviewStatus,
io.kubernetes.client.proto.V1Authentication.TokenReviewStatus.Builder,
io.kubernetes.client.proto.V1Authentication.TokenReviewStatusOrBuilder>
getStatusFieldBuilder() {
if (statusBuilder_ == null) {
statusBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Authentication.TokenReviewStatus,
io.kubernetes.client.proto.V1Authentication.TokenReviewStatus.Builder,
io.kubernetes.client.proto.V1Authentication.TokenReviewStatusOrBuilder>(
getStatus(), getParentForChildren(), isClean());
status_ = null;
}
return statusBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.authentication.v1.TokenReview)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.authentication.v1.TokenReview)
private static final io.kubernetes.client.proto.V1Authentication.TokenReview DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Authentication.TokenReview();
}
public static io.kubernetes.client.proto.V1Authentication.TokenReview getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TokenReview parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TokenReview(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.TokenReview getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TokenReviewSpecOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.authentication.v1.TokenReviewSpec)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Token is the opaque bearer token.
* +optional
*
*
* optional string token = 1;
*/
boolean hasToken();
/**
*
*
*
* Token is the opaque bearer token.
* +optional
*
*
* optional string token = 1;
*/
java.lang.String getToken();
/**
*
*
*
* Token is the opaque bearer token.
* +optional
*
*
* optional string token = 1;
*/
com.google.protobuf.ByteString getTokenBytes();
/**
*
*
*
* Audiences is a list of the identifiers that the resource server presented
* with the token identifies as. Audience-aware token authenticators will
* verify that the token was intended for at least one of the audiences in
* this list. If no audiences are provided, the audience will default to the
* audience of the Kubernetes apiserver.
* +optional
*
*
* repeated string audiences = 2;
*/
java.util.List getAudiencesList();
/**
*
*
*
* Audiences is a list of the identifiers that the resource server presented
* with the token identifies as. Audience-aware token authenticators will
* verify that the token was intended for at least one of the audiences in
* this list. If no audiences are provided, the audience will default to the
* audience of the Kubernetes apiserver.
* +optional
*
*
* repeated string audiences = 2;
*/
int getAudiencesCount();
/**
*
*
*
* Audiences is a list of the identifiers that the resource server presented
* with the token identifies as. Audience-aware token authenticators will
* verify that the token was intended for at least one of the audiences in
* this list. If no audiences are provided, the audience will default to the
* audience of the Kubernetes apiserver.
* +optional
*
*
* repeated string audiences = 2;
*/
java.lang.String getAudiences(int index);
/**
*
*
*
* Audiences is a list of the identifiers that the resource server presented
* with the token identifies as. Audience-aware token authenticators will
* verify that the token was intended for at least one of the audiences in
* this list. If no audiences are provided, the audience will default to the
* audience of the Kubernetes apiserver.
* +optional
*
*
* repeated string audiences = 2;
*/
com.google.protobuf.ByteString getAudiencesBytes(int index);
}
/**
*
*
*
* TokenReviewSpec is a description of the token authentication request.
*
*
* Protobuf type {@code k8s.io.api.authentication.v1.TokenReviewSpec}
*/
public static final class TokenReviewSpec extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.authentication.v1.TokenReviewSpec)
TokenReviewSpecOrBuilder {
private static final long serialVersionUID = 0L;
// Use TokenReviewSpec.newBuilder() to construct.
private TokenReviewSpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TokenReviewSpec() {
token_ = "";
audiences_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private TokenReviewSpec(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
token_ = bs;
break;
}
case 18:
{
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
audiences_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
audiences_.add(bs);
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
audiences_ = audiences_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_TokenReviewSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_TokenReviewSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Authentication.TokenReviewSpec.class,
io.kubernetes.client.proto.V1Authentication.TokenReviewSpec.Builder.class);
}
private int bitField0_;
public static final int TOKEN_FIELD_NUMBER = 1;
private volatile java.lang.Object token_;
/**
*
*
*
* Token is the opaque bearer token.
* +optional
*
*
* optional string token = 1;
*/
public boolean hasToken() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Token is the opaque bearer token.
* +optional
*
*
* optional string token = 1;
*/
public java.lang.String getToken() {
java.lang.Object ref = token_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
token_ = s;
}
return s;
}
}
/**
*
*
*
* Token is the opaque bearer token.
* +optional
*
*
* optional string token = 1;
*/
public com.google.protobuf.ByteString getTokenBytes() {
java.lang.Object ref = token_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
token_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AUDIENCES_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList audiences_;
/**
*
*
*
* Audiences is a list of the identifiers that the resource server presented
* with the token identifies as. Audience-aware token authenticators will
* verify that the token was intended for at least one of the audiences in
* this list. If no audiences are provided, the audience will default to the
* audience of the Kubernetes apiserver.
* +optional
*
*
* repeated string audiences = 2;
*/
public com.google.protobuf.ProtocolStringList getAudiencesList() {
return audiences_;
}
/**
*
*
*
* Audiences is a list of the identifiers that the resource server presented
* with the token identifies as. Audience-aware token authenticators will
* verify that the token was intended for at least one of the audiences in
* this list. If no audiences are provided, the audience will default to the
* audience of the Kubernetes apiserver.
* +optional
*
*
* repeated string audiences = 2;
*/
public int getAudiencesCount() {
return audiences_.size();
}
/**
*
*
*
* Audiences is a list of the identifiers that the resource server presented
* with the token identifies as. Audience-aware token authenticators will
* verify that the token was intended for at least one of the audiences in
* this list. If no audiences are provided, the audience will default to the
* audience of the Kubernetes apiserver.
* +optional
*
*
* repeated string audiences = 2;
*/
public java.lang.String getAudiences(int index) {
return audiences_.get(index);
}
/**
*
*
*
* Audiences is a list of the identifiers that the resource server presented
* with the token identifies as. Audience-aware token authenticators will
* verify that the token was intended for at least one of the audiences in
* this list. If no audiences are provided, the audience will default to the
* audience of the Kubernetes apiserver.
* +optional
*
*
* repeated string audiences = 2;
*/
public com.google.protobuf.ByteString getAudiencesBytes(int index) {
return audiences_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, token_);
}
for (int i = 0; i < audiences_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, audiences_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, token_);
}
{
int dataSize = 0;
for (int i = 0; i < audiences_.size(); i++) {
dataSize += computeStringSizeNoTag(audiences_.getRaw(i));
}
size += dataSize;
size += 1 * getAudiencesList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1Authentication.TokenReviewSpec)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1Authentication.TokenReviewSpec other =
(io.kubernetes.client.proto.V1Authentication.TokenReviewSpec) obj;
boolean result = true;
result = result && (hasToken() == other.hasToken());
if (hasToken()) {
result = result && getToken().equals(other.getToken());
}
result = result && getAudiencesList().equals(other.getAudiencesList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasToken()) {
hash = (37 * hash) + TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getToken().hashCode();
}
if (getAudiencesCount() > 0) {
hash = (37 * hash) + AUDIENCES_FIELD_NUMBER;
hash = (53 * hash) + getAudiencesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1Authentication.TokenReviewSpec parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Authentication.TokenReviewSpec parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.TokenReviewSpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Authentication.TokenReviewSpec parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.TokenReviewSpec parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Authentication.TokenReviewSpec parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.TokenReviewSpec parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Authentication.TokenReviewSpec parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.TokenReviewSpec parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Authentication.TokenReviewSpec parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.TokenReviewSpec parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Authentication.TokenReviewSpec parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
io.kubernetes.client.proto.V1Authentication.TokenReviewSpec prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* TokenReviewSpec is a description of the token authentication request.
*
*
* Protobuf type {@code k8s.io.api.authentication.v1.TokenReviewSpec}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.authentication.v1.TokenReviewSpec)
io.kubernetes.client.proto.V1Authentication.TokenReviewSpecOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_TokenReviewSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_TokenReviewSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Authentication.TokenReviewSpec.class,
io.kubernetes.client.proto.V1Authentication.TokenReviewSpec.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1Authentication.TokenReviewSpec.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
token_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
audiences_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_TokenReviewSpec_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.TokenReviewSpec
getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1Authentication.TokenReviewSpec.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.TokenReviewSpec build() {
io.kubernetes.client.proto.V1Authentication.TokenReviewSpec result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.TokenReviewSpec buildPartial() {
io.kubernetes.client.proto.V1Authentication.TokenReviewSpec result =
new io.kubernetes.client.proto.V1Authentication.TokenReviewSpec(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.token_ = token_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
audiences_ = audiences_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.audiences_ = audiences_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1Authentication.TokenReviewSpec) {
return mergeFrom((io.kubernetes.client.proto.V1Authentication.TokenReviewSpec) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1Authentication.TokenReviewSpec other) {
if (other
== io.kubernetes.client.proto.V1Authentication.TokenReviewSpec.getDefaultInstance())
return this;
if (other.hasToken()) {
bitField0_ |= 0x00000001;
token_ = other.token_;
onChanged();
}
if (!other.audiences_.isEmpty()) {
if (audiences_.isEmpty()) {
audiences_ = other.audiences_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureAudiencesIsMutable();
audiences_.addAll(other.audiences_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1Authentication.TokenReviewSpec parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1Authentication.TokenReviewSpec)
e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object token_ = "";
/**
*
*
*
* Token is the opaque bearer token.
* +optional
*
*
* optional string token = 1;
*/
public boolean hasToken() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Token is the opaque bearer token.
* +optional
*
*
* optional string token = 1;
*/
public java.lang.String getToken() {
java.lang.Object ref = token_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
token_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Token is the opaque bearer token.
* +optional
*
*
* optional string token = 1;
*/
public com.google.protobuf.ByteString getTokenBytes() {
java.lang.Object ref = token_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
token_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Token is the opaque bearer token.
* +optional
*
*
* optional string token = 1;
*/
public Builder setToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
token_ = value;
onChanged();
return this;
}
/**
*
*
*
* Token is the opaque bearer token.
* +optional
*
*
* optional string token = 1;
*/
public Builder clearToken() {
bitField0_ = (bitField0_ & ~0x00000001);
token_ = getDefaultInstance().getToken();
onChanged();
return this;
}
/**
*
*
*
* Token is the opaque bearer token.
* +optional
*
*
* optional string token = 1;
*/
public Builder setTokenBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
token_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList audiences_ =
com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAudiencesIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
audiences_ = new com.google.protobuf.LazyStringArrayList(audiences_);
bitField0_ |= 0x00000002;
}
}
/**
*
*
*
* Audiences is a list of the identifiers that the resource server presented
* with the token identifies as. Audience-aware token authenticators will
* verify that the token was intended for at least one of the audiences in
* this list. If no audiences are provided, the audience will default to the
* audience of the Kubernetes apiserver.
* +optional
*
*
* repeated string audiences = 2;
*/
public com.google.protobuf.ProtocolStringList getAudiencesList() {
return audiences_.getUnmodifiableView();
}
/**
*
*
*
* Audiences is a list of the identifiers that the resource server presented
* with the token identifies as. Audience-aware token authenticators will
* verify that the token was intended for at least one of the audiences in
* this list. If no audiences are provided, the audience will default to the
* audience of the Kubernetes apiserver.
* +optional
*
*
* repeated string audiences = 2;
*/
public int getAudiencesCount() {
return audiences_.size();
}
/**
*
*
*
* Audiences is a list of the identifiers that the resource server presented
* with the token identifies as. Audience-aware token authenticators will
* verify that the token was intended for at least one of the audiences in
* this list. If no audiences are provided, the audience will default to the
* audience of the Kubernetes apiserver.
* +optional
*
*
* repeated string audiences = 2;
*/
public java.lang.String getAudiences(int index) {
return audiences_.get(index);
}
/**
*
*
*
* Audiences is a list of the identifiers that the resource server presented
* with the token identifies as. Audience-aware token authenticators will
* verify that the token was intended for at least one of the audiences in
* this list. If no audiences are provided, the audience will default to the
* audience of the Kubernetes apiserver.
* +optional
*
*
* repeated string audiences = 2;
*/
public com.google.protobuf.ByteString getAudiencesBytes(int index) {
return audiences_.getByteString(index);
}
/**
*
*
*
* Audiences is a list of the identifiers that the resource server presented
* with the token identifies as. Audience-aware token authenticators will
* verify that the token was intended for at least one of the audiences in
* this list. If no audiences are provided, the audience will default to the
* audience of the Kubernetes apiserver.
* +optional
*
*
* repeated string audiences = 2;
*/
public Builder setAudiences(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAudiencesIsMutable();
audiences_.set(index, value);
onChanged();
return this;
}
/**
*
*
*
* Audiences is a list of the identifiers that the resource server presented
* with the token identifies as. Audience-aware token authenticators will
* verify that the token was intended for at least one of the audiences in
* this list. If no audiences are provided, the audience will default to the
* audience of the Kubernetes apiserver.
* +optional
*
*
* repeated string audiences = 2;
*/
public Builder addAudiences(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAudiencesIsMutable();
audiences_.add(value);
onChanged();
return this;
}
/**
*
*
*
* Audiences is a list of the identifiers that the resource server presented
* with the token identifies as. Audience-aware token authenticators will
* verify that the token was intended for at least one of the audiences in
* this list. If no audiences are provided, the audience will default to the
* audience of the Kubernetes apiserver.
* +optional
*
*
* repeated string audiences = 2;
*/
public Builder addAllAudiences(java.lang.Iterable values) {
ensureAudiencesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, audiences_);
onChanged();
return this;
}
/**
*
*
*
* Audiences is a list of the identifiers that the resource server presented
* with the token identifies as. Audience-aware token authenticators will
* verify that the token was intended for at least one of the audiences in
* this list. If no audiences are provided, the audience will default to the
* audience of the Kubernetes apiserver.
* +optional
*
*
* repeated string audiences = 2;
*/
public Builder clearAudiences() {
audiences_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* Audiences is a list of the identifiers that the resource server presented
* with the token identifies as. Audience-aware token authenticators will
* verify that the token was intended for at least one of the audiences in
* this list. If no audiences are provided, the audience will default to the
* audience of the Kubernetes apiserver.
* +optional
*
*
* repeated string audiences = 2;
*/
public Builder addAudiencesBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureAudiencesIsMutable();
audiences_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.authentication.v1.TokenReviewSpec)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.authentication.v1.TokenReviewSpec)
private static final io.kubernetes.client.proto.V1Authentication.TokenReviewSpec
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Authentication.TokenReviewSpec();
}
public static io.kubernetes.client.proto.V1Authentication.TokenReviewSpec getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TokenReviewSpec parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TokenReviewSpec(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.TokenReviewSpec getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TokenReviewStatusOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.authentication.v1.TokenReviewStatus)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Authenticated indicates that the token was associated with a known user.
* +optional
*
*
* optional bool authenticated = 1;
*/
boolean hasAuthenticated();
/**
*
*
*
* Authenticated indicates that the token was associated with a known user.
* +optional
*
*
* optional bool authenticated = 1;
*/
boolean getAuthenticated();
/**
*
*
*
* User is the UserInfo associated with the provided token.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.UserInfo user = 2;
*/
boolean hasUser();
/**
*
*
*
* User is the UserInfo associated with the provided token.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.UserInfo user = 2;
*/
io.kubernetes.client.proto.V1Authentication.UserInfo getUser();
/**
*
*
*
* User is the UserInfo associated with the provided token.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.UserInfo user = 2;
*/
io.kubernetes.client.proto.V1Authentication.UserInfoOrBuilder getUserOrBuilder();
/**
*
*
*
* 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;
*/
java.util.List 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;
*/
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;
*/
java.lang.String getAudiences(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;
*/
com.google.protobuf.ByteString getAudiencesBytes(int index);
/**
*
*
*
* Error indicates that the token couldn't be checked
* +optional
*
*
* optional string error = 3;
*/
boolean hasError();
/**
*
*
*
* Error indicates that the token couldn't be checked
* +optional
*
*
* optional string error = 3;
*/
java.lang.String getError();
/**
*
*
*
* Error indicates that the token couldn't be checked
* +optional
*
*
* optional string error = 3;
*/
com.google.protobuf.ByteString getErrorBytes();
}
/**
*
*
*
* TokenReviewStatus is the result of the token authentication request.
*
*
* Protobuf type {@code k8s.io.api.authentication.v1.TokenReviewStatus}
*/
public static final class TokenReviewStatus extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.authentication.v1.TokenReviewStatus)
TokenReviewStatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use TokenReviewStatus.newBuilder() to construct.
private TokenReviewStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TokenReviewStatus() {
authenticated_ = false;
audiences_ = com.google.protobuf.LazyStringArrayList.EMPTY;
error_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private TokenReviewStatus(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8:
{
bitField0_ |= 0x00000001;
authenticated_ = input.readBool();
break;
}
case 18:
{
io.kubernetes.client.proto.V1Authentication.UserInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = user_.toBuilder();
}
user_ =
input.readMessage(
io.kubernetes.client.proto.V1Authentication.UserInfo.PARSER,
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(user_);
user_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
error_ = bs;
break;
}
case 34:
{
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
audiences_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
audiences_.add(bs);
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
audiences_ = audiences_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_TokenReviewStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_TokenReviewStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Authentication.TokenReviewStatus.class,
io.kubernetes.client.proto.V1Authentication.TokenReviewStatus.Builder.class);
}
private int bitField0_;
public static final int AUTHENTICATED_FIELD_NUMBER = 1;
private boolean authenticated_;
/**
*
*
*
* Authenticated indicates that the token was associated with a known user.
* +optional
*
*
* optional bool authenticated = 1;
*/
public boolean hasAuthenticated() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Authenticated indicates that the token was associated with a known user.
* +optional
*
*
* optional bool authenticated = 1;
*/
public boolean getAuthenticated() {
return authenticated_;
}
public static final int USER_FIELD_NUMBER = 2;
private io.kubernetes.client.proto.V1Authentication.UserInfo user_;
/**
*
*
*
* User is the UserInfo associated with the provided token.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.UserInfo user = 2;
*/
public boolean hasUser() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* User is the UserInfo associated with the provided token.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.UserInfo user = 2;
*/
public io.kubernetes.client.proto.V1Authentication.UserInfo getUser() {
return user_ == null
? io.kubernetes.client.proto.V1Authentication.UserInfo.getDefaultInstance()
: user_;
}
/**
*
*
*
* User is the UserInfo associated with the provided token.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.UserInfo user = 2;
*/
public io.kubernetes.client.proto.V1Authentication.UserInfoOrBuilder getUserOrBuilder() {
return user_ == null
? io.kubernetes.client.proto.V1Authentication.UserInfo.getDefaultInstance()
: user_;
}
public static final int AUDIENCES_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList audiences_;
/**
*
*
*
* 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;
*/
public com.google.protobuf.ProtocolStringList getAudiencesList() {
return audiences_;
}
/**
*
*
*
* 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;
*/
public int getAudiencesCount() {
return audiences_.size();
}
/**
*
*
*
* 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;
*/
public java.lang.String getAudiences(int index) {
return audiences_.get(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;
*/
public com.google.protobuf.ByteString getAudiencesBytes(int index) {
return audiences_.getByteString(index);
}
public static final int ERROR_FIELD_NUMBER = 3;
private volatile java.lang.Object error_;
/**
*
*
*
* Error indicates that the token couldn't be checked
* +optional
*
*
* optional string error = 3;
*/
public boolean hasError() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
*
*
* Error indicates that the token couldn't be checked
* +optional
*
*
* optional string error = 3;
*/
public java.lang.String getError() {
java.lang.Object ref = error_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
error_ = s;
}
return s;
}
}
/**
*
*
*
* Error indicates that the token couldn't be checked
* +optional
*
*
* optional string error = 3;
*/
public com.google.protobuf.ByteString getErrorBytes() {
java.lang.Object ref = error_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
error_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBool(1, authenticated_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getUser());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, error_);
}
for (int i = 0; i < audiences_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, audiences_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, authenticated_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUser());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, error_);
}
{
int dataSize = 0;
for (int i = 0; i < audiences_.size(); i++) {
dataSize += computeStringSizeNoTag(audiences_.getRaw(i));
}
size += dataSize;
size += 1 * getAudiencesList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1Authentication.TokenReviewStatus)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1Authentication.TokenReviewStatus other =
(io.kubernetes.client.proto.V1Authentication.TokenReviewStatus) obj;
boolean result = true;
result = result && (hasAuthenticated() == other.hasAuthenticated());
if (hasAuthenticated()) {
result = result && (getAuthenticated() == other.getAuthenticated());
}
result = result && (hasUser() == other.hasUser());
if (hasUser()) {
result = result && getUser().equals(other.getUser());
}
result = result && getAudiencesList().equals(other.getAudiencesList());
result = result && (hasError() == other.hasError());
if (hasError()) {
result = result && getError().equals(other.getError());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasAuthenticated()) {
hash = (37 * hash) + AUTHENTICATED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAuthenticated());
}
if (hasUser()) {
hash = (37 * hash) + USER_FIELD_NUMBER;
hash = (53 * hash) + getUser().hashCode();
}
if (getAudiencesCount() > 0) {
hash = (37 * hash) + AUDIENCES_FIELD_NUMBER;
hash = (53 * hash) + getAudiencesList().hashCode();
}
if (hasError()) {
hash = (37 * hash) + ERROR_FIELD_NUMBER;
hash = (53 * hash) + getError().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1Authentication.TokenReviewStatus parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Authentication.TokenReviewStatus parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.TokenReviewStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Authentication.TokenReviewStatus parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.TokenReviewStatus parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Authentication.TokenReviewStatus parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.TokenReviewStatus parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Authentication.TokenReviewStatus parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.TokenReviewStatus parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Authentication.TokenReviewStatus parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.TokenReviewStatus parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Authentication.TokenReviewStatus parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
io.kubernetes.client.proto.V1Authentication.TokenReviewStatus prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* TokenReviewStatus is the result of the token authentication request.
*
*
* Protobuf type {@code k8s.io.api.authentication.v1.TokenReviewStatus}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.authentication.v1.TokenReviewStatus)
io.kubernetes.client.proto.V1Authentication.TokenReviewStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_TokenReviewStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_TokenReviewStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Authentication.TokenReviewStatus.class,
io.kubernetes.client.proto.V1Authentication.TokenReviewStatus.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1Authentication.TokenReviewStatus.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getUserFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
authenticated_ = false;
bitField0_ = (bitField0_ & ~0x00000001);
if (userBuilder_ == null) {
user_ = null;
} else {
userBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
audiences_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
error_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_TokenReviewStatus_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.TokenReviewStatus
getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1Authentication.TokenReviewStatus.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.TokenReviewStatus build() {
io.kubernetes.client.proto.V1Authentication.TokenReviewStatus result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.TokenReviewStatus buildPartial() {
io.kubernetes.client.proto.V1Authentication.TokenReviewStatus result =
new io.kubernetes.client.proto.V1Authentication.TokenReviewStatus(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.authenticated_ = authenticated_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (userBuilder_ == null) {
result.user_ = user_;
} else {
result.user_ = userBuilder_.build();
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
audiences_ = audiences_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.audiences_ = audiences_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000004;
}
result.error_ = error_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1Authentication.TokenReviewStatus) {
return mergeFrom((io.kubernetes.client.proto.V1Authentication.TokenReviewStatus) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
io.kubernetes.client.proto.V1Authentication.TokenReviewStatus other) {
if (other
== io.kubernetes.client.proto.V1Authentication.TokenReviewStatus.getDefaultInstance())
return this;
if (other.hasAuthenticated()) {
setAuthenticated(other.getAuthenticated());
}
if (other.hasUser()) {
mergeUser(other.getUser());
}
if (!other.audiences_.isEmpty()) {
if (audiences_.isEmpty()) {
audiences_ = other.audiences_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureAudiencesIsMutable();
audiences_.addAll(other.audiences_);
}
onChanged();
}
if (other.hasError()) {
bitField0_ |= 0x00000008;
error_ = other.error_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1Authentication.TokenReviewStatus parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1Authentication.TokenReviewStatus)
e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private boolean authenticated_;
/**
*
*
*
* Authenticated indicates that the token was associated with a known user.
* +optional
*
*
* optional bool authenticated = 1;
*/
public boolean hasAuthenticated() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Authenticated indicates that the token was associated with a known user.
* +optional
*
*
* optional bool authenticated = 1;
*/
public boolean getAuthenticated() {
return authenticated_;
}
/**
*
*
*
* Authenticated indicates that the token was associated with a known user.
* +optional
*
*
* optional bool authenticated = 1;
*/
public Builder setAuthenticated(boolean value) {
bitField0_ |= 0x00000001;
authenticated_ = value;
onChanged();
return this;
}
/**
*
*
*
* Authenticated indicates that the token was associated with a known user.
* +optional
*
*
* optional bool authenticated = 1;
*/
public Builder clearAuthenticated() {
bitField0_ = (bitField0_ & ~0x00000001);
authenticated_ = false;
onChanged();
return this;
}
private io.kubernetes.client.proto.V1Authentication.UserInfo user_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Authentication.UserInfo,
io.kubernetes.client.proto.V1Authentication.UserInfo.Builder,
io.kubernetes.client.proto.V1Authentication.UserInfoOrBuilder>
userBuilder_;
/**
*
*
*
* User is the UserInfo associated with the provided token.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.UserInfo user = 2;
*/
public boolean hasUser() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* User is the UserInfo associated with the provided token.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.UserInfo user = 2;
*/
public io.kubernetes.client.proto.V1Authentication.UserInfo getUser() {
if (userBuilder_ == null) {
return user_ == null
? io.kubernetes.client.proto.V1Authentication.UserInfo.getDefaultInstance()
: user_;
} else {
return userBuilder_.getMessage();
}
}
/**
*
*
*
* User is the UserInfo associated with the provided token.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.UserInfo user = 2;
*/
public Builder setUser(io.kubernetes.client.proto.V1Authentication.UserInfo value) {
if (userBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
user_ = value;
onChanged();
} else {
userBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* User is the UserInfo associated with the provided token.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.UserInfo user = 2;
*/
public Builder setUser(
io.kubernetes.client.proto.V1Authentication.UserInfo.Builder builderForValue) {
if (userBuilder_ == null) {
user_ = builderForValue.build();
onChanged();
} else {
userBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* User is the UserInfo associated with the provided token.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.UserInfo user = 2;
*/
public Builder mergeUser(io.kubernetes.client.proto.V1Authentication.UserInfo value) {
if (userBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)
&& user_ != null
&& user_
!= io.kubernetes.client.proto.V1Authentication.UserInfo.getDefaultInstance()) {
user_ =
io.kubernetes.client.proto.V1Authentication.UserInfo.newBuilder(user_)
.mergeFrom(value)
.buildPartial();
} else {
user_ = value;
}
onChanged();
} else {
userBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* User is the UserInfo associated with the provided token.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.UserInfo user = 2;
*/
public Builder clearUser() {
if (userBuilder_ == null) {
user_ = null;
onChanged();
} else {
userBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
*
*
*
* User is the UserInfo associated with the provided token.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.UserInfo user = 2;
*/
public io.kubernetes.client.proto.V1Authentication.UserInfo.Builder getUserBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getUserFieldBuilder().getBuilder();
}
/**
*
*
*
* User is the UserInfo associated with the provided token.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.UserInfo user = 2;
*/
public io.kubernetes.client.proto.V1Authentication.UserInfoOrBuilder getUserOrBuilder() {
if (userBuilder_ != null) {
return userBuilder_.getMessageOrBuilder();
} else {
return user_ == null
? io.kubernetes.client.proto.V1Authentication.UserInfo.getDefaultInstance()
: user_;
}
}
/**
*
*
*
* User is the UserInfo associated with the provided token.
* +optional
*
*
* optional .k8s.io.api.authentication.v1.UserInfo user = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Authentication.UserInfo,
io.kubernetes.client.proto.V1Authentication.UserInfo.Builder,
io.kubernetes.client.proto.V1Authentication.UserInfoOrBuilder>
getUserFieldBuilder() {
if (userBuilder_ == null) {
userBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Authentication.UserInfo,
io.kubernetes.client.proto.V1Authentication.UserInfo.Builder,
io.kubernetes.client.proto.V1Authentication.UserInfoOrBuilder>(
getUser(), getParentForChildren(), isClean());
user_ = null;
}
return userBuilder_;
}
private com.google.protobuf.LazyStringList audiences_ =
com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAudiencesIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
audiences_ = new com.google.protobuf.LazyStringArrayList(audiences_);
bitField0_ |= 0x00000004;
}
}
/**
*
*
*
* 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;
*/
public com.google.protobuf.ProtocolStringList getAudiencesList() {
return audiences_.getUnmodifiableView();
}
/**
*
*
*
* 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;
*/
public int getAudiencesCount() {
return audiences_.size();
}
/**
*
*
*
* 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;
*/
public java.lang.String getAudiences(int index) {
return audiences_.get(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;
*/
public com.google.protobuf.ByteString getAudiencesBytes(int index) {
return audiences_.getByteString(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;
*/
public Builder setAudiences(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAudiencesIsMutable();
audiences_.set(index, value);
onChanged();
return this;
}
/**
*
*
*
* 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;
*/
public Builder addAudiences(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAudiencesIsMutable();
audiences_.add(value);
onChanged();
return this;
}
/**
*
*
*
* 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;
*/
public Builder addAllAudiences(java.lang.Iterable values) {
ensureAudiencesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, audiences_);
onChanged();
return this;
}
/**
*
*
*
* 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;
*/
public Builder clearAudiences() {
audiences_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*
*
* 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;
*/
public Builder addAudiencesBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureAudiencesIsMutable();
audiences_.add(value);
onChanged();
return this;
}
private java.lang.Object error_ = "";
/**
*
*
*
* Error indicates that the token couldn't be checked
* +optional
*
*
* optional string error = 3;
*/
public boolean hasError() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
*
*
* Error indicates that the token couldn't be checked
* +optional
*
*
* optional string error = 3;
*/
public java.lang.String getError() {
java.lang.Object ref = error_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
error_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Error indicates that the token couldn't be checked
* +optional
*
*
* optional string error = 3;
*/
public com.google.protobuf.ByteString getErrorBytes() {
java.lang.Object ref = error_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
error_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Error indicates that the token couldn't be checked
* +optional
*
*
* optional string error = 3;
*/
public Builder setError(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
error_ = value;
onChanged();
return this;
}
/**
*
*
*
* Error indicates that the token couldn't be checked
* +optional
*
*
* optional string error = 3;
*/
public Builder clearError() {
bitField0_ = (bitField0_ & ~0x00000008);
error_ = getDefaultInstance().getError();
onChanged();
return this;
}
/**
*
*
*
* Error indicates that the token couldn't be checked
* +optional
*
*
* optional string error = 3;
*/
public Builder setErrorBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
error_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.authentication.v1.TokenReviewStatus)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.authentication.v1.TokenReviewStatus)
private static final io.kubernetes.client.proto.V1Authentication.TokenReviewStatus
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Authentication.TokenReviewStatus();
}
public static io.kubernetes.client.proto.V1Authentication.TokenReviewStatus
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TokenReviewStatus parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TokenReviewStatus(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.TokenReviewStatus
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UserInfoOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.authentication.v1.UserInfo)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The name that uniquely identifies this user among all active users.
* +optional
*
*
* optional string username = 1;
*/
boolean hasUsername();
/**
*
*
*
* The name that uniquely identifies this user among all active users.
* +optional
*
*
* optional string username = 1;
*/
java.lang.String getUsername();
/**
*
*
*
* The name that uniquely identifies this user among all active users.
* +optional
*
*
* optional string username = 1;
*/
com.google.protobuf.ByteString getUsernameBytes();
/**
*
*
*
* A unique value that identifies this user across time. If this user is
* deleted and another user by the same name is added, they will have
* different UIDs.
* +optional
*
*
* optional string uid = 2;
*/
boolean hasUid();
/**
*
*
*
* A unique value that identifies this user across time. If this user is
* deleted and another user by the same name is added, they will have
* different UIDs.
* +optional
*
*
* optional string uid = 2;
*/
java.lang.String getUid();
/**
*
*
*
* A unique value that identifies this user across time. If this user is
* deleted and another user by the same name is added, they will have
* different UIDs.
* +optional
*
*
* optional string uid = 2;
*/
com.google.protobuf.ByteString getUidBytes();
/**
*
*
*
* The names of groups this user is a part of.
* +optional
*
*
* repeated string groups = 3;
*/
java.util.List getGroupsList();
/**
*
*
*
* The names of groups this user is a part of.
* +optional
*
*
* repeated string groups = 3;
*/
int getGroupsCount();
/**
*
*
*
* The names of groups this user is a part of.
* +optional
*
*
* repeated string groups = 3;
*/
java.lang.String getGroups(int index);
/**
*
*
*
* The names of groups this user is a part of.
* +optional
*
*
* repeated string groups = 3;
*/
com.google.protobuf.ByteString getGroupsBytes(int index);
/**
*
*
*
* Any additional information provided by the authenticator.
* +optional
*
*
* map<string, .k8s.io.api.authentication.v1.ExtraValue> extra = 4;
*/
int getExtraCount();
/**
*
*
*
* Any additional information provided by the authenticator.
* +optional
*
*
* map<string, .k8s.io.api.authentication.v1.ExtraValue> extra = 4;
*/
boolean containsExtra(java.lang.String key);
/** Use {@link #getExtraMap()} instead. */
@java.lang.Deprecated
java.util.Map
getExtra();
/**
*
*
*
* Any additional information provided by the authenticator.
* +optional
*
*
* map<string, .k8s.io.api.authentication.v1.ExtraValue> extra = 4;
*/
java.util.Map
getExtraMap();
/**
*
*
*
* Any additional information provided by the authenticator.
* +optional
*
*
* map<string, .k8s.io.api.authentication.v1.ExtraValue> extra = 4;
*/
io.kubernetes.client.proto.V1Authentication.ExtraValue getExtraOrDefault(
java.lang.String key, io.kubernetes.client.proto.V1Authentication.ExtraValue defaultValue);
/**
*
*
*
* Any additional information provided by the authenticator.
* +optional
*
*
* map<string, .k8s.io.api.authentication.v1.ExtraValue> extra = 4;
*/
io.kubernetes.client.proto.V1Authentication.ExtraValue getExtraOrThrow(java.lang.String key);
}
/**
*
*
*
* UserInfo holds the information about the user needed to implement the
* user.Info interface.
*
*
* Protobuf type {@code k8s.io.api.authentication.v1.UserInfo}
*/
public static final class UserInfo extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.authentication.v1.UserInfo)
UserInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use UserInfo.newBuilder() to construct.
private UserInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UserInfo() {
username_ = "";
uid_ = "";
groups_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private UserInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
username_ = bs;
break;
}
case 18:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
uid_ = bs;
break;
}
case 26:
{
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
groups_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
groups_.add(bs);
break;
}
case 34:
{
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
extra_ =
com.google.protobuf.MapField.newMapField(
ExtraDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000008;
}
com.google.protobuf.MapEntry<
java.lang.String, io.kubernetes.client.proto.V1Authentication.ExtraValue>
extra__ =
input.readMessage(
ExtraDefaultEntryHolder.defaultEntry.getParserForType(),
extensionRegistry);
extra_.getMutableMap().put(extra__.getKey(), extra__.getValue());
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
groups_ = groups_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_UserInfo_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(int number) {
switch (number) {
case 4:
return internalGetExtra();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_UserInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Authentication.UserInfo.class,
io.kubernetes.client.proto.V1Authentication.UserInfo.Builder.class);
}
private int bitField0_;
public static final int USERNAME_FIELD_NUMBER = 1;
private volatile java.lang.Object username_;
/**
*
*
*
* The name that uniquely identifies this user among all active users.
* +optional
*
*
* optional string username = 1;
*/
public boolean hasUsername() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* The name that uniquely identifies this user among all active users.
* +optional
*
*
* optional string username = 1;
*/
public java.lang.String getUsername() {
java.lang.Object ref = username_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
username_ = s;
}
return s;
}
}
/**
*
*
*
* The name that uniquely identifies this user among all active users.
* +optional
*
*
* optional string username = 1;
*/
public com.google.protobuf.ByteString getUsernameBytes() {
java.lang.Object ref = username_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
username_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UID_FIELD_NUMBER = 2;
private volatile java.lang.Object uid_;
/**
*
*
*
* A unique value that identifies this user across time. If this user is
* deleted and another user by the same name is added, they will have
* different UIDs.
* +optional
*
*
* optional string uid = 2;
*/
public boolean hasUid() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* A unique value that identifies this user across time. If this user is
* deleted and another user by the same name is added, they will have
* different UIDs.
* +optional
*
*
* optional string uid = 2;
*/
public java.lang.String getUid() {
java.lang.Object ref = uid_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
uid_ = s;
}
return s;
}
}
/**
*
*
*
* A unique value that identifies this user across time. If this user is
* deleted and another user by the same name is added, they will have
* different UIDs.
* +optional
*
*
* optional string uid = 2;
*/
public com.google.protobuf.ByteString getUidBytes() {
java.lang.Object ref = uid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
uid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GROUPS_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList groups_;
/**
*
*
*
* The names of groups this user is a part of.
* +optional
*
*
* repeated string groups = 3;
*/
public com.google.protobuf.ProtocolStringList getGroupsList() {
return groups_;
}
/**
*
*
*
* The names of groups this user is a part of.
* +optional
*
*
* repeated string groups = 3;
*/
public int getGroupsCount() {
return groups_.size();
}
/**
*
*
*
* The names of groups this user is a part of.
* +optional
*
*
* repeated string groups = 3;
*/
public java.lang.String getGroups(int index) {
return groups_.get(index);
}
/**
*
*
*
* The names of groups this user is a part of.
* +optional
*
*
* repeated string groups = 3;
*/
public com.google.protobuf.ByteString getGroupsBytes(int index) {
return groups_.getByteString(index);
}
public static final int EXTRA_FIELD_NUMBER = 4;
private static final class ExtraDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, io.kubernetes.client.proto.V1Authentication.ExtraValue>
defaultEntry =
com.google.protobuf.MapEntry
.
newDefaultInstance(
io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_UserInfo_ExtraEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
io.kubernetes.client.proto.V1Authentication.ExtraValue
.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.String, io.kubernetes.client.proto.V1Authentication.ExtraValue>
extra_;
private com.google.protobuf.MapField<
java.lang.String, io.kubernetes.client.proto.V1Authentication.ExtraValue>
internalGetExtra() {
if (extra_ == null) {
return com.google.protobuf.MapField.emptyMapField(ExtraDefaultEntryHolder.defaultEntry);
}
return extra_;
}
public int getExtraCount() {
return internalGetExtra().getMap().size();
}
/**
*
*
*
* Any additional information provided by the authenticator.
* +optional
*
*
* map<string, .k8s.io.api.authentication.v1.ExtraValue> extra = 4;
*/
public boolean containsExtra(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
}
return internalGetExtra().getMap().containsKey(key);
}
/** Use {@link #getExtraMap()} instead. */
@java.lang.Deprecated
public java.util.Map
getExtra() {
return getExtraMap();
}
/**
*
*
*
* Any additional information provided by the authenticator.
* +optional
*
*
* map<string, .k8s.io.api.authentication.v1.ExtraValue> extra = 4;
*/
public java.util.Map
getExtraMap() {
return internalGetExtra().getMap();
}
/**
*
*
*
* Any additional information provided by the authenticator.
* +optional
*
*
* map<string, .k8s.io.api.authentication.v1.ExtraValue> extra = 4;
*/
public io.kubernetes.client.proto.V1Authentication.ExtraValue getExtraOrDefault(
java.lang.String key, io.kubernetes.client.proto.V1Authentication.ExtraValue defaultValue) {
if (key == null) {
throw new java.lang.NullPointerException();
}
java.util.Map map =
internalGetExtra().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* Any additional information provided by the authenticator.
* +optional
*
*
* map<string, .k8s.io.api.authentication.v1.ExtraValue> extra = 4;
*/
public io.kubernetes.client.proto.V1Authentication.ExtraValue getExtraOrThrow(
java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
}
java.util.Map map =
internalGetExtra().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uid_);
}
for (int i = 0; i < groups_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, groups_.getRaw(i));
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetExtra(), ExtraDefaultEntryHolder.defaultEntry, 4);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, username_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_);
}
{
int dataSize = 0;
for (int i = 0; i < groups_.size(); i++) {
dataSize += computeStringSizeNoTag(groups_.getRaw(i));
}
size += dataSize;
size += 1 * getGroupsList().size();
}
for (java.util.Map.Entry<
java.lang.String, io.kubernetes.client.proto.V1Authentication.ExtraValue>
entry : internalGetExtra().getMap().entrySet()) {
com.google.protobuf.MapEntry<
java.lang.String, io.kubernetes.client.proto.V1Authentication.ExtraValue>
extra__ =
ExtraDefaultEntryHolder.defaultEntry
.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, extra__);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1Authentication.UserInfo)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1Authentication.UserInfo other =
(io.kubernetes.client.proto.V1Authentication.UserInfo) obj;
boolean result = true;
result = result && (hasUsername() == other.hasUsername());
if (hasUsername()) {
result = result && getUsername().equals(other.getUsername());
}
result = result && (hasUid() == other.hasUid());
if (hasUid()) {
result = result && getUid().equals(other.getUid());
}
result = result && getGroupsList().equals(other.getGroupsList());
result = result && internalGetExtra().equals(other.internalGetExtra());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasUsername()) {
hash = (37 * hash) + USERNAME_FIELD_NUMBER;
hash = (53 * hash) + getUsername().hashCode();
}
if (hasUid()) {
hash = (37 * hash) + UID_FIELD_NUMBER;
hash = (53 * hash) + getUid().hashCode();
}
if (getGroupsCount() > 0) {
hash = (37 * hash) + GROUPS_FIELD_NUMBER;
hash = (53 * hash) + getGroupsList().hashCode();
}
if (!internalGetExtra().getMap().isEmpty()) {
hash = (37 * hash) + EXTRA_FIELD_NUMBER;
hash = (53 * hash) + internalGetExtra().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1Authentication.UserInfo parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Authentication.UserInfo parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.UserInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Authentication.UserInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.UserInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Authentication.UserInfo parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.UserInfo parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Authentication.UserInfo parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.UserInfo parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Authentication.UserInfo parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Authentication.UserInfo parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Authentication.UserInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
io.kubernetes.client.proto.V1Authentication.UserInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* UserInfo holds the information about the user needed to implement the
* user.Info interface.
*
*
* Protobuf type {@code k8s.io.api.authentication.v1.UserInfo}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.authentication.v1.UserInfo)
io.kubernetes.client.proto.V1Authentication.UserInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_UserInfo_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(int number) {
switch (number) {
case 4:
return internalGetExtra();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
switch (number) {
case 4:
return internalGetMutableExtra();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_UserInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Authentication.UserInfo.class,
io.kubernetes.client.proto.V1Authentication.UserInfo.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1Authentication.UserInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
username_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
uid_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
groups_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
internalGetMutableExtra().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1Authentication
.internal_static_k8s_io_api_authentication_v1_UserInfo_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.UserInfo getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1Authentication.UserInfo.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.UserInfo build() {
io.kubernetes.client.proto.V1Authentication.UserInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.UserInfo buildPartial() {
io.kubernetes.client.proto.V1Authentication.UserInfo result =
new io.kubernetes.client.proto.V1Authentication.UserInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.username_ = username_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.uid_ = uid_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
groups_ = groups_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.groups_ = groups_;
result.extra_ = internalGetExtra();
result.extra_.makeImmutable();
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1Authentication.UserInfo) {
return mergeFrom((io.kubernetes.client.proto.V1Authentication.UserInfo) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1Authentication.UserInfo other) {
if (other == io.kubernetes.client.proto.V1Authentication.UserInfo.getDefaultInstance())
return this;
if (other.hasUsername()) {
bitField0_ |= 0x00000001;
username_ = other.username_;
onChanged();
}
if (other.hasUid()) {
bitField0_ |= 0x00000002;
uid_ = other.uid_;
onChanged();
}
if (!other.groups_.isEmpty()) {
if (groups_.isEmpty()) {
groups_ = other.groups_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureGroupsIsMutable();
groups_.addAll(other.groups_);
}
onChanged();
}
internalGetMutableExtra().mergeFrom(other.internalGetExtra());
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1Authentication.UserInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1Authentication.UserInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object username_ = "";
/**
*
*
*
* The name that uniquely identifies this user among all active users.
* +optional
*
*
* optional string username = 1;
*/
public boolean hasUsername() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* The name that uniquely identifies this user among all active users.
* +optional
*
*
* optional string username = 1;
*/
public java.lang.String getUsername() {
java.lang.Object ref = username_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
username_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The name that uniquely identifies this user among all active users.
* +optional
*
*
* optional string username = 1;
*/
public com.google.protobuf.ByteString getUsernameBytes() {
java.lang.Object ref = username_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
username_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The name that uniquely identifies this user among all active users.
* +optional
*
*
* optional string username = 1;
*/
public Builder setUsername(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
username_ = value;
onChanged();
return this;
}
/**
*
*
*
* The name that uniquely identifies this user among all active users.
* +optional
*
*
* optional string username = 1;
*/
public Builder clearUsername() {
bitField0_ = (bitField0_ & ~0x00000001);
username_ = getDefaultInstance().getUsername();
onChanged();
return this;
}
/**
*
*
*
* The name that uniquely identifies this user among all active users.
* +optional
*
*
* optional string username = 1;
*/
public Builder setUsernameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
username_ = value;
onChanged();
return this;
}
private java.lang.Object uid_ = "";
/**
*
*
*
* A unique value that identifies this user across time. If this user is
* deleted and another user by the same name is added, they will have
* different UIDs.
* +optional
*
*
* optional string uid = 2;
*/
public boolean hasUid() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* A unique value that identifies this user across time. If this user is
* deleted and another user by the same name is added, they will have
* different UIDs.
* +optional
*
*
* optional string uid = 2;
*/
public java.lang.String getUid() {
java.lang.Object ref = uid_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
uid_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* A unique value that identifies this user across time. If this user is
* deleted and another user by the same name is added, they will have
* different UIDs.
* +optional
*
*
* optional string uid = 2;
*/
public com.google.protobuf.ByteString getUidBytes() {
java.lang.Object ref = uid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
uid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* A unique value that identifies this user across time. If this user is
* deleted and another user by the same name is added, they will have
* different UIDs.
* +optional
*
*
* optional string uid = 2;
*/
public Builder setUid(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
uid_ = value;
onChanged();
return this;
}
/**
*
*
*
* A unique value that identifies this user across time. If this user is
* deleted and another user by the same name is added, they will have
* different UIDs.
* +optional
*
*
* optional string uid = 2;
*/
public Builder clearUid() {
bitField0_ = (bitField0_ & ~0x00000002);
uid_ = getDefaultInstance().getUid();
onChanged();
return this;
}
/**
*
*
*
* A unique value that identifies this user across time. If this user is
* deleted and another user by the same name is added, they will have
* different UIDs.
* +optional
*
*
* optional string uid = 2;
*/
public Builder setUidBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
uid_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList groups_ =
com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureGroupsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
groups_ = new com.google.protobuf.LazyStringArrayList(groups_);
bitField0_ |= 0x00000004;
}
}
/**
*
*
*
* The names of groups this user is a part of.
* +optional
*
*
* repeated string groups = 3;
*/
public com.google.protobuf.ProtocolStringList getGroupsList() {
return groups_.getUnmodifiableView();
}
/**
*
*
*
* The names of groups this user is a part of.
* +optional
*
*
* repeated string groups = 3;
*/
public int getGroupsCount() {
return groups_.size();
}
/**
*
*
*
* The names of groups this user is a part of.
* +optional
*
*
* repeated string groups = 3;
*/
public java.lang.String getGroups(int index) {
return groups_.get(index);
}
/**
*
*
*
* The names of groups this user is a part of.
* +optional
*
*
* repeated string groups = 3;
*/
public com.google.protobuf.ByteString getGroupsBytes(int index) {
return groups_.getByteString(index);
}
/**
*
*
*
* The names of groups this user is a part of.
* +optional
*
*
* repeated string groups = 3;
*/
public Builder setGroups(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureGroupsIsMutable();
groups_.set(index, value);
onChanged();
return this;
}
/**
*
*
*
* The names of groups this user is a part of.
* +optional
*
*
* repeated string groups = 3;
*/
public Builder addGroups(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureGroupsIsMutable();
groups_.add(value);
onChanged();
return this;
}
/**
*
*
*
* The names of groups this user is a part of.
* +optional
*
*
* repeated string groups = 3;
*/
public Builder addAllGroups(java.lang.Iterable values) {
ensureGroupsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groups_);
onChanged();
return this;
}
/**
*
*
*
* The names of groups this user is a part of.
* +optional
*
*
* repeated string groups = 3;
*/
public Builder clearGroups() {
groups_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*
*
* The names of groups this user is a part of.
* +optional
*
*
* repeated string groups = 3;
*/
public Builder addGroupsBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureGroupsIsMutable();
groups_.add(value);
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, io.kubernetes.client.proto.V1Authentication.ExtraValue>
extra_;
private com.google.protobuf.MapField<
java.lang.String, io.kubernetes.client.proto.V1Authentication.ExtraValue>
internalGetExtra() {
if (extra_ == null) {
return com.google.protobuf.MapField.emptyMapField(ExtraDefaultEntryHolder.defaultEntry);
}
return extra_;
}
private com.google.protobuf.MapField<
java.lang.String, io.kubernetes.client.proto.V1Authentication.ExtraValue>
internalGetMutableExtra() {
onChanged();
;
if (extra_ == null) {
extra_ = com.google.protobuf.MapField.newMapField(ExtraDefaultEntryHolder.defaultEntry);
}
if (!extra_.isMutable()) {
extra_ = extra_.copy();
}
return extra_;
}
public int getExtraCount() {
return internalGetExtra().getMap().size();
}
/**
*
*
*
* Any additional information provided by the authenticator.
* +optional
*
*
* map<string, .k8s.io.api.authentication.v1.ExtraValue> extra = 4;
*/
public boolean containsExtra(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
}
return internalGetExtra().getMap().containsKey(key);
}
/** Use {@link #getExtraMap()} instead. */
@java.lang.Deprecated
public java.util.Map
getExtra() {
return getExtraMap();
}
/**
*
*
*
* Any additional information provided by the authenticator.
* +optional
*
*
* map<string, .k8s.io.api.authentication.v1.ExtraValue> extra = 4;
*/
public java.util.Map
getExtraMap() {
return internalGetExtra().getMap();
}
/**
*
*
*
* Any additional information provided by the authenticator.
* +optional
*
*
* map<string, .k8s.io.api.authentication.v1.ExtraValue> extra = 4;
*/
public io.kubernetes.client.proto.V1Authentication.ExtraValue getExtraOrDefault(
java.lang.String key,
io.kubernetes.client.proto.V1Authentication.ExtraValue defaultValue) {
if (key == null) {
throw new java.lang.NullPointerException();
}
java.util.Map
map = internalGetExtra().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* Any additional information provided by the authenticator.
* +optional
*
*
* map<string, .k8s.io.api.authentication.v1.ExtraValue> extra = 4;
*/
public io.kubernetes.client.proto.V1Authentication.ExtraValue getExtraOrThrow(
java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
}
java.util.Map
map = internalGetExtra().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearExtra() {
internalGetMutableExtra().getMutableMap().clear();
return this;
}
/**
*
*
*
* Any additional information provided by the authenticator.
* +optional
*
*
* map<string, .k8s.io.api.authentication.v1.ExtraValue> extra = 4;
*/
public Builder removeExtra(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
}
internalGetMutableExtra().getMutableMap().remove(key);
return this;
}
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map
getMutableExtra() {
return internalGetMutableExtra().getMutableMap();
}
/**
*
*
*
* Any additional information provided by the authenticator.
* +optional
*
*
* map<string, .k8s.io.api.authentication.v1.ExtraValue> extra = 4;
*/
public Builder putExtra(
java.lang.String key, io.kubernetes.client.proto.V1Authentication.ExtraValue value) {
if (key == null) {
throw new java.lang.NullPointerException();
}
if (value == null) {
throw new java.lang.NullPointerException();
}
internalGetMutableExtra().getMutableMap().put(key, value);
return this;
}
/**
*
*
*
* Any additional information provided by the authenticator.
* +optional
*
*
* map<string, .k8s.io.api.authentication.v1.ExtraValue> extra = 4;
*/
public Builder putAllExtra(
java.util.Map
values) {
internalGetMutableExtra().getMutableMap().putAll(values);
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.authentication.v1.UserInfo)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.authentication.v1.UserInfo)
private static final io.kubernetes.client.proto.V1Authentication.UserInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Authentication.UserInfo();
}
public static io.kubernetes.client.proto.V1Authentication.UserInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UserInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UserInfo(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Authentication.UserInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_k8s_io_api_authentication_v1_BoundObjectReference_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_k8s_io_api_authentication_v1_BoundObjectReference_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_k8s_io_api_authentication_v1_ExtraValue_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_k8s_io_api_authentication_v1_ExtraValue_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_k8s_io_api_authentication_v1_TokenRequest_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_k8s_io_api_authentication_v1_TokenRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_k8s_io_api_authentication_v1_TokenRequestSpec_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_k8s_io_api_authentication_v1_TokenRequestSpec_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_k8s_io_api_authentication_v1_TokenRequestStatus_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_k8s_io_api_authentication_v1_TokenRequestStatus_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_k8s_io_api_authentication_v1_TokenReview_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_k8s_io_api_authentication_v1_TokenReview_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_k8s_io_api_authentication_v1_TokenReviewSpec_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_k8s_io_api_authentication_v1_TokenReviewSpec_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_k8s_io_api_authentication_v1_TokenReviewStatus_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_k8s_io_api_authentication_v1_TokenReviewStatus_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_k8s_io_api_authentication_v1_UserInfo_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_k8s_io_api_authentication_v1_UserInfo_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_k8s_io_api_authentication_v1_UserInfo_ExtraEntry_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_k8s_io_api_authentication_v1_UserInfo_ExtraEntry_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
static {
java.lang.String[] descriptorData = {
"\n,k8s.io/api/authentication/v1/generated"
+ ".proto\022\034k8s.io.api.authentication.v1\0324k8"
+ "s.io/apimachinery/pkg/apis/meta/v1/gener"
+ "ated.proto\032/k8s.io/apimachinery/pkg/runt"
+ "ime/generated.proto\0326k8s.io/apimachinery"
+ "/pkg/runtime/schema/generated.proto\"S\n\024B"
+ "oundObjectReference\022\014\n\004kind\030\001 \001(\t\022\022\n\napi"
+ "Version\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\022\013\n\003uID\030\004 \001(\t"
+ "\"\033\n\nExtraValue\022\r\n\005items\030\001 \003(\t\"\322\001\n\014TokenR"
+ "equest\022B\n\010metadata\030\001 \001(\01320.k8s.io.apimac"
+ "hinery.pkg.apis.meta.v1.ObjectMeta\022<\n\004sp"
+ "ec\030\002 \001(\0132..k8s.io.api.authentication.v1."
+ "TokenRequestSpec\022@\n\006status\030\003 \001(\01320.k8s.i"
+ "o.api.authentication.v1.TokenRequestStat"
+ "us\"\214\001\n\020TokenRequestSpec\022\021\n\taudiences\030\001 \003"
+ "(\t\022\031\n\021expirationSeconds\030\004 \001(\003\022J\n\016boundOb"
+ "jectRef\030\003 \001(\01322.k8s.io.api.authenticatio"
+ "n.v1.BoundObjectReference\"l\n\022TokenReques"
+ "tStatus\022\r\n\005token\030\001 \001(\t\022G\n\023expirationTime"
+ "stamp\030\002 \001(\0132*.k8s.io.apimachinery.pkg.ap"
+ "is.meta.v1.Time\"\317\001\n\013TokenReview\022B\n\010metad"
+ "ata\030\001 \001(\01320.k8s.io.apimachinery.pkg.apis"
+ ".meta.v1.ObjectMeta\022;\n\004spec\030\002 \001(\0132-.k8s."
+ "io.api.authentication.v1.TokenReviewSpec"
+ "\022?\n\006status\030\003 \001(\0132/.k8s.io.api.authentica"
+ "tion.v1.TokenReviewStatus\"3\n\017TokenReview"
+ "Spec\022\r\n\005token\030\001 \001(\t\022\021\n\taudiences\030\002 \003(\t\"\202"
+ "\001\n\021TokenReviewStatus\022\025\n\rauthenticated\030\001 "
+ "\001(\010\0224\n\004user\030\002 \001(\0132&.k8s.io.api.authentic"
+ "ation.v1.UserInfo\022\021\n\taudiences\030\004 \003(\t\022\r\n\005"
+ "error\030\003 \001(\t\"\323\001\n\010UserInfo\022\020\n\010username\030\001 \001"
+ "(\t\022\013\n\003uid\030\002 \001(\t\022\016\n\006groups\030\003 \003(\t\022@\n\005extra"
+ "\030\004 \003(\01321.k8s.io.api.authentication.v1.Us"
+ "erInfo.ExtraEntry\032V\n\nExtraEntry\022\013\n\003key\030\001"
+ " \001(\t\0227\n\005value\030\002 \001(\0132(.k8s.io.api.authent"
+ "ication.v1.ExtraValue:\0028\001B2\n\032io.kubernet"
+ "es.client.protoB\020V1AuthenticationZ\002v1"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
io.kubernetes.client.proto.Meta.getDescriptor(),
io.kubernetes.client.proto.Runtime.getDescriptor(),
io.kubernetes.client.proto.RuntimeSchema.getDescriptor(),
},
assigner);
internal_static_k8s_io_api_authentication_v1_BoundObjectReference_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_k8s_io_api_authentication_v1_BoundObjectReference_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_k8s_io_api_authentication_v1_BoundObjectReference_descriptor,
new java.lang.String[] {
"Kind", "ApiVersion", "Name", "UID",
});
internal_static_k8s_io_api_authentication_v1_ExtraValue_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_k8s_io_api_authentication_v1_ExtraValue_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_k8s_io_api_authentication_v1_ExtraValue_descriptor,
new java.lang.String[] {
"Items",
});
internal_static_k8s_io_api_authentication_v1_TokenRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_k8s_io_api_authentication_v1_TokenRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_k8s_io_api_authentication_v1_TokenRequest_descriptor,
new java.lang.String[] {
"Metadata", "Spec", "Status",
});
internal_static_k8s_io_api_authentication_v1_TokenRequestSpec_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_k8s_io_api_authentication_v1_TokenRequestSpec_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_k8s_io_api_authentication_v1_TokenRequestSpec_descriptor,
new java.lang.String[] {
"Audiences", "ExpirationSeconds", "BoundObjectRef",
});
internal_static_k8s_io_api_authentication_v1_TokenRequestStatus_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_k8s_io_api_authentication_v1_TokenRequestStatus_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_k8s_io_api_authentication_v1_TokenRequestStatus_descriptor,
new java.lang.String[] {
"Token", "ExpirationTimestamp",
});
internal_static_k8s_io_api_authentication_v1_TokenReview_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_k8s_io_api_authentication_v1_TokenReview_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_k8s_io_api_authentication_v1_TokenReview_descriptor,
new java.lang.String[] {
"Metadata", "Spec", "Status",
});
internal_static_k8s_io_api_authentication_v1_TokenReviewSpec_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_k8s_io_api_authentication_v1_TokenReviewSpec_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_k8s_io_api_authentication_v1_TokenReviewSpec_descriptor,
new java.lang.String[] {
"Token", "Audiences",
});
internal_static_k8s_io_api_authentication_v1_TokenReviewStatus_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_k8s_io_api_authentication_v1_TokenReviewStatus_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_k8s_io_api_authentication_v1_TokenReviewStatus_descriptor,
new java.lang.String[] {
"Authenticated", "User", "Audiences", "Error",
});
internal_static_k8s_io_api_authentication_v1_UserInfo_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_k8s_io_api_authentication_v1_UserInfo_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_k8s_io_api_authentication_v1_UserInfo_descriptor,
new java.lang.String[] {
"Username", "Uid", "Groups", "Extra",
});
internal_static_k8s_io_api_authentication_v1_UserInfo_ExtraEntry_descriptor =
internal_static_k8s_io_api_authentication_v1_UserInfo_descriptor.getNestedTypes().get(0);
internal_static_k8s_io_api_authentication_v1_UserInfo_ExtraEntry_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_k8s_io_api_authentication_v1_UserInfo_ExtraEntry_descriptor,
new java.lang.String[] {
"Key", "Value",
});
io.kubernetes.client.proto.Meta.getDescriptor();
io.kubernetes.client.proto.Runtime.getDescriptor();
io.kubernetes.client.proto.RuntimeSchema.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy