Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/generated.proto
package io.kubernetes.client.proto;
public final class V1beta1Apiextensions {
private V1beta1Apiextensions() {}
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 ConversionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* `uid` is an identifier for the individual request/response. It allows us to distinguish instances of requests which are
* otherwise identical (parallel requests, requests when earlier requests did not modify etc)
* The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request.
* It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging.
*
* `uid` is an identifier for the individual request/response. It allows us to distinguish instances of requests which are
* otherwise identical (parallel requests, requests when earlier requests did not modify etc)
* The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request.
* It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging.
*
* `uid` is an identifier for the individual request/response. It allows us to distinguish instances of requests which are
* otherwise identical (parallel requests, requests when earlier requests did not modify etc)
* The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request.
* It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging.
*
* ConversionRequest describes the conversion request parameters.
*
*
* Protobuf type {@code k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionRequest}
*/
public static final class ConversionRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionRequest)
ConversionRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConversionRequest.newBuilder() to construct.
private ConversionRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConversionRequest() {
uid_ = "";
desiredAPIVersion_ = "";
objects_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ConversionRequest(
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;
uid_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
desiredAPIVersion_ = bs;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
objects_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
objects_.add(
input.readMessage(io.kubernetes.client.proto.Runtime.RawExtension.PARSER, extensionRegistry));
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)) {
objects_ = java.util.Collections.unmodifiableList(objects_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1beta1Apiextensions.internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_ConversionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Apiextensions.internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_ConversionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest.class, io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest.Builder.class);
}
private int bitField0_;
public static final int UID_FIELD_NUMBER = 1;
private volatile java.lang.Object uid_;
/**
*
* `uid` is an identifier for the individual request/response. It allows us to distinguish instances of requests which are
* otherwise identical (parallel requests, requests when earlier requests did not modify etc)
* The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request.
* It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging.
*
* `uid` is an identifier for the individual request/response. It allows us to distinguish instances of requests which are
* otherwise identical (parallel requests, requests when earlier requests did not modify etc)
* The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request.
* It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging.
*
* `uid` is an identifier for the individual request/response. It allows us to distinguish instances of requests which are
* otherwise identical (parallel requests, requests when earlier requests did not modify etc)
* The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request.
* It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging.
*
*
* optional string uid = 1;
*/
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 DESIREDAPIVERSION_FIELD_NUMBER = 2;
private volatile java.lang.Object desiredAPIVersion_;
/**
*
* `desiredAPIVersion` is the version to convert given objects to. e.g. "myapi.example.com/v1"
*
* `uid` is an identifier for the individual request/response. It allows us to distinguish instances of requests which are
* otherwise identical (parallel requests, requests when earlier requests did not modify etc)
* The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request.
* It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging.
*
* `uid` is an identifier for the individual request/response. It allows us to distinguish instances of requests which are
* otherwise identical (parallel requests, requests when earlier requests did not modify etc)
* The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request.
* It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging.
*
* `uid` is an identifier for the individual request/response. It allows us to distinguish instances of requests which are
* otherwise identical (parallel requests, requests when earlier requests did not modify etc)
* The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request.
* It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging.
*
* `uid` is an identifier for the individual request/response. It allows us to distinguish instances of requests which are
* otherwise identical (parallel requests, requests when earlier requests did not modify etc)
* The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request.
* It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging.
*
* `uid` is an identifier for the individual request/response. It allows us to distinguish instances of requests which are
* otherwise identical (parallel requests, requests when earlier requests did not modify etc)
* The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request.
* It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging.
*
* `uid` is an identifier for the individual request/response. It allows us to distinguish instances of requests which are
* otherwise identical (parallel requests, requests when earlier requests did not modify etc)
* The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request.
* It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging.
*
* `convertedObjects` is the list of converted version of `request.objects` if the `result` is successful otherwise empty.
* The webhook is expected to set apiVersion of these objects to the ConversionRequest.desiredAPIVersion. The list
* must also has the same size as input list with the same objects in the same order(i.e. equal UIDs and object meta)
*
* `convertedObjects` is the list of converted version of `request.objects` if the `result` is successful otherwise empty.
* The webhook is expected to set apiVersion of these objects to the ConversionRequest.desiredAPIVersion. The list
* must also has the same size as input list with the same objects in the same order(i.e. equal UIDs and object meta)
*
* `convertedObjects` is the list of converted version of `request.objects` if the `result` is successful otherwise empty.
* The webhook is expected to set apiVersion of these objects to the ConversionRequest.desiredAPIVersion. The list
* must also has the same size as input list with the same objects in the same order(i.e. equal UIDs and object meta)
*
* `convertedObjects` is the list of converted version of `request.objects` if the `result` is successful otherwise empty.
* The webhook is expected to set apiVersion of these objects to the ConversionRequest.desiredAPIVersion. The list
* must also has the same size as input list with the same objects in the same order(i.e. equal UIDs and object meta)
*
* `convertedObjects` is the list of converted version of `request.objects` if the `result` is successful otherwise empty.
* The webhook is expected to set apiVersion of these objects to the ConversionRequest.desiredAPIVersion. The list
* must also has the same size as input list with the same objects in the same order(i.e. equal UIDs and object meta)
*
* `result` contains the result of conversion with extra details if the conversion failed. `result.status` determines if
* the conversion failed or succeeded. The `result.status` field is required and represent the success or failure of the
* conversion. A successful conversion must set `result.status` to `Success`. A failed conversion must set
* `result.status` to `Failure` and provide more details in `result.message` and return http status 200. The `result.message`
* will be used to construct an error message for the end user.
*
* `result` contains the result of conversion with extra details if the conversion failed. `result.status` determines if
* the conversion failed or succeeded. The `result.status` field is required and represent the success or failure of the
* conversion. A successful conversion must set `result.status` to `Success`. A failed conversion must set
* `result.status` to `Failure` and provide more details in `result.message` and return http status 200. The `result.message`
* will be used to construct an error message for the end user.
*
* `result` contains the result of conversion with extra details if the conversion failed. `result.status` determines if
* the conversion failed or succeeded. The `result.status` field is required and represent the success or failure of the
* conversion. A successful conversion must set `result.status` to `Success`. A failed conversion must set
* `result.status` to `Failure` and provide more details in `result.message` and return http status 200. The `result.message`
* will be used to construct an error message for the end user.
*
* `uid` is an identifier for the individual request/response.
* This should be copied over from the corresponding AdmissionRequest.
*
*
* optional string uid = 1;
*/
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 CONVERTEDOBJECTS_FIELD_NUMBER = 2;
private java.util.List convertedObjects_;
/**
*
* `convertedObjects` is the list of converted version of `request.objects` if the `result` is successful otherwise empty.
* The webhook is expected to set apiVersion of these objects to the ConversionRequest.desiredAPIVersion. The list
* must also has the same size as input list with the same objects in the same order(i.e. equal UIDs and object meta)
*
* `convertedObjects` is the list of converted version of `request.objects` if the `result` is successful otherwise empty.
* The webhook is expected to set apiVersion of these objects to the ConversionRequest.desiredAPIVersion. The list
* must also has the same size as input list with the same objects in the same order(i.e. equal UIDs and object meta)
*
* `convertedObjects` is the list of converted version of `request.objects` if the `result` is successful otherwise empty.
* The webhook is expected to set apiVersion of these objects to the ConversionRequest.desiredAPIVersion. The list
* must also has the same size as input list with the same objects in the same order(i.e. equal UIDs and object meta)
*
*
* repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2;
*/
public int getConvertedObjectsCount() {
return convertedObjects_.size();
}
/**
*
* `convertedObjects` is the list of converted version of `request.objects` if the `result` is successful otherwise empty.
* The webhook is expected to set apiVersion of these objects to the ConversionRequest.desiredAPIVersion. The list
* must also has the same size as input list with the same objects in the same order(i.e. equal UIDs and object meta)
*
* `convertedObjects` is the list of converted version of `request.objects` if the `result` is successful otherwise empty.
* The webhook is expected to set apiVersion of these objects to the ConversionRequest.desiredAPIVersion. The list
* must also has the same size as input list with the same objects in the same order(i.e. equal UIDs and object meta)
*
*
* repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2;
*/
public io.kubernetes.client.proto.Runtime.RawExtensionOrBuilder getConvertedObjectsOrBuilder(
int index) {
return convertedObjects_.get(index);
}
public static final int RESULT_FIELD_NUMBER = 3;
private io.kubernetes.client.proto.Meta.Status result_;
/**
*
* `result` contains the result of conversion with extra details if the conversion failed. `result.status` determines if
* the conversion failed or succeeded. The `result.status` field is required and represent the success or failure of the
* conversion. A successful conversion must set `result.status` to `Success`. A failed conversion must set
* `result.status` to `Failure` and provide more details in `result.message` and return http status 200. The `result.message`
* will be used to construct an error message for the end user.
*
* `result` contains the result of conversion with extra details if the conversion failed. `result.status` determines if
* the conversion failed or succeeded. The `result.status` field is required and represent the success or failure of the
* conversion. A successful conversion must set `result.status` to `Success`. A failed conversion must set
* `result.status` to `Failure` and provide more details in `result.message` and return http status 200. The `result.message`
* will be used to construct an error message for the end user.
*
* `result` contains the result of conversion with extra details if the conversion failed. `result.status` determines if
* the conversion failed or succeeded. The `result.status` field is required and represent the success or failure of the
* conversion. A successful conversion must set `result.status` to `Success`. A failed conversion must set
* `result.status` to `Failure` and provide more details in `result.message` and return http status 200. The `result.message`
* will be used to construct an error message for the end user.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status result = 3;
*/
public io.kubernetes.client.proto.Meta.StatusOrBuilder getResultOrBuilder() {
return result_ == null ? io.kubernetes.client.proto.Meta.Status.getDefaultInstance() : result_;
}
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, uid_);
}
for (int i = 0; i < convertedObjects_.size(); i++) {
output.writeMessage(2, convertedObjects_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(3, getResult());
}
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, uid_);
}
for (int i = 0; i < convertedObjects_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, convertedObjects_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getResult());
}
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.V1beta1Apiextensions.ConversionResponse)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse other = (io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse) obj;
boolean result = true;
result = result && (hasUid() == other.hasUid());
if (hasUid()) {
result = result && getUid()
.equals(other.getUid());
}
result = result && getConvertedObjectsList()
.equals(other.getConvertedObjectsList());
result = result && (hasResult() == other.hasResult());
if (hasResult()) {
result = result && getResult()
.equals(other.getResult());
}
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 (hasUid()) {
hash = (37 * hash) + UID_FIELD_NUMBER;
hash = (53 * hash) + getUid().hashCode();
}
if (getConvertedObjectsCount() > 0) {
hash = (37 * hash) + CONVERTEDOBJECTS_FIELD_NUMBER;
hash = (53 * hash) + getConvertedObjectsList().hashCode();
}
if (hasResult()) {
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + getResult().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse 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.V1beta1Apiextensions.ConversionResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse 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.V1beta1Apiextensions.ConversionResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse 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.V1beta1Apiextensions.ConversionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse 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.V1beta1Apiextensions.ConversionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse 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.V1beta1Apiextensions.ConversionResponse 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;
}
/**
*
* ConversionResponse describes a conversion response.
*
* `convertedObjects` is the list of converted version of `request.objects` if the `result` is successful otherwise empty.
* The webhook is expected to set apiVersion of these objects to the ConversionRequest.desiredAPIVersion. The list
* must also has the same size as input list with the same objects in the same order(i.e. equal UIDs and object meta)
*
* `convertedObjects` is the list of converted version of `request.objects` if the `result` is successful otherwise empty.
* The webhook is expected to set apiVersion of these objects to the ConversionRequest.desiredAPIVersion. The list
* must also has the same size as input list with the same objects in the same order(i.e. equal UIDs and object meta)
*
*
* repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2;
*/
public int getConvertedObjectsCount() {
if (convertedObjectsBuilder_ == null) {
return convertedObjects_.size();
} else {
return convertedObjectsBuilder_.getCount();
}
}
/**
*
* `convertedObjects` is the list of converted version of `request.objects` if the `result` is successful otherwise empty.
* The webhook is expected to set apiVersion of these objects to the ConversionRequest.desiredAPIVersion. The list
* must also has the same size as input list with the same objects in the same order(i.e. equal UIDs and object meta)
*
* `convertedObjects` is the list of converted version of `request.objects` if the `result` is successful otherwise empty.
* The webhook is expected to set apiVersion of these objects to the ConversionRequest.desiredAPIVersion. The list
* must also has the same size as input list with the same objects in the same order(i.e. equal UIDs and object meta)
*
*
* repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2;
*/
public Builder setConvertedObjects(
int index, io.kubernetes.client.proto.Runtime.RawExtension value) {
if (convertedObjectsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConvertedObjectsIsMutable();
convertedObjects_.set(index, value);
onChanged();
} else {
convertedObjectsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* `convertedObjects` is the list of converted version of `request.objects` if the `result` is successful otherwise empty.
* The webhook is expected to set apiVersion of these objects to the ConversionRequest.desiredAPIVersion. The list
* must also has the same size as input list with the same objects in the same order(i.e. equal UIDs and object meta)
*
* `convertedObjects` is the list of converted version of `request.objects` if the `result` is successful otherwise empty.
* The webhook is expected to set apiVersion of these objects to the ConversionRequest.desiredAPIVersion. The list
* must also has the same size as input list with the same objects in the same order(i.e. equal UIDs and object meta)
*
*
* repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2;
*/
public Builder addConvertedObjects(io.kubernetes.client.proto.Runtime.RawExtension value) {
if (convertedObjectsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConvertedObjectsIsMutable();
convertedObjects_.add(value);
onChanged();
} else {
convertedObjectsBuilder_.addMessage(value);
}
return this;
}
/**
*
* `convertedObjects` is the list of converted version of `request.objects` if the `result` is successful otherwise empty.
* The webhook is expected to set apiVersion of these objects to the ConversionRequest.desiredAPIVersion. The list
* must also has the same size as input list with the same objects in the same order(i.e. equal UIDs and object meta)
*
*
* repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2;
*/
public Builder addConvertedObjects(
int index, io.kubernetes.client.proto.Runtime.RawExtension value) {
if (convertedObjectsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConvertedObjectsIsMutable();
convertedObjects_.add(index, value);
onChanged();
} else {
convertedObjectsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* `convertedObjects` is the list of converted version of `request.objects` if the `result` is successful otherwise empty.
* The webhook is expected to set apiVersion of these objects to the ConversionRequest.desiredAPIVersion. The list
* must also has the same size as input list with the same objects in the same order(i.e. equal UIDs and object meta)
*
* `convertedObjects` is the list of converted version of `request.objects` if the `result` is successful otherwise empty.
* The webhook is expected to set apiVersion of these objects to the ConversionRequest.desiredAPIVersion. The list
* must also has the same size as input list with the same objects in the same order(i.e. equal UIDs and object meta)
*
* `convertedObjects` is the list of converted version of `request.objects` if the `result` is successful otherwise empty.
* The webhook is expected to set apiVersion of these objects to the ConversionRequest.desiredAPIVersion. The list
* must also has the same size as input list with the same objects in the same order(i.e. equal UIDs and object meta)
*
* `convertedObjects` is the list of converted version of `request.objects` if the `result` is successful otherwise empty.
* The webhook is expected to set apiVersion of these objects to the ConversionRequest.desiredAPIVersion. The list
* must also has the same size as input list with the same objects in the same order(i.e. equal UIDs and object meta)
*
* `convertedObjects` is the list of converted version of `request.objects` if the `result` is successful otherwise empty.
* The webhook is expected to set apiVersion of these objects to the ConversionRequest.desiredAPIVersion. The list
* must also has the same size as input list with the same objects in the same order(i.e. equal UIDs and object meta)
*
* `convertedObjects` is the list of converted version of `request.objects` if the `result` is successful otherwise empty.
* The webhook is expected to set apiVersion of these objects to the ConversionRequest.desiredAPIVersion. The list
* must also has the same size as input list with the same objects in the same order(i.e. equal UIDs and object meta)
*
*
* repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2;
*/
public io.kubernetes.client.proto.Runtime.RawExtension.Builder getConvertedObjectsBuilder(
int index) {
return getConvertedObjectsFieldBuilder().getBuilder(index);
}
/**
*
* `convertedObjects` is the list of converted version of `request.objects` if the `result` is successful otherwise empty.
* The webhook is expected to set apiVersion of these objects to the ConversionRequest.desiredAPIVersion. The list
* must also has the same size as input list with the same objects in the same order(i.e. equal UIDs and object meta)
*
*
* repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2;
*/
public io.kubernetes.client.proto.Runtime.RawExtensionOrBuilder getConvertedObjectsOrBuilder(
int index) {
if (convertedObjectsBuilder_ == null) {
return convertedObjects_.get(index); } else {
return convertedObjectsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* `convertedObjects` is the list of converted version of `request.objects` if the `result` is successful otherwise empty.
* The webhook is expected to set apiVersion of these objects to the ConversionRequest.desiredAPIVersion. The list
* must also has the same size as input list with the same objects in the same order(i.e. equal UIDs and object meta)
*
* `convertedObjects` is the list of converted version of `request.objects` if the `result` is successful otherwise empty.
* The webhook is expected to set apiVersion of these objects to the ConversionRequest.desiredAPIVersion. The list
* must also has the same size as input list with the same objects in the same order(i.e. equal UIDs and object meta)
*
* `convertedObjects` is the list of converted version of `request.objects` if the `result` is successful otherwise empty.
* The webhook is expected to set apiVersion of these objects to the ConversionRequest.desiredAPIVersion. The list
* must also has the same size as input list with the same objects in the same order(i.e. equal UIDs and object meta)
*
* `convertedObjects` is the list of converted version of `request.objects` if the `result` is successful otherwise empty.
* The webhook is expected to set apiVersion of these objects to the ConversionRequest.desiredAPIVersion. The list
* must also has the same size as input list with the same objects in the same order(i.e. equal UIDs and object meta)
*
* `result` contains the result of conversion with extra details if the conversion failed. `result.status` determines if
* the conversion failed or succeeded. The `result.status` field is required and represent the success or failure of the
* conversion. A successful conversion must set `result.status` to `Success`. A failed conversion must set
* `result.status` to `Failure` and provide more details in `result.message` and return http status 200. The `result.message`
* will be used to construct an error message for the end user.
*
* `result` contains the result of conversion with extra details if the conversion failed. `result.status` determines if
* the conversion failed or succeeded. The `result.status` field is required and represent the success or failure of the
* conversion. A successful conversion must set `result.status` to `Success`. A failed conversion must set
* `result.status` to `Failure` and provide more details in `result.message` and return http status 200. The `result.message`
* will be used to construct an error message for the end user.
*
* `result` contains the result of conversion with extra details if the conversion failed. `result.status` determines if
* the conversion failed or succeeded. The `result.status` field is required and represent the success or failure of the
* conversion. A successful conversion must set `result.status` to `Success`. A failed conversion must set
* `result.status` to `Failure` and provide more details in `result.message` and return http status 200. The `result.message`
* will be used to construct an error message for the end user.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status result = 3;
*/
public Builder setResult(io.kubernetes.client.proto.Meta.Status value) {
if (resultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
result_ = value;
onChanged();
} else {
resultBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
* `result` contains the result of conversion with extra details if the conversion failed. `result.status` determines if
* the conversion failed or succeeded. The `result.status` field is required and represent the success or failure of the
* conversion. A successful conversion must set `result.status` to `Success`. A failed conversion must set
* `result.status` to `Failure` and provide more details in `result.message` and return http status 200. The `result.message`
* will be used to construct an error message for the end user.
*
* `result` contains the result of conversion with extra details if the conversion failed. `result.status` determines if
* the conversion failed or succeeded. The `result.status` field is required and represent the success or failure of the
* conversion. A successful conversion must set `result.status` to `Success`. A failed conversion must set
* `result.status` to `Failure` and provide more details in `result.message` and return http status 200. The `result.message`
* will be used to construct an error message for the end user.
*
* `result` contains the result of conversion with extra details if the conversion failed. `result.status` determines if
* the conversion failed or succeeded. The `result.status` field is required and represent the success or failure of the
* conversion. A successful conversion must set `result.status` to `Success`. A failed conversion must set
* `result.status` to `Failure` and provide more details in `result.message` and return http status 200. The `result.message`
* will be used to construct an error message for the end user.
*
* `result` contains the result of conversion with extra details if the conversion failed. `result.status` determines if
* the conversion failed or succeeded. The `result.status` field is required and represent the success or failure of the
* conversion. A successful conversion must set `result.status` to `Success`. A failed conversion must set
* `result.status` to `Failure` and provide more details in `result.message` and return http status 200. The `result.message`
* will be used to construct an error message for the end user.
*
* `result` contains the result of conversion with extra details if the conversion failed. `result.status` determines if
* the conversion failed or succeeded. The `result.status` field is required and represent the success or failure of the
* conversion. A successful conversion must set `result.status` to `Success`. A failed conversion must set
* `result.status` to `Failure` and provide more details in `result.message` and return http status 200. The `result.message`
* will be used to construct an error message for the end user.
*
* `result` contains the result of conversion with extra details if the conversion failed. `result.status` determines if
* the conversion failed or succeeded. The `result.status` field is required and represent the success or failure of the
* conversion. A successful conversion must set `result.status` to `Success`. A failed conversion must set
* `result.status` to `Failure` and provide more details in `result.message` and return http status 200. The `result.message`
* will be used to construct an error message for the end user.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status result = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.Status, io.kubernetes.client.proto.Meta.Status.Builder, io.kubernetes.client.proto.Meta.StatusOrBuilder>
getResultFieldBuilder() {
if (resultBuilder_ == null) {
resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.Status, io.kubernetes.client.proto.Meta.Status.Builder, io.kubernetes.client.proto.Meta.StatusOrBuilder>(
getResult(),
getParentForChildren(),
isClean());
result_ = null;
}
return resultBuilder_;
}
@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.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionResponse)
}
// @@protoc_insertion_point(class_scope:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionResponse)
private static final io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse();
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ConversionResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConversionResponse(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.V1beta1Apiextensions.ConversionResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConversionReviewOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionReview)
com.google.protobuf.MessageOrBuilder {
/**
*
* `request` describes the attributes for the conversion request.
* +optional
*
* type is an OpenAPI type definition for this column.
* See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.
*
* type is an OpenAPI type definition for this column.
* See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.
*
* type is an OpenAPI type definition for this column.
* See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.
*
* format is an optional OpenAPI type definition for this column. The 'name' format is applied
* to the primary identifier column to assist in clients identifying column is the resource name.
* See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.
* +optional
*
* format is an optional OpenAPI type definition for this column. The 'name' format is applied
* to the primary identifier column to assist in clients identifying column is the resource name.
* See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.
* +optional
*
* format is an optional OpenAPI type definition for this column. The 'name' format is applied
* to the primary identifier column to assist in clients identifying column is the resource name.
* See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.
* +optional
*
* priority is an integer defining the relative importance of this column compared to others. Lower
* numbers are considered higher priority. Columns that may be omitted in limited space scenarios
* should be given a higher priority.
* +optional
*
* priority is an integer defining the relative importance of this column compared to others. Lower
* numbers are considered higher priority. Columns that may be omitted in limited space scenarios
* should be given a higher priority.
* +optional
*
*
* optional string name = 1;
*/
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 is a human readable name for the column.
*
*
* optional string name = 1;
*/
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 TYPE_FIELD_NUMBER = 2;
private volatile java.lang.Object type_;
/**
*
* type is an OpenAPI type definition for this column.
* See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.
*
* type is an OpenAPI type definition for this column.
* See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.
*
*
* optional string type = 2;
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
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()) {
type_ = s;
}
return s;
}
}
/**
*
* type is an OpenAPI type definition for this column.
* See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.
*
*
* optional string type = 2;
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FORMAT_FIELD_NUMBER = 3;
private volatile java.lang.Object format_;
/**
*
* format is an optional OpenAPI type definition for this column. The 'name' format is applied
* to the primary identifier column to assist in clients identifying column is the resource name.
* See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.
* +optional
*
* format is an optional OpenAPI type definition for this column. The 'name' format is applied
* to the primary identifier column to assist in clients identifying column is the resource name.
* See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.
* +optional
*
*
* optional string format = 3;
*/
public java.lang.String getFormat() {
java.lang.Object ref = format_;
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()) {
format_ = s;
}
return s;
}
}
/**
*
* format is an optional OpenAPI type definition for this column. The 'name' format is applied
* to the primary identifier column to assist in clients identifying column is the resource name.
* See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.
* +optional
*
*
* optional string format = 3;
*/
public com.google.protobuf.ByteString
getFormatBytes() {
java.lang.Object ref = format_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
format_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 4;
private volatile java.lang.Object description_;
/**
*
* description is a human readable description of this column.
* +optional
*
* description is a human readable description of this column.
* +optional
*
*
* optional string description = 4;
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PRIORITY_FIELD_NUMBER = 5;
private int priority_;
/**
*
* priority is an integer defining the relative importance of this column compared to others. Lower
* numbers are considered higher priority. Columns that may be omitted in limited space scenarios
* should be given a higher priority.
* +optional
*
* priority is an integer defining the relative importance of this column compared to others. Lower
* numbers are considered higher priority. Columns that may be omitted in limited space scenarios
* should be given a higher priority.
* +optional
*
*
* optional int32 priority = 5;
*/
public int getPriority() {
return priority_;
}
public static final int JSONPATH_FIELD_NUMBER = 6;
private volatile java.lang.Object jSONPath_;
/**
*
* JSONPath is a simple JSON path, i.e. with array notation.
*
*
* optional string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
private java.lang.Object type_ = "";
/**
*
* type is an OpenAPI type definition for this column.
* See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.
*
* type is an OpenAPI type definition for this column.
* See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.
*
*
* optional string type = 2;
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
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()) {
type_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* type is an OpenAPI type definition for this column.
* See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.
*
* type is an OpenAPI type definition for this column.
* See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.
*
*
* optional string type = 2;
*/
public Builder setType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
type_ = value;
onChanged();
return this;
}
/**
*
* type is an OpenAPI type definition for this column.
* See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.
*
* type is an OpenAPI type definition for this column.
* See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.
*
*
* optional string type = 2;
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
type_ = value;
onChanged();
return this;
}
private java.lang.Object format_ = "";
/**
*
* format is an optional OpenAPI type definition for this column. The 'name' format is applied
* to the primary identifier column to assist in clients identifying column is the resource name.
* See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.
* +optional
*
* format is an optional OpenAPI type definition for this column. The 'name' format is applied
* to the primary identifier column to assist in clients identifying column is the resource name.
* See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.
* +optional
*
*
* optional string format = 3;
*/
public java.lang.String getFormat() {
java.lang.Object ref = format_;
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()) {
format_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* format is an optional OpenAPI type definition for this column. The 'name' format is applied
* to the primary identifier column to assist in clients identifying column is the resource name.
* See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.
* +optional
*
* format is an optional OpenAPI type definition for this column. The 'name' format is applied
* to the primary identifier column to assist in clients identifying column is the resource name.
* See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.
* +optional
*
*
* optional string format = 3;
*/
public Builder setFormat(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
format_ = value;
onChanged();
return this;
}
/**
*
* format is an optional OpenAPI type definition for this column. The 'name' format is applied
* to the primary identifier column to assist in clients identifying column is the resource name.
* See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.
* +optional
*
* format is an optional OpenAPI type definition for this column. The 'name' format is applied
* to the primary identifier column to assist in clients identifying column is the resource name.
* See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.
* +optional
*
*
* optional string format = 3;
*/
public Builder setFormatBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
format_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* description is a human readable description of this column.
* +optional
*
* description is a human readable description of this column.
* +optional
*
*
* optional string description = 4;
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
description_ = value;
onChanged();
return this;
}
private int priority_ ;
/**
*
* priority is an integer defining the relative importance of this column compared to others. Lower
* numbers are considered higher priority. Columns that may be omitted in limited space scenarios
* should be given a higher priority.
* +optional
*
* priority is an integer defining the relative importance of this column compared to others. Lower
* numbers are considered higher priority. Columns that may be omitted in limited space scenarios
* should be given a higher priority.
* +optional
*
*
* optional int32 priority = 5;
*/
public int getPriority() {
return priority_;
}
/**
*
* priority is an integer defining the relative importance of this column compared to others. Lower
* numbers are considered higher priority. Columns that may be omitted in limited space scenarios
* should be given a higher priority.
* +optional
*
* priority is an integer defining the relative importance of this column compared to others. Lower
* numbers are considered higher priority. Columns that may be omitted in limited space scenarios
* should be given a higher priority.
* +optional
*
* JSONPath is a simple JSON path, i.e. with array notation.
*
*
* optional string JSONPath = 6;
*/
public Builder setJSONPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
jSONPath_ = 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.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition)
}
// @@protoc_insertion_point(class_scope:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition)
private static final io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition();
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CustomResourceColumnDefinition parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CustomResourceColumnDefinition(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.V1beta1Apiextensions.CustomResourceColumnDefinition getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CustomResourceConversionOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceConversion)
com.google.protobuf.MessageOrBuilder {
/**
*
* `strategy` specifies the conversion strategy. Allowed values are:
* - `None`: The converter only change the apiVersion and would not touch any other field in the CR.
* - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option.
*
* `strategy` specifies the conversion strategy. Allowed values are:
* - `None`: The converter only change the apiVersion and would not touch any other field in the CR.
* - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option.
*
* `strategy` specifies the conversion strategy. Allowed values are:
* - `None`: The converter only change the apiVersion and would not touch any other field in the CR.
* - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option.
*
* `webhookClientConfig` is the instructions for how to call the webhook if strategy is `Webhook`. This field is
* alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* `webhookClientConfig` is the instructions for how to call the webhook if strategy is `Webhook`. This field is
* alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* `webhookClientConfig` is the instructions for how to call the webhook if strategy is `Webhook`. This field is
* alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* CustomResourceConversion describes how to convert different versions of a CR.
*
*
* Protobuf type {@code k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceConversion}
*/
public static final class CustomResourceConversion extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceConversion)
CustomResourceConversionOrBuilder {
private static final long serialVersionUID = 0L;
// Use CustomResourceConversion.newBuilder() to construct.
private CustomResourceConversion(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CustomResourceConversion() {
strategy_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CustomResourceConversion(
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;
strategy_ = bs;
break;
}
case 18: {
io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = webhookClientConfig_.toBuilder();
}
webhookClientConfig_ = input.readMessage(io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(webhookClientConfig_);
webhookClientConfig_ = 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.V1beta1Apiextensions.internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceConversion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Apiextensions.internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceConversion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion.class, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion.Builder.class);
}
private int bitField0_;
public static final int STRATEGY_FIELD_NUMBER = 1;
private volatile java.lang.Object strategy_;
/**
*
* `strategy` specifies the conversion strategy. Allowed values are:
* - `None`: The converter only change the apiVersion and would not touch any other field in the CR.
* - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option.
*
* `strategy` specifies the conversion strategy. Allowed values are:
* - `None`: The converter only change the apiVersion and would not touch any other field in the CR.
* - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option.
*
* `strategy` specifies the conversion strategy. Allowed values are:
* - `None`: The converter only change the apiVersion and would not touch any other field in the CR.
* - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option.
*
*
* optional string strategy = 1;
*/
public com.google.protobuf.ByteString
getStrategyBytes() {
java.lang.Object ref = strategy_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
strategy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int WEBHOOKCLIENTCONFIG_FIELD_NUMBER = 2;
private io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig webhookClientConfig_;
/**
*
* `webhookClientConfig` is the instructions for how to call the webhook if strategy is `Webhook`. This field is
* alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* `webhookClientConfig` is the instructions for how to call the webhook if strategy is `Webhook`. This field is
* alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* `webhookClientConfig` is the instructions for how to call the webhook if strategy is `Webhook`. This field is
* alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
*
* optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.WebhookClientConfig webhookClientConfig = 2;
*/
public io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfigOrBuilder getWebhookClientConfigOrBuilder() {
return webhookClientConfig_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig.getDefaultInstance() : webhookClientConfig_;
}
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, strategy_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getWebhookClientConfig());
}
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, strategy_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getWebhookClientConfig());
}
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.V1beta1Apiextensions.CustomResourceConversion)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion other = (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion) obj;
boolean result = true;
result = result && (hasStrategy() == other.hasStrategy());
if (hasStrategy()) {
result = result && getStrategy()
.equals(other.getStrategy());
}
result = result && (hasWebhookClientConfig() == other.hasWebhookClientConfig());
if (hasWebhookClientConfig()) {
result = result && getWebhookClientConfig()
.equals(other.getWebhookClientConfig());
}
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 (hasStrategy()) {
hash = (37 * hash) + STRATEGY_FIELD_NUMBER;
hash = (53 * hash) + getStrategy().hashCode();
}
if (hasWebhookClientConfig()) {
hash = (37 * hash) + WEBHOOKCLIENTCONFIG_FIELD_NUMBER;
hash = (53 * hash) + getWebhookClientConfig().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion 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.V1beta1Apiextensions.CustomResourceConversion parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion 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.V1beta1Apiextensions.CustomResourceConversion parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion 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.V1beta1Apiextensions.CustomResourceConversion parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion 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.V1beta1Apiextensions.CustomResourceConversion parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion 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.V1beta1Apiextensions.CustomResourceConversion 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;
}
/**
*
* CustomResourceConversion describes how to convert different versions of a CR.
*
*
* Protobuf type {@code k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceConversion}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceConversion)
io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1beta1Apiextensions.internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceConversion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Apiextensions.internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceConversion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion.class, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getWebhookClientConfigFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
strategy_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (webhookClientConfigBuilder_ == null) {
webhookClientConfig_ = null;
} else {
webhookClientConfigBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1beta1Apiextensions.internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceConversion_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion build() {
io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion buildPartial() {
io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion result = new io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.strategy_ = strategy_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (webhookClientConfigBuilder_ == null) {
result.webhookClientConfig_ = webhookClientConfig_;
} else {
result.webhookClientConfig_ = webhookClientConfigBuilder_.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.V1beta1Apiextensions.CustomResourceConversion) {
return mergeFrom((io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion other) {
if (other == io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion.getDefaultInstance()) return this;
if (other.hasStrategy()) {
bitField0_ |= 0x00000001;
strategy_ = other.strategy_;
onChanged();
}
if (other.hasWebhookClientConfig()) {
mergeWebhookClientConfig(other.getWebhookClientConfig());
}
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.V1beta1Apiextensions.CustomResourceConversion parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object strategy_ = "";
/**
*
* `strategy` specifies the conversion strategy. Allowed values are:
* - `None`: The converter only change the apiVersion and would not touch any other field in the CR.
* - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option.
*
* `strategy` specifies the conversion strategy. Allowed values are:
* - `None`: The converter only change the apiVersion and would not touch any other field in the CR.
* - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option.
*
* `strategy` specifies the conversion strategy. Allowed values are:
* - `None`: The converter only change the apiVersion and would not touch any other field in the CR.
* - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option.
*
* `strategy` specifies the conversion strategy. Allowed values are:
* - `None`: The converter only change the apiVersion and would not touch any other field in the CR.
* - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option.
*
* `strategy` specifies the conversion strategy. Allowed values are:
* - `None`: The converter only change the apiVersion and would not touch any other field in the CR.
* - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option.
*
* `strategy` specifies the conversion strategy. Allowed values are:
* - `None`: The converter only change the apiVersion and would not touch any other field in the CR.
* - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option.
*
* `webhookClientConfig` is the instructions for how to call the webhook if strategy is `Webhook`. This field is
* alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* `webhookClientConfig` is the instructions for how to call the webhook if strategy is `Webhook`. This field is
* alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* `webhookClientConfig` is the instructions for how to call the webhook if strategy is `Webhook`. This field is
* alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* `webhookClientConfig` is the instructions for how to call the webhook if strategy is `Webhook`. This field is
* alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* `webhookClientConfig` is the instructions for how to call the webhook if strategy is `Webhook`. This field is
* alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* `webhookClientConfig` is the instructions for how to call the webhook if strategy is `Webhook`. This field is
* alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* `webhookClientConfig` is the instructions for how to call the webhook if strategy is `Webhook`. This field is
* alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* `webhookClientConfig` is the instructions for how to call the webhook if strategy is `Webhook`. This field is
* alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* `webhookClientConfig` is the instructions for how to call the webhook if strategy is `Webhook`. This field is
* alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
*
* optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.WebhookClientConfig webhookClientConfig = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig, io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfigOrBuilder>
getWebhookClientConfigFieldBuilder() {
if (webhookClientConfigBuilder_ == null) {
webhookClientConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig, io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfigOrBuilder>(
getWebhookClientConfig(),
getParentForChildren(),
isClean());
webhookClientConfig_ = null;
}
return webhookClientConfigBuilder_;
}
@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.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceConversion)
}
// @@protoc_insertion_point(class_scope:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceConversion)
private static final io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion();
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CustomResourceConversion parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CustomResourceConversion(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.V1beta1Apiextensions.CustomResourceConversion getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CustomResourceDefinitionOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition)
com.google.protobuf.MessageOrBuilder {
/**
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
boolean hasMetadata();
/**
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
io.kubernetes.client.proto.Meta.ObjectMeta getMetadata();
/**
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder();
/**
*
* Spec describes how the user wants the resources to appear
*
* CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format
* <.spec.name>.<.spec.group>.
*
*
* Protobuf type {@code k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition}
*/
public static final class CustomResourceDefinition extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition)
CustomResourceDefinitionOrBuilder {
private static final long serialVersionUID = 0L;
// Use CustomResourceDefinition.newBuilder() to construct.
private CustomResourceDefinition(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CustomResourceDefinition() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CustomResourceDefinition(
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.V1beta1Apiextensions.CustomResourceDefinitionSpec.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = spec_.toBuilder();
}
spec_ = input.readMessage(io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(spec_);
spec_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = status_.toBuilder();
}
status_ = input.readMessage(io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus.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.V1beta1Apiextensions.internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Apiextensions.internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition.class, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition.Builder.class);
}
private int bitField0_;
public static final int METADATA_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.Meta.ObjectMeta metadata_;
/**
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* 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_;
}
/**
* 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.V1beta1Apiextensions.CustomResourceDefinitionSpec spec_;
/**
*
* Spec describes how the user wants the resources to appear
*
* Status indicates the actual state of the CustomResourceDefinition
* +optional
*
*
* optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionStatus status = 3;
*/
public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatusOrBuilder getStatusOrBuilder() {
return status_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus.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.V1beta1Apiextensions.CustomResourceDefinition)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition other = (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition) 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.V1beta1Apiextensions.CustomResourceDefinition parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition 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.V1beta1Apiextensions.CustomResourceDefinition parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition 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.V1beta1Apiextensions.CustomResourceDefinition parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition 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.V1beta1Apiextensions.CustomResourceDefinition parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition 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.V1beta1Apiextensions.CustomResourceDefinition parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition 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.V1beta1Apiextensions.CustomResourceDefinition 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;
}
/**
*
* CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format
* <.spec.name>.<.spec.group>.
*
*
* repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition items = 2;
*/
public java.util.List
getItemsBuilderList() {
return getItemsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionOrBuilder>
getItemsFieldBuilder() {
if (itemsBuilder_ == null) {
itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionOrBuilder>(
items_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
items_ = null;
}
return itemsBuilder_;
}
@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.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionList)
}
// @@protoc_insertion_point(class_scope:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionList)
private static final io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionList();
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CustomResourceDefinitionList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CustomResourceDefinitionList(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.V1beta1Apiextensions.CustomResourceDefinitionList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CustomResourceDefinitionNamesOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames)
com.google.protobuf.MessageOrBuilder {
/**
*
* Plural is the plural name of the resource to serve. It must match the name of the CustomResourceDefinition-registration
* too: plural.group and it must be all lowercase.
*
* Plural is the plural name of the resource to serve. It must match the name of the CustomResourceDefinition-registration
* too: plural.group and it must be all lowercase.
*
* Plural is the plural name of the resource to serve. It must match the name of the CustomResourceDefinition-registration
* too: plural.group and it must be all lowercase.
*
* CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition
*
*
* Protobuf type {@code k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames}
*/
public static final class CustomResourceDefinitionNames extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames)
CustomResourceDefinitionNamesOrBuilder {
private static final long serialVersionUID = 0L;
// Use CustomResourceDefinitionNames.newBuilder() to construct.
private CustomResourceDefinitionNames(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CustomResourceDefinitionNames() {
plural_ = "";
singular_ = "";
shortNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
kind_ = "";
listKind_ = "";
categories_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CustomResourceDefinitionNames(
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;
plural_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
singular_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
shortNames_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
shortNames_.add(bs);
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
kind_ = bs;
break;
}
case 42: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
listKind_ = bs;
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
categories_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000020;
}
categories_.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)) {
shortNames_ = shortNames_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
categories_ = categories_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1beta1Apiextensions.internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionNames_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Apiextensions.internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionNames_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames.class, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames.Builder.class);
}
private int bitField0_;
public static final int PLURAL_FIELD_NUMBER = 1;
private volatile java.lang.Object plural_;
/**
*
* Plural is the plural name of the resource to serve. It must match the name of the CustomResourceDefinition-registration
* too: plural.group and it must be all lowercase.
*
* Plural is the plural name of the resource to serve. It must match the name of the CustomResourceDefinition-registration
* too: plural.group and it must be all lowercase.
*
* Plural is the plural name of the resource to serve. It must match the name of the CustomResourceDefinition-registration
* too: plural.group and it must be all lowercase.
*
*
* optional string plural = 1;
*/
public com.google.protobuf.ByteString
getPluralBytes() {
java.lang.Object ref = plural_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
plural_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SINGULAR_FIELD_NUMBER = 2;
private volatile java.lang.Object singular_;
/**
*
* Singular is the singular name of the resource. It must be all lowercase Defaults to lowercased <kind>
* +optional
*
* Plural is the plural name of the resource to serve. It must match the name of the CustomResourceDefinition-registration
* too: plural.group and it must be all lowercase.
*
* Plural is the plural name of the resource to serve. It must match the name of the CustomResourceDefinition-registration
* too: plural.group and it must be all lowercase.
*
* Plural is the plural name of the resource to serve. It must match the name of the CustomResourceDefinition-registration
* too: plural.group and it must be all lowercase.
*
* Plural is the plural name of the resource to serve. It must match the name of the CustomResourceDefinition-registration
* too: plural.group and it must be all lowercase.
*
* Plural is the plural name of the resource to serve. It must match the name of the CustomResourceDefinition-registration
* too: plural.group and it must be all lowercase.
*
* Plural is the plural name of the resource to serve. It must match the name of the CustomResourceDefinition-registration
* too: plural.group and it must be all lowercase.
*
* Version is the version this resource belongs in
* Should be always first item in Versions field if provided.
* Optional, but at least one of Version or Versions must be set.
* Deprecated: Please use `Versions`.
* +optional
*
* Version is the version this resource belongs in
* Should be always first item in Versions field if provided.
* Optional, but at least one of Version or Versions must be set.
* Deprecated: Please use `Versions`.
* +optional
*
* Version is the version this resource belongs in
* Should be always first item in Versions field if provided.
* Optional, but at least one of Version or Versions must be set.
* Deprecated: Please use `Versions`.
* +optional
*
* Validation describes the validation methods for CustomResources
* Optional, the global validation schema for all versions.
* Top-level and per-version schemas are mutually exclusive.
* +optional
*
* Validation describes the validation methods for CustomResources
* Optional, the global validation schema for all versions.
* Top-level and per-version schemas are mutually exclusive.
* +optional
*
* Validation describes the validation methods for CustomResources
* Optional, the global validation schema for all versions.
* Top-level and per-version schemas are mutually exclusive.
* +optional
*
* Subresources describes the subresources for CustomResource
* Optional, the global subresources for all versions.
* Top-level and per-version subresources are mutually exclusive.
* +optional
*
* Subresources describes the subresources for CustomResource
* Optional, the global subresources for all versions.
* Top-level and per-version subresources are mutually exclusive.
* +optional
*
* Subresources describes the subresources for CustomResource
* Optional, the global subresources for all versions.
* Top-level and per-version subresources are mutually exclusive.
* +optional
*
* Versions is the list of all supported versions for this resource.
* If Version field is provided, this field is optional.
* Validation: All versions must use the same validation schema for now. i.e., top
* level Validation field is applied to all of these versions.
* Order: The version name will be used to compute the order.
* If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered
* lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version),
* then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first
* by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing
* major version, then minor version. An example sorted list of versions:
* v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
* +optional
*
* Versions is the list of all supported versions for this resource.
* If Version field is provided, this field is optional.
* Validation: All versions must use the same validation schema for now. i.e., top
* level Validation field is applied to all of these versions.
* Order: The version name will be used to compute the order.
* If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered
* lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version),
* then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first
* by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing
* major version, then minor version. An example sorted list of versions:
* v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
* +optional
*
* Versions is the list of all supported versions for this resource.
* If Version field is provided, this field is optional.
* Validation: All versions must use the same validation schema for now. i.e., top
* level Validation field is applied to all of these versions.
* Order: The version name will be used to compute the order.
* If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered
* lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version),
* then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first
* by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing
* major version, then minor version. An example sorted list of versions:
* v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
* +optional
*
* Versions is the list of all supported versions for this resource.
* If Version field is provided, this field is optional.
* Validation: All versions must use the same validation schema for now. i.e., top
* level Validation field is applied to all of these versions.
* Order: The version name will be used to compute the order.
* If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered
* lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version),
* then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first
* by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing
* major version, then minor version. An example sorted list of versions:
* v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
* +optional
*
* Versions is the list of all supported versions for this resource.
* If Version field is provided, this field is optional.
* Validation: All versions must use the same validation schema for now. i.e., top
* level Validation field is applied to all of these versions.
* Order: The version name will be used to compute the order.
* If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered
* lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version),
* then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first
* by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing
* major version, then minor version. An example sorted list of versions:
* v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Optional, the global columns for all versions.
* Top-level and per-version columns are mutually exclusive.
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Optional, the global columns for all versions.
* Top-level and per-version columns are mutually exclusive.
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Optional, the global columns for all versions.
* Top-level and per-version columns are mutually exclusive.
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Optional, the global columns for all versions.
* Top-level and per-version columns are mutually exclusive.
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Optional, the global columns for all versions.
* Top-level and per-version columns are mutually exclusive.
* +optional
*
*
* optional string group = 1;
*/
public java.lang.String getGroup() {
java.lang.Object ref = group_;
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()) {
group_ = s;
}
return s;
}
}
/**
*
* Group is the group this resource belongs in
*
*
* optional string group = 1;
*/
public com.google.protobuf.ByteString
getGroupBytes() {
java.lang.Object ref = group_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
group_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VERSION_FIELD_NUMBER = 2;
private volatile java.lang.Object version_;
/**
*
* Version is the version this resource belongs in
* Should be always first item in Versions field if provided.
* Optional, but at least one of Version or Versions must be set.
* Deprecated: Please use `Versions`.
* +optional
*
* Version is the version this resource belongs in
* Should be always first item in Versions field if provided.
* Optional, but at least one of Version or Versions must be set.
* Deprecated: Please use `Versions`.
* +optional
*
*
* optional string version = 2;
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
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()) {
version_ = s;
}
return s;
}
}
/**
*
* Version is the version this resource belongs in
* Should be always first item in Versions field if provided.
* Optional, but at least one of Version or Versions must be set.
* Deprecated: Please use `Versions`.
* +optional
*
*
* optional string version = 2;
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAMES_FIELD_NUMBER = 3;
private io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames names_;
/**
*
* Names are the names used to describe this custom resource
*
* Scope indicates whether this resource is cluster or namespace scoped. Default is namespaced
*
*
* optional string scope = 4;
*/
public com.google.protobuf.ByteString
getScopeBytes() {
java.lang.Object ref = scope_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
scope_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALIDATION_FIELD_NUMBER = 5;
private io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation validation_;
/**
*
* Validation describes the validation methods for CustomResources
* Optional, the global validation schema for all versions.
* Top-level and per-version schemas are mutually exclusive.
* +optional
*
* Validation describes the validation methods for CustomResources
* Optional, the global validation schema for all versions.
* Top-level and per-version schemas are mutually exclusive.
* +optional
*
* Validation describes the validation methods for CustomResources
* Optional, the global validation schema for all versions.
* Top-level and per-version schemas are mutually exclusive.
* +optional
*
*
* optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceValidation validation = 5;
*/
public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidationOrBuilder getValidationOrBuilder() {
return validation_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation.getDefaultInstance() : validation_;
}
public static final int SUBRESOURCES_FIELD_NUMBER = 6;
private io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources subresources_;
/**
*
* Subresources describes the subresources for CustomResource
* Optional, the global subresources for all versions.
* Top-level and per-version subresources are mutually exclusive.
* +optional
*
* Subresources describes the subresources for CustomResource
* Optional, the global subresources for all versions.
* Top-level and per-version subresources are mutually exclusive.
* +optional
*
* Subresources describes the subresources for CustomResource
* Optional, the global subresources for all versions.
* Top-level and per-version subresources are mutually exclusive.
* +optional
*
*
* optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresources subresources = 6;
*/
public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourcesOrBuilder getSubresourcesOrBuilder() {
return subresources_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources.getDefaultInstance() : subresources_;
}
public static final int VERSIONS_FIELD_NUMBER = 7;
private java.util.List versions_;
/**
*
* Versions is the list of all supported versions for this resource.
* If Version field is provided, this field is optional.
* Validation: All versions must use the same validation schema for now. i.e., top
* level Validation field is applied to all of these versions.
* Order: The version name will be used to compute the order.
* If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered
* lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version),
* then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first
* by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing
* major version, then minor version. An example sorted list of versions:
* v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
* +optional
*
* Versions is the list of all supported versions for this resource.
* If Version field is provided, this field is optional.
* Validation: All versions must use the same validation schema for now. i.e., top
* level Validation field is applied to all of these versions.
* Order: The version name will be used to compute the order.
* If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered
* lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version),
* then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first
* by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing
* major version, then minor version. An example sorted list of versions:
* v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
* +optional
*
* Versions is the list of all supported versions for this resource.
* If Version field is provided, this field is optional.
* Validation: All versions must use the same validation schema for now. i.e., top
* level Validation field is applied to all of these versions.
* Order: The version name will be used to compute the order.
* If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered
* lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version),
* then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first
* by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing
* major version, then minor version. An example sorted list of versions:
* v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
* +optional
*
*
* repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionVersion versions = 7;
*/
public int getVersionsCount() {
return versions_.size();
}
/**
*
* Versions is the list of all supported versions for this resource.
* If Version field is provided, this field is optional.
* Validation: All versions must use the same validation schema for now. i.e., top
* level Validation field is applied to all of these versions.
* Order: The version name will be used to compute the order.
* If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered
* lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version),
* then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first
* by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing
* major version, then minor version. An example sorted list of versions:
* v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
* +optional
*
* Versions is the list of all supported versions for this resource.
* If Version field is provided, this field is optional.
* Validation: All versions must use the same validation schema for now. i.e., top
* level Validation field is applied to all of these versions.
* Order: The version name will be used to compute the order.
* If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered
* lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version),
* then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first
* by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing
* major version, then minor version. An example sorted list of versions:
* v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
* +optional
*
*
* repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionVersion versions = 7;
*/
public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersionOrBuilder getVersionsOrBuilder(
int index) {
return versions_.get(index);
}
public static final int ADDITIONALPRINTERCOLUMNS_FIELD_NUMBER = 8;
private java.util.List additionalPrinterColumns_;
/**
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Optional, the global columns for all versions.
* Top-level and per-version columns are mutually exclusive.
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Optional, the global columns for all versions.
* Top-level and per-version columns are mutually exclusive.
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Optional, the global columns for all versions.
* Top-level and per-version columns are mutually exclusive.
* +optional
*
*
* repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 8;
*/
public int getAdditionalPrinterColumnsCount() {
return additionalPrinterColumns_.size();
}
/**
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Optional, the global columns for all versions.
* Top-level and per-version columns are mutually exclusive.
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Optional, the global columns for all versions.
* Top-level and per-version columns are mutually exclusive.
* +optional
*
*
* repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 8;
*/
public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinitionOrBuilder getAdditionalPrinterColumnsOrBuilder(
int index) {
return additionalPrinterColumns_.get(index);
}
public static final int CONVERSION_FIELD_NUMBER = 9;
private io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion conversion_;
/**
*
* `conversion` defines conversion settings for the CRD.
* +optional
*
*
* optional string group = 1;
*/
public Builder setGroupBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
group_ = value;
onChanged();
return this;
}
private java.lang.Object version_ = "";
/**
*
* Version is the version this resource belongs in
* Should be always first item in Versions field if provided.
* Optional, but at least one of Version or Versions must be set.
* Deprecated: Please use `Versions`.
* +optional
*
* Version is the version this resource belongs in
* Should be always first item in Versions field if provided.
* Optional, but at least one of Version or Versions must be set.
* Deprecated: Please use `Versions`.
* +optional
*
*
* optional string version = 2;
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
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()) {
version_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Version is the version this resource belongs in
* Should be always first item in Versions field if provided.
* Optional, but at least one of Version or Versions must be set.
* Deprecated: Please use `Versions`.
* +optional
*
* Version is the version this resource belongs in
* Should be always first item in Versions field if provided.
* Optional, but at least one of Version or Versions must be set.
* Deprecated: Please use `Versions`.
* +optional
*
*
* optional string version = 2;
*/
public Builder setVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
version_ = value;
onChanged();
return this;
}
/**
*
* Version is the version this resource belongs in
* Should be always first item in Versions field if provided.
* Optional, but at least one of Version or Versions must be set.
* Deprecated: Please use `Versions`.
* +optional
*
* Version is the version this resource belongs in
* Should be always first item in Versions field if provided.
* Optional, but at least one of Version or Versions must be set.
* Deprecated: Please use `Versions`.
* +optional
*
* Validation describes the validation methods for CustomResources
* Optional, the global validation schema for all versions.
* Top-level and per-version schemas are mutually exclusive.
* +optional
*
* Validation describes the validation methods for CustomResources
* Optional, the global validation schema for all versions.
* Top-level and per-version schemas are mutually exclusive.
* +optional
*
* Validation describes the validation methods for CustomResources
* Optional, the global validation schema for all versions.
* Top-level and per-version schemas are mutually exclusive.
* +optional
*
* Validation describes the validation methods for CustomResources
* Optional, the global validation schema for all versions.
* Top-level and per-version schemas are mutually exclusive.
* +optional
*
* Validation describes the validation methods for CustomResources
* Optional, the global validation schema for all versions.
* Top-level and per-version schemas are mutually exclusive.
* +optional
*
* Validation describes the validation methods for CustomResources
* Optional, the global validation schema for all versions.
* Top-level and per-version schemas are mutually exclusive.
* +optional
*
* Validation describes the validation methods for CustomResources
* Optional, the global validation schema for all versions.
* Top-level and per-version schemas are mutually exclusive.
* +optional
*
* Validation describes the validation methods for CustomResources
* Optional, the global validation schema for all versions.
* Top-level and per-version schemas are mutually exclusive.
* +optional
*
* Validation describes the validation methods for CustomResources
* Optional, the global validation schema for all versions.
* Top-level and per-version schemas are mutually exclusive.
* +optional
*
* Subresources describes the subresources for CustomResource
* Optional, the global subresources for all versions.
* Top-level and per-version subresources are mutually exclusive.
* +optional
*
* Subresources describes the subresources for CustomResource
* Optional, the global subresources for all versions.
* Top-level and per-version subresources are mutually exclusive.
* +optional
*
* Subresources describes the subresources for CustomResource
* Optional, the global subresources for all versions.
* Top-level and per-version subresources are mutually exclusive.
* +optional
*
* Subresources describes the subresources for CustomResource
* Optional, the global subresources for all versions.
* Top-level and per-version subresources are mutually exclusive.
* +optional
*
* Subresources describes the subresources for CustomResource
* Optional, the global subresources for all versions.
* Top-level and per-version subresources are mutually exclusive.
* +optional
*
* Subresources describes the subresources for CustomResource
* Optional, the global subresources for all versions.
* Top-level and per-version subresources are mutually exclusive.
* +optional
*
* Subresources describes the subresources for CustomResource
* Optional, the global subresources for all versions.
* Top-level and per-version subresources are mutually exclusive.
* +optional
*
* Subresources describes the subresources for CustomResource
* Optional, the global subresources for all versions.
* Top-level and per-version subresources are mutually exclusive.
* +optional
*
* Subresources describes the subresources for CustomResource
* Optional, the global subresources for all versions.
* Top-level and per-version subresources are mutually exclusive.
* +optional
*
* Versions is the list of all supported versions for this resource.
* If Version field is provided, this field is optional.
* Validation: All versions must use the same validation schema for now. i.e., top
* level Validation field is applied to all of these versions.
* Order: The version name will be used to compute the order.
* If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered
* lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version),
* then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first
* by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing
* major version, then minor version. An example sorted list of versions:
* v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
* +optional
*
* Versions is the list of all supported versions for this resource.
* If Version field is provided, this field is optional.
* Validation: All versions must use the same validation schema for now. i.e., top
* level Validation field is applied to all of these versions.
* Order: The version name will be used to compute the order.
* If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered
* lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version),
* then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first
* by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing
* major version, then minor version. An example sorted list of versions:
* v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
* +optional
*
*
* repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionVersion versions = 7;
*/
public int getVersionsCount() {
if (versionsBuilder_ == null) {
return versions_.size();
} else {
return versionsBuilder_.getCount();
}
}
/**
*
* Versions is the list of all supported versions for this resource.
* If Version field is provided, this field is optional.
* Validation: All versions must use the same validation schema for now. i.e., top
* level Validation field is applied to all of these versions.
* Order: The version name will be used to compute the order.
* If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered
* lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version),
* then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first
* by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing
* major version, then minor version. An example sorted list of versions:
* v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
* +optional
*
* Versions is the list of all supported versions for this resource.
* If Version field is provided, this field is optional.
* Validation: All versions must use the same validation schema for now. i.e., top
* level Validation field is applied to all of these versions.
* Order: The version name will be used to compute the order.
* If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered
* lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version),
* then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first
* by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing
* major version, then minor version. An example sorted list of versions:
* v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
* +optional
*
*
* repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionVersion versions = 7;
*/
public Builder setVersions(
int index, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion value) {
if (versionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVersionsIsMutable();
versions_.set(index, value);
onChanged();
} else {
versionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Versions is the list of all supported versions for this resource.
* If Version field is provided, this field is optional.
* Validation: All versions must use the same validation schema for now. i.e., top
* level Validation field is applied to all of these versions.
* Order: The version name will be used to compute the order.
* If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered
* lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version),
* then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first
* by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing
* major version, then minor version. An example sorted list of versions:
* v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
* +optional
*
* Versions is the list of all supported versions for this resource.
* If Version field is provided, this field is optional.
* Validation: All versions must use the same validation schema for now. i.e., top
* level Validation field is applied to all of these versions.
* Order: The version name will be used to compute the order.
* If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered
* lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version),
* then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first
* by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing
* major version, then minor version. An example sorted list of versions:
* v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
* +optional
*
*
* repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionVersion versions = 7;
*/
public Builder addVersions(io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion value) {
if (versionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVersionsIsMutable();
versions_.add(value);
onChanged();
} else {
versionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Versions is the list of all supported versions for this resource.
* If Version field is provided, this field is optional.
* Validation: All versions must use the same validation schema for now. i.e., top
* level Validation field is applied to all of these versions.
* Order: The version name will be used to compute the order.
* If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered
* lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version),
* then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first
* by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing
* major version, then minor version. An example sorted list of versions:
* v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
* +optional
*
*
* repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionVersion versions = 7;
*/
public Builder addVersions(
int index, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion value) {
if (versionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVersionsIsMutable();
versions_.add(index, value);
onChanged();
} else {
versionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Versions is the list of all supported versions for this resource.
* If Version field is provided, this field is optional.
* Validation: All versions must use the same validation schema for now. i.e., top
* level Validation field is applied to all of these versions.
* Order: The version name will be used to compute the order.
* If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered
* lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version),
* then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first
* by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing
* major version, then minor version. An example sorted list of versions:
* v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
* +optional
*
* Versions is the list of all supported versions for this resource.
* If Version field is provided, this field is optional.
* Validation: All versions must use the same validation schema for now. i.e., top
* level Validation field is applied to all of these versions.
* Order: The version name will be used to compute the order.
* If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered
* lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version),
* then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first
* by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing
* major version, then minor version. An example sorted list of versions:
* v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
* +optional
*
* Versions is the list of all supported versions for this resource.
* If Version field is provided, this field is optional.
* Validation: All versions must use the same validation schema for now. i.e., top
* level Validation field is applied to all of these versions.
* Order: The version name will be used to compute the order.
* If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered
* lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version),
* then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first
* by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing
* major version, then minor version. An example sorted list of versions:
* v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
* +optional
*
* Versions is the list of all supported versions for this resource.
* If Version field is provided, this field is optional.
* Validation: All versions must use the same validation schema for now. i.e., top
* level Validation field is applied to all of these versions.
* Order: The version name will be used to compute the order.
* If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered
* lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version),
* then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first
* by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing
* major version, then minor version. An example sorted list of versions:
* v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
* +optional
*
* Versions is the list of all supported versions for this resource.
* If Version field is provided, this field is optional.
* Validation: All versions must use the same validation schema for now. i.e., top
* level Validation field is applied to all of these versions.
* Order: The version name will be used to compute the order.
* If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered
* lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version),
* then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first
* by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing
* major version, then minor version. An example sorted list of versions:
* v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
* +optional
*
* Versions is the list of all supported versions for this resource.
* If Version field is provided, this field is optional.
* Validation: All versions must use the same validation schema for now. i.e., top
* level Validation field is applied to all of these versions.
* Order: The version name will be used to compute the order.
* If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered
* lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version),
* then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first
* by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing
* major version, then minor version. An example sorted list of versions:
* v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
* +optional
*
*
* repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionVersion versions = 7;
*/
public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion.Builder getVersionsBuilder(
int index) {
return getVersionsFieldBuilder().getBuilder(index);
}
/**
*
* Versions is the list of all supported versions for this resource.
* If Version field is provided, this field is optional.
* Validation: All versions must use the same validation schema for now. i.e., top
* level Validation field is applied to all of these versions.
* Order: The version name will be used to compute the order.
* If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered
* lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version),
* then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first
* by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing
* major version, then minor version. An example sorted list of versions:
* v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
* +optional
*
*
* repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionVersion versions = 7;
*/
public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersionOrBuilder getVersionsOrBuilder(
int index) {
if (versionsBuilder_ == null) {
return versions_.get(index); } else {
return versionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Versions is the list of all supported versions for this resource.
* If Version field is provided, this field is optional.
* Validation: All versions must use the same validation schema for now. i.e., top
* level Validation field is applied to all of these versions.
* Order: The version name will be used to compute the order.
* If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered
* lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version),
* then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first
* by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing
* major version, then minor version. An example sorted list of versions:
* v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
* +optional
*
* Versions is the list of all supported versions for this resource.
* If Version field is provided, this field is optional.
* Validation: All versions must use the same validation schema for now. i.e., top
* level Validation field is applied to all of these versions.
* Order: The version name will be used to compute the order.
* If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered
* lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version),
* then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first
* by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing
* major version, then minor version. An example sorted list of versions:
* v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
* +optional
*
* Versions is the list of all supported versions for this resource.
* If Version field is provided, this field is optional.
* Validation: All versions must use the same validation schema for now. i.e., top
* level Validation field is applied to all of these versions.
* Order: The version name will be used to compute the order.
* If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered
* lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version),
* then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first
* by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing
* major version, then minor version. An example sorted list of versions:
* v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
* +optional
*
* Versions is the list of all supported versions for this resource.
* If Version field is provided, this field is optional.
* Validation: All versions must use the same validation schema for now. i.e., top
* level Validation field is applied to all of these versions.
* Order: The version name will be used to compute the order.
* If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered
* lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version),
* then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first
* by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing
* major version, then minor version. An example sorted list of versions:
* v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Optional, the global columns for all versions.
* Top-level and per-version columns are mutually exclusive.
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Optional, the global columns for all versions.
* Top-level and per-version columns are mutually exclusive.
* +optional
*
*
* repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 8;
*/
public int getAdditionalPrinterColumnsCount() {
if (additionalPrinterColumnsBuilder_ == null) {
return additionalPrinterColumns_.size();
} else {
return additionalPrinterColumnsBuilder_.getCount();
}
}
/**
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Optional, the global columns for all versions.
* Top-level and per-version columns are mutually exclusive.
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Optional, the global columns for all versions.
* Top-level and per-version columns are mutually exclusive.
* +optional
*
*
* repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 8;
*/
public Builder setAdditionalPrinterColumns(
int index, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition value) {
if (additionalPrinterColumnsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdditionalPrinterColumnsIsMutable();
additionalPrinterColumns_.set(index, value);
onChanged();
} else {
additionalPrinterColumnsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Optional, the global columns for all versions.
* Top-level and per-version columns are mutually exclusive.
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Optional, the global columns for all versions.
* Top-level and per-version columns are mutually exclusive.
* +optional
*
*
* repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 8;
*/
public Builder addAdditionalPrinterColumns(io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition value) {
if (additionalPrinterColumnsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdditionalPrinterColumnsIsMutable();
additionalPrinterColumns_.add(value);
onChanged();
} else {
additionalPrinterColumnsBuilder_.addMessage(value);
}
return this;
}
/**
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Optional, the global columns for all versions.
* Top-level and per-version columns are mutually exclusive.
* +optional
*
*
* repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 8;
*/
public Builder addAdditionalPrinterColumns(
int index, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition value) {
if (additionalPrinterColumnsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdditionalPrinterColumnsIsMutable();
additionalPrinterColumns_.add(index, value);
onChanged();
} else {
additionalPrinterColumnsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Optional, the global columns for all versions.
* Top-level and per-version columns are mutually exclusive.
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Optional, the global columns for all versions.
* Top-level and per-version columns are mutually exclusive.
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Optional, the global columns for all versions.
* Top-level and per-version columns are mutually exclusive.
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Optional, the global columns for all versions.
* Top-level and per-version columns are mutually exclusive.
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Optional, the global columns for all versions.
* Top-level and per-version columns are mutually exclusive.
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Optional, the global columns for all versions.
* Top-level and per-version columns are mutually exclusive.
* +optional
*
*
* repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 8;
*/
public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition.Builder getAdditionalPrinterColumnsBuilder(
int index) {
return getAdditionalPrinterColumnsFieldBuilder().getBuilder(index);
}
/**
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Optional, the global columns for all versions.
* Top-level and per-version columns are mutually exclusive.
* +optional
*
*
* repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 8;
*/
public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinitionOrBuilder getAdditionalPrinterColumnsOrBuilder(
int index) {
if (additionalPrinterColumnsBuilder_ == null) {
return additionalPrinterColumns_.get(index); } else {
return additionalPrinterColumnsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Optional, the global columns for all versions.
* Top-level and per-version columns are mutually exclusive.
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Optional, the global columns for all versions.
* Top-level and per-version columns are mutually exclusive.
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Optional, the global columns for all versions.
* Top-level and per-version columns are mutually exclusive.
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Optional, the global columns for all versions.
* Top-level and per-version columns are mutually exclusive.
* +optional
*
* StoredVersions are all versions of CustomResources that were ever persisted. Tracking these
* versions allows a migration path for stored versions in etcd. The field is mutable
* so the migration controller can first finish a migration to another version (i.e.
* that no old objects are left in the storage), and then remove the rest of the
* versions from this list.
* None of the versions in this list can be removed from the spec.Versions field.
*
* StoredVersions are all versions of CustomResources that were ever persisted. Tracking these
* versions allows a migration path for stored versions in etcd. The field is mutable
* so the migration controller can first finish a migration to another version (i.e.
* that no old objects are left in the storage), and then remove the rest of the
* versions from this list.
* None of the versions in this list can be removed from the spec.Versions field.
*
* StoredVersions are all versions of CustomResources that were ever persisted. Tracking these
* versions allows a migration path for stored versions in etcd. The field is mutable
* so the migration controller can first finish a migration to another version (i.e.
* that no old objects are left in the storage), and then remove the rest of the
* versions from this list.
* None of the versions in this list can be removed from the spec.Versions field.
*
* StoredVersions are all versions of CustomResources that were ever persisted. Tracking these
* versions allows a migration path for stored versions in etcd. The field is mutable
* so the migration controller can first finish a migration to another version (i.e.
* that no old objects are left in the storage), and then remove the rest of the
* versions from this list.
* None of the versions in this list can be removed from the spec.Versions field.
*
* AcceptedNames are the names that are actually being used to serve discovery
* They may be different than the names in spec.
*
*
* optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames acceptedNames = 2;
*/
public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNamesOrBuilder getAcceptedNamesOrBuilder() {
return acceptedNames_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames.getDefaultInstance() : acceptedNames_;
}
public static final int STOREDVERSIONS_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList storedVersions_;
/**
*
* StoredVersions are all versions of CustomResources that were ever persisted. Tracking these
* versions allows a migration path for stored versions in etcd. The field is mutable
* so the migration controller can first finish a migration to another version (i.e.
* that no old objects are left in the storage), and then remove the rest of the
* versions from this list.
* None of the versions in this list can be removed from the spec.Versions field.
*
* StoredVersions are all versions of CustomResources that were ever persisted. Tracking these
* versions allows a migration path for stored versions in etcd. The field is mutable
* so the migration controller can first finish a migration to another version (i.e.
* that no old objects are left in the storage), and then remove the rest of the
* versions from this list.
* None of the versions in this list can be removed from the spec.Versions field.
*
*
* repeated string storedVersions = 3;
*/
public int getStoredVersionsCount() {
return storedVersions_.size();
}
/**
*
* StoredVersions are all versions of CustomResources that were ever persisted. Tracking these
* versions allows a migration path for stored versions in etcd. The field is mutable
* so the migration controller can first finish a migration to another version (i.e.
* that no old objects are left in the storage), and then remove the rest of the
* versions from this list.
* None of the versions in this list can be removed from the spec.Versions field.
*
* StoredVersions are all versions of CustomResources that were ever persisted. Tracking these
* versions allows a migration path for stored versions in etcd. The field is mutable
* so the migration controller can first finish a migration to another version (i.e.
* that no old objects are left in the storage), and then remove the rest of the
* versions from this list.
* None of the versions in this list can be removed from the spec.Versions field.
*
*
* repeated string storedVersions = 3;
*/
public com.google.protobuf.ByteString
getStoredVersionsBytes(int index) {
return storedVersions_.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 < conditions_.size(); i++) {
output.writeMessage(1, conditions_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(2, getAcceptedNames());
}
for (int i = 0; i < storedVersions_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, storedVersions_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < conditions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, conditions_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getAcceptedNames());
}
{
int dataSize = 0;
for (int i = 0; i < storedVersions_.size(); i++) {
dataSize += computeStringSizeNoTag(storedVersions_.getRaw(i));
}
size += dataSize;
size += 1 * getStoredVersionsList().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.V1beta1Apiextensions.CustomResourceDefinitionStatus)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus other = (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus) obj;
boolean result = true;
result = result && getConditionsList()
.equals(other.getConditionsList());
result = result && (hasAcceptedNames() == other.hasAcceptedNames());
if (hasAcceptedNames()) {
result = result && getAcceptedNames()
.equals(other.getAcceptedNames());
}
result = result && getStoredVersionsList()
.equals(other.getStoredVersionsList());
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 (getConditionsCount() > 0) {
hash = (37 * hash) + CONDITIONS_FIELD_NUMBER;
hash = (53 * hash) + getConditionsList().hashCode();
}
if (hasAcceptedNames()) {
hash = (37 * hash) + ACCEPTEDNAMES_FIELD_NUMBER;
hash = (53 * hash) + getAcceptedNames().hashCode();
}
if (getStoredVersionsCount() > 0) {
hash = (37 * hash) + STOREDVERSIONS_FIELD_NUMBER;
hash = (53 * hash) + getStoredVersionsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus 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.V1beta1Apiextensions.CustomResourceDefinitionStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus 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.V1beta1Apiextensions.CustomResourceDefinitionStatus parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus 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.V1beta1Apiextensions.CustomResourceDefinitionStatus parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus 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.V1beta1Apiextensions.CustomResourceDefinitionStatus parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus 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.V1beta1Apiextensions.CustomResourceDefinitionStatus 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;
}
/**
*
* CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition
*
* StoredVersions are all versions of CustomResources that were ever persisted. Tracking these
* versions allows a migration path for stored versions in etcd. The field is mutable
* so the migration controller can first finish a migration to another version (i.e.
* that no old objects are left in the storage), and then remove the rest of the
* versions from this list.
* None of the versions in this list can be removed from the spec.Versions field.
*
* StoredVersions are all versions of CustomResources that were ever persisted. Tracking these
* versions allows a migration path for stored versions in etcd. The field is mutable
* so the migration controller can first finish a migration to another version (i.e.
* that no old objects are left in the storage), and then remove the rest of the
* versions from this list.
* None of the versions in this list can be removed from the spec.Versions field.
*
*
* repeated string storedVersions = 3;
*/
public int getStoredVersionsCount() {
return storedVersions_.size();
}
/**
*
* StoredVersions are all versions of CustomResources that were ever persisted. Tracking these
* versions allows a migration path for stored versions in etcd. The field is mutable
* so the migration controller can first finish a migration to another version (i.e.
* that no old objects are left in the storage), and then remove the rest of the
* versions from this list.
* None of the versions in this list can be removed from the spec.Versions field.
*
* StoredVersions are all versions of CustomResources that were ever persisted. Tracking these
* versions allows a migration path for stored versions in etcd. The field is mutable
* so the migration controller can first finish a migration to another version (i.e.
* that no old objects are left in the storage), and then remove the rest of the
* versions from this list.
* None of the versions in this list can be removed from the spec.Versions field.
*
* StoredVersions are all versions of CustomResources that were ever persisted. Tracking these
* versions allows a migration path for stored versions in etcd. The field is mutable
* so the migration controller can first finish a migration to another version (i.e.
* that no old objects are left in the storage), and then remove the rest of the
* versions from this list.
* None of the versions in this list can be removed from the spec.Versions field.
*
*
* repeated string storedVersions = 3;
*/
public Builder setStoredVersions(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureStoredVersionsIsMutable();
storedVersions_.set(index, value);
onChanged();
return this;
}
/**
*
* StoredVersions are all versions of CustomResources that were ever persisted. Tracking these
* versions allows a migration path for stored versions in etcd. The field is mutable
* so the migration controller can first finish a migration to another version (i.e.
* that no old objects are left in the storage), and then remove the rest of the
* versions from this list.
* None of the versions in this list can be removed from the spec.Versions field.
*
* StoredVersions are all versions of CustomResources that were ever persisted. Tracking these
* versions allows a migration path for stored versions in etcd. The field is mutable
* so the migration controller can first finish a migration to another version (i.e.
* that no old objects are left in the storage), and then remove the rest of the
* versions from this list.
* None of the versions in this list can be removed from the spec.Versions field.
*
* StoredVersions are all versions of CustomResources that were ever persisted. Tracking these
* versions allows a migration path for stored versions in etcd. The field is mutable
* so the migration controller can first finish a migration to another version (i.e.
* that no old objects are left in the storage), and then remove the rest of the
* versions from this list.
* None of the versions in this list can be removed from the spec.Versions field.
*
* StoredVersions are all versions of CustomResources that were ever persisted. Tracking these
* versions allows a migration path for stored versions in etcd. The field is mutable
* so the migration controller can first finish a migration to another version (i.e.
* that no old objects are left in the storage), and then remove the rest of the
* versions from this list.
* None of the versions in this list can be removed from the spec.Versions field.
*
*
* repeated string storedVersions = 3;
*/
public Builder addStoredVersionsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureStoredVersionsIsMutable();
storedVersions_.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.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionStatus)
}
// @@protoc_insertion_point(class_scope:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionStatus)
private static final io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus();
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CustomResourceDefinitionStatus parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CustomResourceDefinitionStatus(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.V1beta1Apiextensions.CustomResourceDefinitionStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CustomResourceDefinitionVersionOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionVersion)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name is the version name, e.g. “v1”, “v2beta1”, etc.
*
* Schema describes the schema for CustomResource used in validation, pruning, and defaulting.
* Top-level and per-version schemas are mutually exclusive.
* Per-version schemas must not all be set to identical values (top-level validation schema should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* Schema describes the schema for CustomResource used in validation, pruning, and defaulting.
* Top-level and per-version schemas are mutually exclusive.
* Per-version schemas must not all be set to identical values (top-level validation schema should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* Schema describes the schema for CustomResource used in validation, pruning, and defaulting.
* Top-level and per-version schemas are mutually exclusive.
* Per-version schemas must not all be set to identical values (top-level validation schema should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* Subresources describes the subresources for CustomResource
* Top-level and per-version subresources are mutually exclusive.
* Per-version subresources must not all be set to identical values (top-level subresources should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* Subresources describes the subresources for CustomResource
* Top-level and per-version subresources are mutually exclusive.
* Per-version subresources must not all be set to identical values (top-level subresources should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* Subresources describes the subresources for CustomResource
* Top-level and per-version subresources are mutually exclusive.
* Per-version subresources must not all be set to identical values (top-level subresources should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Top-level and per-version columns are mutually exclusive.
* Per-version columns must not all be set to identical values (top-level columns should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an
* update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must
* be explicitly set to null
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Top-level and per-version columns are mutually exclusive.
* Per-version columns must not all be set to identical values (top-level columns should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an
* update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must
* be explicitly set to null
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Top-level and per-version columns are mutually exclusive.
* Per-version columns must not all be set to identical values (top-level columns should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an
* update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must
* be explicitly set to null
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Top-level and per-version columns are mutually exclusive.
* Per-version columns must not all be set to identical values (top-level columns should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an
* update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must
* be explicitly set to null
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Top-level and per-version columns are mutually exclusive.
* Per-version columns must not all be set to identical values (top-level columns should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an
* update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must
* be explicitly set to null
* +optional
*
* Storage flags the version as storage version. There must be exactly one
* flagged as storage version.
*
*
* optional bool storage = 3;
*/
public boolean getStorage() {
return storage_;
}
public static final int SCHEMA_FIELD_NUMBER = 4;
private io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation schema_;
/**
*
* Schema describes the schema for CustomResource used in validation, pruning, and defaulting.
* Top-level and per-version schemas are mutually exclusive.
* Per-version schemas must not all be set to identical values (top-level validation schema should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* Schema describes the schema for CustomResource used in validation, pruning, and defaulting.
* Top-level and per-version schemas are mutually exclusive.
* Per-version schemas must not all be set to identical values (top-level validation schema should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* Schema describes the schema for CustomResource used in validation, pruning, and defaulting.
* Top-level and per-version schemas are mutually exclusive.
* Per-version schemas must not all be set to identical values (top-level validation schema should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
*
* optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceValidation schema = 4;
*/
public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidationOrBuilder getSchemaOrBuilder() {
return schema_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation.getDefaultInstance() : schema_;
}
public static final int SUBRESOURCES_FIELD_NUMBER = 5;
private io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources subresources_;
/**
*
* Subresources describes the subresources for CustomResource
* Top-level and per-version subresources are mutually exclusive.
* Per-version subresources must not all be set to identical values (top-level subresources should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* Subresources describes the subresources for CustomResource
* Top-level and per-version subresources are mutually exclusive.
* Per-version subresources must not all be set to identical values (top-level subresources should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* Subresources describes the subresources for CustomResource
* Top-level and per-version subresources are mutually exclusive.
* Per-version subresources must not all be set to identical values (top-level subresources should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
*
* optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresources subresources = 5;
*/
public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourcesOrBuilder getSubresourcesOrBuilder() {
return subresources_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources.getDefaultInstance() : subresources_;
}
public static final int ADDITIONALPRINTERCOLUMNS_FIELD_NUMBER = 6;
private java.util.List additionalPrinterColumns_;
/**
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Top-level and per-version columns are mutually exclusive.
* Per-version columns must not all be set to identical values (top-level columns should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an
* update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must
* be explicitly set to null
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Top-level and per-version columns are mutually exclusive.
* Per-version columns must not all be set to identical values (top-level columns should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an
* update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must
* be explicitly set to null
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Top-level and per-version columns are mutually exclusive.
* Per-version columns must not all be set to identical values (top-level columns should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an
* update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must
* be explicitly set to null
* +optional
*
*
* repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 6;
*/
public int getAdditionalPrinterColumnsCount() {
return additionalPrinterColumns_.size();
}
/**
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Top-level and per-version columns are mutually exclusive.
* Per-version columns must not all be set to identical values (top-level columns should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an
* update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must
* be explicitly set to null
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Top-level and per-version columns are mutually exclusive.
* Per-version columns must not all be set to identical values (top-level columns should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an
* update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must
* be explicitly set to null
* +optional
*
*
* repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 6;
*/
public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinitionOrBuilder getAdditionalPrinterColumnsOrBuilder(
int index) {
return additionalPrinterColumns_.get(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, name_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBool(2, served_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBool(3, storage_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(4, getSchema());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeMessage(5, getSubresources());
}
for (int i = 0; i < additionalPrinterColumns_.size(); i++) {
output.writeMessage(6, additionalPrinterColumns_.get(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, name_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, served_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, storage_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getSchema());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getSubresources());
}
for (int i = 0; i < additionalPrinterColumns_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, additionalPrinterColumns_.get(i));
}
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.V1beta1Apiextensions.CustomResourceDefinitionVersion)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion other = (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion) obj;
boolean result = true;
result = result && (hasName() == other.hasName());
if (hasName()) {
result = result && getName()
.equals(other.getName());
}
result = result && (hasServed() == other.hasServed());
if (hasServed()) {
result = result && (getServed()
== other.getServed());
}
result = result && (hasStorage() == other.hasStorage());
if (hasStorage()) {
result = result && (getStorage()
== other.getStorage());
}
result = result && (hasSchema() == other.hasSchema());
if (hasSchema()) {
result = result && getSchema()
.equals(other.getSchema());
}
result = result && (hasSubresources() == other.hasSubresources());
if (hasSubresources()) {
result = result && getSubresources()
.equals(other.getSubresources());
}
result = result && getAdditionalPrinterColumnsList()
.equals(other.getAdditionalPrinterColumnsList());
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 (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasServed()) {
hash = (37 * hash) + SERVED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getServed());
}
if (hasStorage()) {
hash = (37 * hash) + STORAGE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getStorage());
}
if (hasSchema()) {
hash = (37 * hash) + SCHEMA_FIELD_NUMBER;
hash = (53 * hash) + getSchema().hashCode();
}
if (hasSubresources()) {
hash = (37 * hash) + SUBRESOURCES_FIELD_NUMBER;
hash = (53 * hash) + getSubresources().hashCode();
}
if (getAdditionalPrinterColumnsCount() > 0) {
hash = (37 * hash) + ADDITIONALPRINTERCOLUMNS_FIELD_NUMBER;
hash = (53 * hash) + getAdditionalPrinterColumnsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion 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.V1beta1Apiextensions.CustomResourceDefinitionVersion parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion 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.V1beta1Apiextensions.CustomResourceDefinitionVersion parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion 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.V1beta1Apiextensions.CustomResourceDefinitionVersion parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion 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.V1beta1Apiextensions.CustomResourceDefinitionVersion parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion 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.V1beta1Apiextensions.CustomResourceDefinitionVersion 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;
}
/**
*
* CustomResourceDefinitionVersion describes a version for CRD.
*
* Schema describes the schema for CustomResource used in validation, pruning, and defaulting.
* Top-level and per-version schemas are mutually exclusive.
* Per-version schemas must not all be set to identical values (top-level validation schema should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* Schema describes the schema for CustomResource used in validation, pruning, and defaulting.
* Top-level and per-version schemas are mutually exclusive.
* Per-version schemas must not all be set to identical values (top-level validation schema should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* Schema describes the schema for CustomResource used in validation, pruning, and defaulting.
* Top-level and per-version schemas are mutually exclusive.
* Per-version schemas must not all be set to identical values (top-level validation schema should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* Schema describes the schema for CustomResource used in validation, pruning, and defaulting.
* Top-level and per-version schemas are mutually exclusive.
* Per-version schemas must not all be set to identical values (top-level validation schema should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* Schema describes the schema for CustomResource used in validation, pruning, and defaulting.
* Top-level and per-version schemas are mutually exclusive.
* Per-version schemas must not all be set to identical values (top-level validation schema should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* Schema describes the schema for CustomResource used in validation, pruning, and defaulting.
* Top-level and per-version schemas are mutually exclusive.
* Per-version schemas must not all be set to identical values (top-level validation schema should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* Schema describes the schema for CustomResource used in validation, pruning, and defaulting.
* Top-level and per-version schemas are mutually exclusive.
* Per-version schemas must not all be set to identical values (top-level validation schema should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* Schema describes the schema for CustomResource used in validation, pruning, and defaulting.
* Top-level and per-version schemas are mutually exclusive.
* Per-version schemas must not all be set to identical values (top-level validation schema should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* Schema describes the schema for CustomResource used in validation, pruning, and defaulting.
* Top-level and per-version schemas are mutually exclusive.
* Per-version schemas must not all be set to identical values (top-level validation schema should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* Subresources describes the subresources for CustomResource
* Top-level and per-version subresources are mutually exclusive.
* Per-version subresources must not all be set to identical values (top-level subresources should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* Subresources describes the subresources for CustomResource
* Top-level and per-version subresources are mutually exclusive.
* Per-version subresources must not all be set to identical values (top-level subresources should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* Subresources describes the subresources for CustomResource
* Top-level and per-version subresources are mutually exclusive.
* Per-version subresources must not all be set to identical values (top-level subresources should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* Subresources describes the subresources for CustomResource
* Top-level and per-version subresources are mutually exclusive.
* Per-version subresources must not all be set to identical values (top-level subresources should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* Subresources describes the subresources for CustomResource
* Top-level and per-version subresources are mutually exclusive.
* Per-version subresources must not all be set to identical values (top-level subresources should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* Subresources describes the subresources for CustomResource
* Top-level and per-version subresources are mutually exclusive.
* Per-version subresources must not all be set to identical values (top-level subresources should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* Subresources describes the subresources for CustomResource
* Top-level and per-version subresources are mutually exclusive.
* Per-version subresources must not all be set to identical values (top-level subresources should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* Subresources describes the subresources for CustomResource
* Top-level and per-version subresources are mutually exclusive.
* Per-version subresources must not all be set to identical values (top-level subresources should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* Subresources describes the subresources for CustomResource
* Top-level and per-version subresources are mutually exclusive.
* Per-version subresources must not all be set to identical values (top-level subresources should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Top-level and per-version columns are mutually exclusive.
* Per-version columns must not all be set to identical values (top-level columns should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an
* update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must
* be explicitly set to null
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Top-level and per-version columns are mutually exclusive.
* Per-version columns must not all be set to identical values (top-level columns should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an
* update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must
* be explicitly set to null
* +optional
*
*
* repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 6;
*/
public int getAdditionalPrinterColumnsCount() {
if (additionalPrinterColumnsBuilder_ == null) {
return additionalPrinterColumns_.size();
} else {
return additionalPrinterColumnsBuilder_.getCount();
}
}
/**
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Top-level and per-version columns are mutually exclusive.
* Per-version columns must not all be set to identical values (top-level columns should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an
* update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must
* be explicitly set to null
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Top-level and per-version columns are mutually exclusive.
* Per-version columns must not all be set to identical values (top-level columns should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an
* update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must
* be explicitly set to null
* +optional
*
*
* repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 6;
*/
public Builder setAdditionalPrinterColumns(
int index, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition value) {
if (additionalPrinterColumnsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdditionalPrinterColumnsIsMutable();
additionalPrinterColumns_.set(index, value);
onChanged();
} else {
additionalPrinterColumnsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Top-level and per-version columns are mutually exclusive.
* Per-version columns must not all be set to identical values (top-level columns should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an
* update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must
* be explicitly set to null
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Top-level and per-version columns are mutually exclusive.
* Per-version columns must not all be set to identical values (top-level columns should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an
* update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must
* be explicitly set to null
* +optional
*
*
* repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 6;
*/
public Builder addAdditionalPrinterColumns(io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition value) {
if (additionalPrinterColumnsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdditionalPrinterColumnsIsMutable();
additionalPrinterColumns_.add(value);
onChanged();
} else {
additionalPrinterColumnsBuilder_.addMessage(value);
}
return this;
}
/**
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Top-level and per-version columns are mutually exclusive.
* Per-version columns must not all be set to identical values (top-level columns should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an
* update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must
* be explicitly set to null
* +optional
*
*
* repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 6;
*/
public Builder addAdditionalPrinterColumns(
int index, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition value) {
if (additionalPrinterColumnsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdditionalPrinterColumnsIsMutable();
additionalPrinterColumns_.add(index, value);
onChanged();
} else {
additionalPrinterColumnsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Top-level and per-version columns are mutually exclusive.
* Per-version columns must not all be set to identical values (top-level columns should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an
* update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must
* be explicitly set to null
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Top-level and per-version columns are mutually exclusive.
* Per-version columns must not all be set to identical values (top-level columns should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an
* update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must
* be explicitly set to null
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Top-level and per-version columns are mutually exclusive.
* Per-version columns must not all be set to identical values (top-level columns should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an
* update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must
* be explicitly set to null
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Top-level and per-version columns are mutually exclusive.
* Per-version columns must not all be set to identical values (top-level columns should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an
* update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must
* be explicitly set to null
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Top-level and per-version columns are mutually exclusive.
* Per-version columns must not all be set to identical values (top-level columns should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an
* update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must
* be explicitly set to null
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Top-level and per-version columns are mutually exclusive.
* Per-version columns must not all be set to identical values (top-level columns should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an
* update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must
* be explicitly set to null
* +optional
*
*
* repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 6;
*/
public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition.Builder getAdditionalPrinterColumnsBuilder(
int index) {
return getAdditionalPrinterColumnsFieldBuilder().getBuilder(index);
}
/**
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Top-level and per-version columns are mutually exclusive.
* Per-version columns must not all be set to identical values (top-level columns should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an
* update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must
* be explicitly set to null
* +optional
*
*
* repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 6;
*/
public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinitionOrBuilder getAdditionalPrinterColumnsOrBuilder(
int index) {
if (additionalPrinterColumnsBuilder_ == null) {
return additionalPrinterColumns_.get(index); } else {
return additionalPrinterColumnsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Top-level and per-version columns are mutually exclusive.
* Per-version columns must not all be set to identical values (top-level columns should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an
* update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must
* be explicitly set to null
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Top-level and per-version columns are mutually exclusive.
* Per-version columns must not all be set to identical values (top-level columns should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an
* update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must
* be explicitly set to null
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Top-level and per-version columns are mutually exclusive.
* Per-version columns must not all be set to identical values (top-level columns should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an
* update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must
* be explicitly set to null
* +optional
*
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* Top-level and per-version columns are mutually exclusive.
* Per-version columns must not all be set to identical values (top-level columns should be used instead)
* This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
* NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an
* update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must
* be explicitly set to null
* +optional
*
*
* repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 6;
*/
public java.util.List
getAdditionalPrinterColumnsBuilderList() {
return getAdditionalPrinterColumnsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinitionOrBuilder>
getAdditionalPrinterColumnsFieldBuilder() {
if (additionalPrinterColumnsBuilder_ == null) {
additionalPrinterColumnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinitionOrBuilder>(
additionalPrinterColumns_,
((bitField0_ & 0x00000020) == 0x00000020),
getParentForChildren(),
isClean());
additionalPrinterColumns_ = null;
}
return additionalPrinterColumnsBuilder_;
}
@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.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionVersion)
}
// @@protoc_insertion_point(class_scope:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionVersion)
private static final io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion();
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CustomResourceDefinitionVersion parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CustomResourceDefinitionVersion(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.V1beta1Apiextensions.CustomResourceDefinitionVersion getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CustomResourceSubresourceScaleOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceScale)
com.google.protobuf.MessageOrBuilder {
/**
*
* SpecReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Spec.Replicas.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .spec.
* If there is no value under the given path in the CustomResource, the /scale subresource will return an error on GET.
*
* SpecReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Spec.Replicas.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .spec.
* If there is no value under the given path in the CustomResource, the /scale subresource will return an error on GET.
*
* SpecReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Spec.Replicas.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .spec.
* If there is no value under the given path in the CustomResource, the /scale subresource will return an error on GET.
*
* StatusReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Replicas.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .status.
* If there is no value under the given path in the CustomResource, the status replica value in the /scale subresource
* will default to 0.
*
* StatusReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Replicas.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .status.
* If there is no value under the given path in the CustomResource, the status replica value in the /scale subresource
* will default to 0.
*
* StatusReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Replicas.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .status.
* If there is no value under the given path in the CustomResource, the status replica value in the /scale subresource
* will default to 0.
*
* LabelSelectorPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Selector.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .status.
* Must be set to work with HPA.
* If there is no value under the given path in the CustomResource, the status label selector value in the /scale
* subresource will default to the empty string.
* +optional
*
* LabelSelectorPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Selector.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .status.
* Must be set to work with HPA.
* If there is no value under the given path in the CustomResource, the status label selector value in the /scale
* subresource will default to the empty string.
* +optional
*
* LabelSelectorPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Selector.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .status.
* Must be set to work with HPA.
* If there is no value under the given path in the CustomResource, the status label selector value in the /scale
* subresource will default to the empty string.
* +optional
*
* CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.
*
*
* Protobuf type {@code k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceScale}
*/
public static final class CustomResourceSubresourceScale extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceScale)
CustomResourceSubresourceScaleOrBuilder {
private static final long serialVersionUID = 0L;
// Use CustomResourceSubresourceScale.newBuilder() to construct.
private CustomResourceSubresourceScale(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CustomResourceSubresourceScale() {
specReplicasPath_ = "";
statusReplicasPath_ = "";
labelSelectorPath_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CustomResourceSubresourceScale(
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;
specReplicasPath_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
statusReplicasPath_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
labelSelectorPath_ = 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.V1beta1Apiextensions.internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceSubresourceScale_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Apiextensions.internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceSubresourceScale_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale.class, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale.Builder.class);
}
private int bitField0_;
public static final int SPECREPLICASPATH_FIELD_NUMBER = 1;
private volatile java.lang.Object specReplicasPath_;
/**
*
* SpecReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Spec.Replicas.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .spec.
* If there is no value under the given path in the CustomResource, the /scale subresource will return an error on GET.
*
* SpecReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Spec.Replicas.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .spec.
* If there is no value under the given path in the CustomResource, the /scale subresource will return an error on GET.
*
* SpecReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Spec.Replicas.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .spec.
* If there is no value under the given path in the CustomResource, the /scale subresource will return an error on GET.
*
*
* optional string specReplicasPath = 1;
*/
public com.google.protobuf.ByteString
getSpecReplicasPathBytes() {
java.lang.Object ref = specReplicasPath_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
specReplicasPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATUSREPLICASPATH_FIELD_NUMBER = 2;
private volatile java.lang.Object statusReplicasPath_;
/**
*
* StatusReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Replicas.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .status.
* If there is no value under the given path in the CustomResource, the status replica value in the /scale subresource
* will default to 0.
*
* StatusReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Replicas.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .status.
* If there is no value under the given path in the CustomResource, the status replica value in the /scale subresource
* will default to 0.
*
* StatusReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Replicas.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .status.
* If there is no value under the given path in the CustomResource, the status replica value in the /scale subresource
* will default to 0.
*
*
* optional string statusReplicasPath = 2;
*/
public com.google.protobuf.ByteString
getStatusReplicasPathBytes() {
java.lang.Object ref = statusReplicasPath_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
statusReplicasPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LABELSELECTORPATH_FIELD_NUMBER = 3;
private volatile java.lang.Object labelSelectorPath_;
/**
*
* LabelSelectorPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Selector.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .status.
* Must be set to work with HPA.
* If there is no value under the given path in the CustomResource, the status label selector value in the /scale
* subresource will default to the empty string.
* +optional
*
* LabelSelectorPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Selector.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .status.
* Must be set to work with HPA.
* If there is no value under the given path in the CustomResource, the status label selector value in the /scale
* subresource will default to the empty string.
* +optional
*
* LabelSelectorPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Selector.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .status.
* Must be set to work with HPA.
* If there is no value under the given path in the CustomResource, the status label selector value in the /scale
* subresource will default to the empty string.
* +optional
*
*
* optional string labelSelectorPath = 3;
*/
public com.google.protobuf.ByteString
getLabelSelectorPathBytes() {
java.lang.Object ref = labelSelectorPath_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
labelSelectorPath_ = 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, specReplicasPath_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, statusReplicasPath_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, labelSelectorPath_);
}
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, specReplicasPath_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, statusReplicasPath_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, labelSelectorPath_);
}
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.V1beta1Apiextensions.CustomResourceSubresourceScale)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale other = (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale) obj;
boolean result = true;
result = result && (hasSpecReplicasPath() == other.hasSpecReplicasPath());
if (hasSpecReplicasPath()) {
result = result && getSpecReplicasPath()
.equals(other.getSpecReplicasPath());
}
result = result && (hasStatusReplicasPath() == other.hasStatusReplicasPath());
if (hasStatusReplicasPath()) {
result = result && getStatusReplicasPath()
.equals(other.getStatusReplicasPath());
}
result = result && (hasLabelSelectorPath() == other.hasLabelSelectorPath());
if (hasLabelSelectorPath()) {
result = result && getLabelSelectorPath()
.equals(other.getLabelSelectorPath());
}
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 (hasSpecReplicasPath()) {
hash = (37 * hash) + SPECREPLICASPATH_FIELD_NUMBER;
hash = (53 * hash) + getSpecReplicasPath().hashCode();
}
if (hasStatusReplicasPath()) {
hash = (37 * hash) + STATUSREPLICASPATH_FIELD_NUMBER;
hash = (53 * hash) + getStatusReplicasPath().hashCode();
}
if (hasLabelSelectorPath()) {
hash = (37 * hash) + LABELSELECTORPATH_FIELD_NUMBER;
hash = (53 * hash) + getLabelSelectorPath().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale 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.V1beta1Apiextensions.CustomResourceSubresourceScale parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale 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.V1beta1Apiextensions.CustomResourceSubresourceScale parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale 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.V1beta1Apiextensions.CustomResourceSubresourceScale parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale 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.V1beta1Apiextensions.CustomResourceSubresourceScale parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale 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.V1beta1Apiextensions.CustomResourceSubresourceScale 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;
}
/**
*
* CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.
*
* SpecReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Spec.Replicas.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .spec.
* If there is no value under the given path in the CustomResource, the /scale subresource will return an error on GET.
*
* SpecReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Spec.Replicas.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .spec.
* If there is no value under the given path in the CustomResource, the /scale subresource will return an error on GET.
*
* SpecReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Spec.Replicas.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .spec.
* If there is no value under the given path in the CustomResource, the /scale subresource will return an error on GET.
*
* SpecReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Spec.Replicas.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .spec.
* If there is no value under the given path in the CustomResource, the /scale subresource will return an error on GET.
*
* SpecReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Spec.Replicas.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .spec.
* If there is no value under the given path in the CustomResource, the /scale subresource will return an error on GET.
*
* SpecReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Spec.Replicas.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .spec.
* If there is no value under the given path in the CustomResource, the /scale subresource will return an error on GET.
*
* StatusReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Replicas.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .status.
* If there is no value under the given path in the CustomResource, the status replica value in the /scale subresource
* will default to 0.
*
* StatusReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Replicas.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .status.
* If there is no value under the given path in the CustomResource, the status replica value in the /scale subresource
* will default to 0.
*
* StatusReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Replicas.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .status.
* If there is no value under the given path in the CustomResource, the status replica value in the /scale subresource
* will default to 0.
*
* StatusReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Replicas.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .status.
* If there is no value under the given path in the CustomResource, the status replica value in the /scale subresource
* will default to 0.
*
* StatusReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Replicas.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .status.
* If there is no value under the given path in the CustomResource, the status replica value in the /scale subresource
* will default to 0.
*
* StatusReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Replicas.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .status.
* If there is no value under the given path in the CustomResource, the status replica value in the /scale subresource
* will default to 0.
*
* LabelSelectorPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Selector.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .status.
* Must be set to work with HPA.
* If there is no value under the given path in the CustomResource, the status label selector value in the /scale
* subresource will default to the empty string.
* +optional
*
* LabelSelectorPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Selector.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .status.
* Must be set to work with HPA.
* If there is no value under the given path in the CustomResource, the status label selector value in the /scale
* subresource will default to the empty string.
* +optional
*
* LabelSelectorPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Selector.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .status.
* Must be set to work with HPA.
* If there is no value under the given path in the CustomResource, the status label selector value in the /scale
* subresource will default to the empty string.
* +optional
*
* LabelSelectorPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Selector.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .status.
* Must be set to work with HPA.
* If there is no value under the given path in the CustomResource, the status label selector value in the /scale
* subresource will default to the empty string.
* +optional
*
* LabelSelectorPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Selector.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .status.
* Must be set to work with HPA.
* If there is no value under the given path in the CustomResource, the status label selector value in the /scale
* subresource will default to the empty string.
* +optional
*
* LabelSelectorPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Selector.
* Only JSON paths without the array notation are allowed.
* Must be a JSON Path under .status.
* Must be set to work with HPA.
* If there is no value under the given path in the CustomResource, the status label selector value in the /scale
* subresource will default to the empty string.
* +optional
*
*
* optional string labelSelectorPath = 3;
*/
public Builder setLabelSelectorPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
labelSelectorPath_ = 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.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceScale)
}
// @@protoc_insertion_point(class_scope:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceScale)
private static final io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale();
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CustomResourceSubresourceScale parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CustomResourceSubresourceScale(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.V1beta1Apiextensions.CustomResourceSubresourceScale getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CustomResourceSubresourceStatusOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceStatus)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* CustomResourceSubresourceStatus defines how to serve the status subresource for CustomResources.
* Status is represented by the `.status` JSON path inside of a CustomResource. When set,
* * exposes a /status subresource for the custom resource
* * PUT requests to the /status subresource take a custom resource object, and ignore changes to anything except the status stanza
* * PUT/POST/PATCH requests to the custom resource ignore changes to the status stanza
*
*
* Protobuf type {@code k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceStatus}
*/
public static final class CustomResourceSubresourceStatus extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceStatus)
CustomResourceSubresourceStatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use CustomResourceSubresourceStatus.newBuilder() to construct.
private CustomResourceSubresourceStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CustomResourceSubresourceStatus() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CustomResourceSubresourceStatus(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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;
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.V1beta1Apiextensions.internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceSubresourceStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Apiextensions.internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceSubresourceStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus.class, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus.Builder.class);
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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.V1beta1Apiextensions.CustomResourceSubresourceStatus)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus other = (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus) obj;
boolean result = true;
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();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus 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.V1beta1Apiextensions.CustomResourceSubresourceStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus 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.V1beta1Apiextensions.CustomResourceSubresourceStatus parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus 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.V1beta1Apiextensions.CustomResourceSubresourceStatus parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus 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.V1beta1Apiextensions.CustomResourceSubresourceStatus parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus 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.V1beta1Apiextensions.CustomResourceSubresourceStatus 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;
}
/**
*
* CustomResourceSubresourceStatus defines how to serve the status subresource for CustomResources.
* Status is represented by the `.status` JSON path inside of a CustomResource. When set,
* * exposes a /status subresource for the custom resource
* * PUT requests to the /status subresource take a custom resource object, and ignore changes to anything except the status stanza
* * PUT/POST/PATCH requests to the custom resource ignore changes to the status stanza
*
*
* Protobuf type {@code k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceStatus}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceStatus)
io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1beta1Apiextensions.internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceSubresourceStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Apiextensions.internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceSubresourceStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus.class, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus.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();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1beta1Apiextensions.internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceSubresourceStatus_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus build() {
io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus buildPartial() {
io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus result = new io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus(this);
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.V1beta1Apiextensions.CustomResourceSubresourceStatus) {
return mergeFrom((io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus other) {
if (other == io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus.getDefaultInstance()) return this;
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.V1beta1Apiextensions.CustomResourceSubresourceStatus parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceStatus)
}
// @@protoc_insertion_point(class_scope:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceStatus)
private static final io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus();
}
public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CustomResourceSubresourceStatus parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CustomResourceSubresourceStatus(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.V1beta1Apiextensions.CustomResourceSubresourceStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CustomResourceSubresourcesOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresources)
com.google.protobuf.MessageOrBuilder {
/**
*
* Status denotes the status subresource for CustomResources
* +optional
*