All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.kubernetes.client.proto.V1beta1Apiextensions Maven / Gradle / Ivy

/*
Copyright 2021 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package io.kubernetes.client.proto;

public final class 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 distinguishing instances of requests which are
     * otherwise identical (parallel requests, etc).
     * The UID is meant to track the round trip (request/response) between the Kubernetes API server 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; */ boolean hasUid(); /** * * *
     * uid is an identifier for the individual request/response. It allows distinguishing instances of requests which are
     * otherwise identical (parallel requests, etc).
     * The UID is meant to track the round trip (request/response) between the Kubernetes API server 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; */ java.lang.String getUid(); /** * * *
     * uid is an identifier for the individual request/response. It allows distinguishing instances of requests which are
     * otherwise identical (parallel requests, etc).
     * The UID is meant to track the round trip (request/response) between the Kubernetes API server 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; */ com.google.protobuf.ByteString getUidBytes(); /** * * *
     * desiredAPIVersion is the version to convert given objects to. e.g. "myapi.example.com/v1"
     * 
* * optional string desiredAPIVersion = 2; */ boolean hasDesiredAPIVersion(); /** * * *
     * desiredAPIVersion is the version to convert given objects to. e.g. "myapi.example.com/v1"
     * 
* * optional string desiredAPIVersion = 2; */ java.lang.String getDesiredAPIVersion(); /** * * *
     * desiredAPIVersion is the version to convert given objects to. e.g. "myapi.example.com/v1"
     * 
* * optional string desiredAPIVersion = 2; */ com.google.protobuf.ByteString getDesiredAPIVersionBytes(); /** * * *
     * objects is the list of custom resource objects to be converted.
     * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension objects = 3; */ java.util.List getObjectsList(); /** * * *
     * objects is the list of custom resource objects to be converted.
     * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension objects = 3; */ io.kubernetes.client.proto.Runtime.RawExtension getObjects(int index); /** * * *
     * objects is the list of custom resource objects to be converted.
     * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension objects = 3; */ int getObjectsCount(); /** * * *
     * objects is the list of custom resource objects to be converted.
     * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension objects = 3; */ java.util.List getObjectsOrBuilderList(); /** * * *
     * objects is the list of custom resource objects to be converted.
     * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension objects = 3; */ io.kubernetes.client.proto.Runtime.RawExtensionOrBuilder getObjectsOrBuilder(int index); } /** * * *
   * 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 distinguishing instances of requests which are
     * otherwise identical (parallel requests, etc).
     * The UID is meant to track the round trip (request/response) between the Kubernetes API server 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 boolean hasUid() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * uid is an identifier for the individual request/response. It allows distinguishing instances of requests which are
     * otherwise identical (parallel requests, etc).
     * The UID is meant to track the round trip (request/response) between the Kubernetes API server 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 java.lang.String getUid() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { uid_ = s; } return s; } } /** * * *
     * uid is an identifier for the individual request/response. It allows distinguishing instances of requests which are
     * otherwise identical (parallel requests, etc).
     * The UID is meant to track the round trip (request/response) between the Kubernetes API server 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"
     * 
* * optional string desiredAPIVersion = 2; */ public boolean hasDesiredAPIVersion() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * desiredAPIVersion is the version to convert given objects to. e.g. "myapi.example.com/v1"
     * 
* * optional string desiredAPIVersion = 2; */ public java.lang.String getDesiredAPIVersion() { java.lang.Object ref = desiredAPIVersion_; 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()) { desiredAPIVersion_ = s; } return s; } } /** * * *
     * desiredAPIVersion is the version to convert given objects to. e.g. "myapi.example.com/v1"
     * 
* * optional string desiredAPIVersion = 2; */ public com.google.protobuf.ByteString getDesiredAPIVersionBytes() { java.lang.Object ref = desiredAPIVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); desiredAPIVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OBJECTS_FIELD_NUMBER = 3; private java.util.List objects_; /** * * *
     * objects is the list of custom resource objects to be converted.
     * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension objects = 3; */ public java.util.List getObjectsList() { return objects_; } /** * * *
     * objects is the list of custom resource objects to be converted.
     * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension objects = 3; */ public java.util.List getObjectsOrBuilderList() { return objects_; } /** * * *
     * objects is the list of custom resource objects to be converted.
     * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension objects = 3; */ public int getObjectsCount() { return objects_.size(); } /** * * *
     * objects is the list of custom resource objects to be converted.
     * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension objects = 3; */ public io.kubernetes.client.proto.Runtime.RawExtension getObjects(int index) { return objects_.get(index); } /** * * *
     * objects is the list of custom resource objects to be converted.
     * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension objects = 3; */ public io.kubernetes.client.proto.Runtime.RawExtensionOrBuilder getObjectsOrBuilder(int index) { return objects_.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, uid_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, desiredAPIVersion_); } for (int i = 0; i < objects_.size(); i++) { output.writeMessage(3, objects_.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, uid_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, desiredAPIVersion_); } for (int i = 0; i < objects_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, objects_.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.ConversionRequest)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest other = (io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest) obj; boolean result = true; result = result && (hasUid() == other.hasUid()); if (hasUid()) { result = result && getUid().equals(other.getUid()); } result = result && (hasDesiredAPIVersion() == other.hasDesiredAPIVersion()); if (hasDesiredAPIVersion()) { result = result && getDesiredAPIVersion().equals(other.getDesiredAPIVersion()); } result = result && getObjectsList().equals(other.getObjectsList()); 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 (hasDesiredAPIVersion()) { hash = (37 * hash) + DESIREDAPIVERSION_FIELD_NUMBER; hash = (53 * hash) + getDesiredAPIVersion().hashCode(); } if (getObjectsCount() > 0) { hash = (37 * hash) + OBJECTS_FIELD_NUMBER; hash = (53 * hash) + getObjectsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest 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.ConversionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest 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.ConversionRequest parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest 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.ConversionRequest parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest 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.ConversionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest 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.ConversionRequest 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.ConversionRequest 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.ConversionRequest 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; } /** * * *
     * ConversionRequest describes the conversion request parameters.
     * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionRequest} */ 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.ConversionRequest) io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequestOrBuilder { 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); } // Construct using // io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getObjectsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); uid_ = ""; bitField0_ = (bitField0_ & ~0x00000001); desiredAPIVersion_ = ""; bitField0_ = (bitField0_ & ~0x00000002); if (objectsBuilder_ == null) { objects_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { objectsBuilder_.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_ConversionRequest_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest build() { io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest buildPartial() { io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest result = new io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.uid_ = uid_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.desiredAPIVersion_ = desiredAPIVersion_; if (objectsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { objects_ = java.util.Collections.unmodifiableList(objects_); bitField0_ = (bitField0_ & ~0x00000004); } result.objects_ = objects_; } else { result.objects_ = objectsBuilder_.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.ConversionRequest) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest other) { if (other == io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest .getDefaultInstance()) return this; if (other.hasUid()) { bitField0_ |= 0x00000001; uid_ = other.uid_; onChanged(); } if (other.hasDesiredAPIVersion()) { bitField0_ |= 0x00000002; desiredAPIVersion_ = other.desiredAPIVersion_; onChanged(); } if (objectsBuilder_ == null) { if (!other.objects_.isEmpty()) { if (objects_.isEmpty()) { objects_ = other.objects_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureObjectsIsMutable(); objects_.addAll(other.objects_); } onChanged(); } } else { if (!other.objects_.isEmpty()) { if (objectsBuilder_.isEmpty()) { objectsBuilder_.dispose(); objectsBuilder_ = null; objects_ = other.objects_; bitField0_ = (bitField0_ & ~0x00000004); objectsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getObjectsFieldBuilder() : null; } else { objectsBuilder_.addAllMessages(other.objects_); } } } 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.ConversionRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object uid_ = ""; /** * * *
       * uid is an identifier for the individual request/response. It allows distinguishing instances of requests which are
       * otherwise identical (parallel requests, etc).
       * The UID is meant to track the round trip (request/response) between the Kubernetes API server 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 boolean hasUid() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * uid is an identifier for the individual request/response. It allows distinguishing instances of requests which are
       * otherwise identical (parallel requests, etc).
       * The UID is meant to track the round trip (request/response) between the Kubernetes API server 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 java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { uid_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * uid is an identifier for the individual request/response. It allows distinguishing instances of requests which are
       * otherwise identical (parallel requests, etc).
       * The UID is meant to track the round trip (request/response) between the Kubernetes API server 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 String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * uid is an identifier for the individual request/response. It allows distinguishing instances of requests which are
       * otherwise identical (parallel requests, etc).
       * The UID is meant to track the round trip (request/response) between the Kubernetes API server 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 Builder setUid(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; uid_ = value; onChanged(); return this; } /** * * *
       * uid is an identifier for the individual request/response. It allows distinguishing instances of requests which are
       * otherwise identical (parallel requests, etc).
       * The UID is meant to track the round trip (request/response) between the Kubernetes API server 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 Builder clearUid() { bitField0_ = (bitField0_ & ~0x00000001); uid_ = getDefaultInstance().getUid(); onChanged(); return this; } /** * * *
       * uid is an identifier for the individual request/response. It allows distinguishing instances of requests which are
       * otherwise identical (parallel requests, etc).
       * The UID is meant to track the round trip (request/response) between the Kubernetes API server 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 Builder setUidBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; uid_ = value; onChanged(); return this; } private java.lang.Object desiredAPIVersion_ = ""; /** * * *
       * desiredAPIVersion is the version to convert given objects to. e.g. "myapi.example.com/v1"
       * 
* * optional string desiredAPIVersion = 2; */ public boolean hasDesiredAPIVersion() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * desiredAPIVersion is the version to convert given objects to. e.g. "myapi.example.com/v1"
       * 
* * optional string desiredAPIVersion = 2; */ public java.lang.String getDesiredAPIVersion() { java.lang.Object ref = desiredAPIVersion_; 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()) { desiredAPIVersion_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * desiredAPIVersion is the version to convert given objects to. e.g. "myapi.example.com/v1"
       * 
* * optional string desiredAPIVersion = 2; */ public com.google.protobuf.ByteString getDesiredAPIVersionBytes() { java.lang.Object ref = desiredAPIVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); desiredAPIVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * desiredAPIVersion is the version to convert given objects to. e.g. "myapi.example.com/v1"
       * 
* * optional string desiredAPIVersion = 2; */ public Builder setDesiredAPIVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; desiredAPIVersion_ = value; onChanged(); return this; } /** * * *
       * desiredAPIVersion is the version to convert given objects to. e.g. "myapi.example.com/v1"
       * 
* * optional string desiredAPIVersion = 2; */ public Builder clearDesiredAPIVersion() { bitField0_ = (bitField0_ & ~0x00000002); desiredAPIVersion_ = getDefaultInstance().getDesiredAPIVersion(); onChanged(); return this; } /** * * *
       * desiredAPIVersion is the version to convert given objects to. e.g. "myapi.example.com/v1"
       * 
* * optional string desiredAPIVersion = 2; */ public Builder setDesiredAPIVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; desiredAPIVersion_ = value; onChanged(); return this; } private java.util.List objects_ = java.util.Collections.emptyList(); private void ensureObjectsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { objects_ = new java.util.ArrayList(objects_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.Runtime.RawExtension, io.kubernetes.client.proto.Runtime.RawExtension.Builder, io.kubernetes.client.proto.Runtime.RawExtensionOrBuilder> objectsBuilder_; /** * * *
       * objects is the list of custom resource objects to be converted.
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension objects = 3; */ public java.util.List getObjectsList() { if (objectsBuilder_ == null) { return java.util.Collections.unmodifiableList(objects_); } else { return objectsBuilder_.getMessageList(); } } /** * * *
       * objects is the list of custom resource objects to be converted.
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension objects = 3; */ public int getObjectsCount() { if (objectsBuilder_ == null) { return objects_.size(); } else { return objectsBuilder_.getCount(); } } /** * * *
       * objects is the list of custom resource objects to be converted.
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension objects = 3; */ public io.kubernetes.client.proto.Runtime.RawExtension getObjects(int index) { if (objectsBuilder_ == null) { return objects_.get(index); } else { return objectsBuilder_.getMessage(index); } } /** * * *
       * objects is the list of custom resource objects to be converted.
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension objects = 3; */ public Builder setObjects(int index, io.kubernetes.client.proto.Runtime.RawExtension value) { if (objectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureObjectsIsMutable(); objects_.set(index, value); onChanged(); } else { objectsBuilder_.setMessage(index, value); } return this; } /** * * *
       * objects is the list of custom resource objects to be converted.
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension objects = 3; */ public Builder setObjects( int index, io.kubernetes.client.proto.Runtime.RawExtension.Builder builderForValue) { if (objectsBuilder_ == null) { ensureObjectsIsMutable(); objects_.set(index, builderForValue.build()); onChanged(); } else { objectsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * objects is the list of custom resource objects to be converted.
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension objects = 3; */ public Builder addObjects(io.kubernetes.client.proto.Runtime.RawExtension value) { if (objectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureObjectsIsMutable(); objects_.add(value); onChanged(); } else { objectsBuilder_.addMessage(value); } return this; } /** * * *
       * objects is the list of custom resource objects to be converted.
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension objects = 3; */ public Builder addObjects(int index, io.kubernetes.client.proto.Runtime.RawExtension value) { if (objectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureObjectsIsMutable(); objects_.add(index, value); onChanged(); } else { objectsBuilder_.addMessage(index, value); } return this; } /** * * *
       * objects is the list of custom resource objects to be converted.
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension objects = 3; */ public Builder addObjects( io.kubernetes.client.proto.Runtime.RawExtension.Builder builderForValue) { if (objectsBuilder_ == null) { ensureObjectsIsMutable(); objects_.add(builderForValue.build()); onChanged(); } else { objectsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * objects is the list of custom resource objects to be converted.
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension objects = 3; */ public Builder addObjects( int index, io.kubernetes.client.proto.Runtime.RawExtension.Builder builderForValue) { if (objectsBuilder_ == null) { ensureObjectsIsMutable(); objects_.add(index, builderForValue.build()); onChanged(); } else { objectsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * objects is the list of custom resource objects to be converted.
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension objects = 3; */ public Builder addAllObjects( java.lang.Iterable values) { if (objectsBuilder_ == null) { ensureObjectsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, objects_); onChanged(); } else { objectsBuilder_.addAllMessages(values); } return this; } /** * * *
       * objects is the list of custom resource objects to be converted.
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension objects = 3; */ public Builder clearObjects() { if (objectsBuilder_ == null) { objects_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { objectsBuilder_.clear(); } return this; } /** * * *
       * objects is the list of custom resource objects to be converted.
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension objects = 3; */ public Builder removeObjects(int index) { if (objectsBuilder_ == null) { ensureObjectsIsMutable(); objects_.remove(index); onChanged(); } else { objectsBuilder_.remove(index); } return this; } /** * * *
       * objects is the list of custom resource objects to be converted.
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension objects = 3; */ public io.kubernetes.client.proto.Runtime.RawExtension.Builder getObjectsBuilder(int index) { return getObjectsFieldBuilder().getBuilder(index); } /** * * *
       * objects is the list of custom resource objects to be converted.
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension objects = 3; */ public io.kubernetes.client.proto.Runtime.RawExtensionOrBuilder getObjectsOrBuilder( int index) { if (objectsBuilder_ == null) { return objects_.get(index); } else { return objectsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * objects is the list of custom resource objects to be converted.
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension objects = 3; */ public java.util.List getObjectsOrBuilderList() { if (objectsBuilder_ != null) { return objectsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(objects_); } } /** * * *
       * objects is the list of custom resource objects to be converted.
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension objects = 3; */ public io.kubernetes.client.proto.Runtime.RawExtension.Builder addObjectsBuilder() { return getObjectsFieldBuilder() .addBuilder(io.kubernetes.client.proto.Runtime.RawExtension.getDefaultInstance()); } /** * * *
       * objects is the list of custom resource objects to be converted.
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension objects = 3; */ public io.kubernetes.client.proto.Runtime.RawExtension.Builder addObjectsBuilder(int index) { return getObjectsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.Runtime.RawExtension.getDefaultInstance()); } /** * * *
       * objects is the list of custom resource objects to be converted.
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension objects = 3; */ public java.util.List getObjectsBuilderList() { return getObjectsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.Runtime.RawExtension, io.kubernetes.client.proto.Runtime.RawExtension.Builder, io.kubernetes.client.proto.Runtime.RawExtensionOrBuilder> getObjectsFieldBuilder() { if (objectsBuilder_ == null) { objectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.Runtime.RawExtension, io.kubernetes.client.proto.Runtime.RawExtension.Builder, io.kubernetes.client.proto.Runtime.RawExtensionOrBuilder>( objects_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); objects_ = null; } return objectsBuilder_; } @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.ConversionRequest) } // @@protoc_insertion_point(class_scope:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionRequest) private static final io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest(); } public static io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConversionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConversionRequest(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.ConversionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConversionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionResponse) com.google.protobuf.MessageOrBuilder { /** * * *
     * uid is an identifier for the individual request/response.
     * This should be copied over from the corresponding `request.uid`.
     * 
* * optional string uid = 1; */ boolean hasUid(); /** * * *
     * uid is an identifier for the individual request/response.
     * This should be copied over from the corresponding `request.uid`.
     * 
* * optional string uid = 1; */ java.lang.String getUid(); /** * * *
     * uid is an identifier for the individual request/response.
     * This should be copied over from the corresponding `request.uid`.
     * 
* * optional string uid = 1; */ com.google.protobuf.ByteString getUidBytes(); /** * * *
     * 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 `request.desiredAPIVersion`. The list
     * must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
     * The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
     * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2; */ java.util.List getConvertedObjectsList(); /** * * *
     * 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 `request.desiredAPIVersion`. The list
     * must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
     * The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
     * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2; */ io.kubernetes.client.proto.Runtime.RawExtension getConvertedObjects(int 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 `request.desiredAPIVersion`. The list
     * must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
     * The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
     * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2; */ int getConvertedObjectsCount(); /** * * *
     * 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 `request.desiredAPIVersion`. The list
     * must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
     * The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
     * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2; */ java.util.List getConvertedObjectsOrBuilderList(); /** * * *
     * 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 `request.desiredAPIVersion`. The list
     * must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
     * The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
     * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2; */ io.kubernetes.client.proto.Runtime.RawExtensionOrBuilder getConvertedObjectsOrBuilder( int index); /** * * *
     * 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 represents 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; */ boolean hasResult(); /** * * *
     * 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 represents 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; */ io.kubernetes.client.proto.Meta.Status getResult(); /** * * *
     * 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 represents 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; */ io.kubernetes.client.proto.Meta.StatusOrBuilder getResultOrBuilder(); } /** * * *
   * ConversionResponse describes a conversion response.
   * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionResponse} */ public static final class ConversionResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionResponse) ConversionResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ConversionResponse.newBuilder() to construct. private ConversionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConversionResponse() { uid_ = ""; convertedObjects_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ConversionResponse( 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: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { convertedObjects_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } convertedObjects_.add( input.readMessage( io.kubernetes.client.proto.Runtime.RawExtension.PARSER, extensionRegistry)); break; } case 26: { io.kubernetes.client.proto.Meta.Status.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = result_.toBuilder(); } result_ = input.readMessage( io.kubernetes.client.proto.Meta.Status.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(result_); result_ = 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 { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { convertedObjects_ = java.util.Collections.unmodifiableList(convertedObjects_); } 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_ConversionResponse_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_ConversionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse.class, io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse.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.
     * This should be copied over from the corresponding `request.uid`.
     * 
* * optional string uid = 1; */ public boolean hasUid() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * uid is an identifier for the individual request/response.
     * This should be copied over from the corresponding `request.uid`.
     * 
* * optional string uid = 1; */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { uid_ = s; } return s; } } /** * * *
     * uid is an identifier for the individual request/response.
     * This should be copied over from the corresponding `request.uid`.
     * 
* * 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 `request.desiredAPIVersion`. The list
     * must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
     * The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
     * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2; */ public java.util.List getConvertedObjectsList() { return 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 `request.desiredAPIVersion`. The list
     * must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
     * The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
     * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2; */ public java.util.List getConvertedObjectsOrBuilderList() { return 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 `request.desiredAPIVersion`. The list
     * must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
     * The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
     * 
* * 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 `request.desiredAPIVersion`. The list
     * must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
     * The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
     * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2; */ public io.kubernetes.client.proto.Runtime.RawExtension getConvertedObjects(int index) { return convertedObjects_.get(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 `request.desiredAPIVersion`. The list
     * must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
     * The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
     * 
* * 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 represents 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 boolean hasResult() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * 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 represents 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.Status getResult() { return result_ == null ? io.kubernetes.client.proto.Meta.Status.getDefaultInstance() : 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 represents 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.
     * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionResponse} */ 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.ConversionResponse) io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponseOrBuilder { 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_ConversionResponse_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_ConversionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse.class, io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse.Builder.class); } // Construct using // io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getConvertedObjectsFieldBuilder(); getResultFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); uid_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (convertedObjectsBuilder_ == null) { convertedObjects_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { convertedObjectsBuilder_.clear(); } if (resultBuilder_ == null) { result_ = null; } else { resultBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); 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_ConversionResponse_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse build() { io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse buildPartial() { io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse result = new io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.uid_ = uid_; if (convertedObjectsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { convertedObjects_ = java.util.Collections.unmodifiableList(convertedObjects_); bitField0_ = (bitField0_ & ~0x00000002); } result.convertedObjects_ = convertedObjects_; } else { result.convertedObjects_ = convertedObjectsBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } if (resultBuilder_ == null) { result.result_ = result_; } else { result.result_ = resultBuilder_.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.ConversionResponse) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse other) { if (other == io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse .getDefaultInstance()) return this; if (other.hasUid()) { bitField0_ |= 0x00000001; uid_ = other.uid_; onChanged(); } if (convertedObjectsBuilder_ == null) { if (!other.convertedObjects_.isEmpty()) { if (convertedObjects_.isEmpty()) { convertedObjects_ = other.convertedObjects_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureConvertedObjectsIsMutable(); convertedObjects_.addAll(other.convertedObjects_); } onChanged(); } } else { if (!other.convertedObjects_.isEmpty()) { if (convertedObjectsBuilder_.isEmpty()) { convertedObjectsBuilder_.dispose(); convertedObjectsBuilder_ = null; convertedObjects_ = other.convertedObjects_; bitField0_ = (bitField0_ & ~0x00000002); convertedObjectsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getConvertedObjectsFieldBuilder() : null; } else { convertedObjectsBuilder_.addAllMessages(other.convertedObjects_); } } } if (other.hasResult()) { mergeResult(other.getResult()); } 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.ConversionResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object uid_ = ""; /** * * *
       * uid is an identifier for the individual request/response.
       * This should be copied over from the corresponding `request.uid`.
       * 
* * optional string uid = 1; */ public boolean hasUid() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * uid is an identifier for the individual request/response.
       * This should be copied over from the corresponding `request.uid`.
       * 
* * optional string uid = 1; */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { uid_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * uid is an identifier for the individual request/response.
       * This should be copied over from the corresponding `request.uid`.
       * 
* * optional string uid = 1; */ public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * uid is an identifier for the individual request/response.
       * This should be copied over from the corresponding `request.uid`.
       * 
* * optional string uid = 1; */ public Builder setUid(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; uid_ = value; onChanged(); return this; } /** * * *
       * uid is an identifier for the individual request/response.
       * This should be copied over from the corresponding `request.uid`.
       * 
* * optional string uid = 1; */ public Builder clearUid() { bitField0_ = (bitField0_ & ~0x00000001); uid_ = getDefaultInstance().getUid(); onChanged(); return this; } /** * * *
       * uid is an identifier for the individual request/response.
       * This should be copied over from the corresponding `request.uid`.
       * 
* * optional string uid = 1; */ public Builder setUidBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; uid_ = value; onChanged(); return this; } private java.util.List convertedObjects_ = java.util.Collections.emptyList(); private void ensureConvertedObjectsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { convertedObjects_ = new java.util.ArrayList( convertedObjects_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.Runtime.RawExtension, io.kubernetes.client.proto.Runtime.RawExtension.Builder, io.kubernetes.client.proto.Runtime.RawExtensionOrBuilder> convertedObjectsBuilder_; /** * * *
       * 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 `request.desiredAPIVersion`. The list
       * must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       * The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2; */ public java.util.List getConvertedObjectsList() { if (convertedObjectsBuilder_ == null) { return java.util.Collections.unmodifiableList(convertedObjects_); } else { return convertedObjectsBuilder_.getMessageList(); } } /** * * *
       * 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 `request.desiredAPIVersion`. The list
       * must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       * The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       * 
* * 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 `request.desiredAPIVersion`. The list
       * must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       * The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2; */ public io.kubernetes.client.proto.Runtime.RawExtension getConvertedObjects(int index) { if (convertedObjectsBuilder_ == null) { return convertedObjects_.get(index); } else { return convertedObjectsBuilder_.getMessage(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 `request.desiredAPIVersion`. The list
       * must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       * The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       * 
* * 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 `request.desiredAPIVersion`. The list
       * must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       * The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2; */ public Builder setConvertedObjects( int index, io.kubernetes.client.proto.Runtime.RawExtension.Builder builderForValue) { if (convertedObjectsBuilder_ == null) { ensureConvertedObjectsIsMutable(); convertedObjects_.set(index, builderForValue.build()); onChanged(); } else { convertedObjectsBuilder_.setMessage(index, builderForValue.build()); } 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 `request.desiredAPIVersion`. The list
       * must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       * The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       * 
* * 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 `request.desiredAPIVersion`. The list
       * must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       * The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       * 
* * 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 `request.desiredAPIVersion`. The list
       * must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       * The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2; */ public Builder addConvertedObjects( io.kubernetes.client.proto.Runtime.RawExtension.Builder builderForValue) { if (convertedObjectsBuilder_ == null) { ensureConvertedObjectsIsMutable(); convertedObjects_.add(builderForValue.build()); onChanged(); } else { convertedObjectsBuilder_.addMessage(builderForValue.build()); } 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 `request.desiredAPIVersion`. The list
       * must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       * The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2; */ public Builder addConvertedObjects( int index, io.kubernetes.client.proto.Runtime.RawExtension.Builder builderForValue) { if (convertedObjectsBuilder_ == null) { ensureConvertedObjectsIsMutable(); convertedObjects_.add(index, builderForValue.build()); onChanged(); } else { convertedObjectsBuilder_.addMessage(index, builderForValue.build()); } 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 `request.desiredAPIVersion`. The list
       * must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       * The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2; */ public Builder addAllConvertedObjects( java.lang.Iterable values) { if (convertedObjectsBuilder_ == null) { ensureConvertedObjectsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, convertedObjects_); onChanged(); } else { convertedObjectsBuilder_.addAllMessages(values); } 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 `request.desiredAPIVersion`. The list
       * must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       * The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2; */ public Builder clearConvertedObjects() { if (convertedObjectsBuilder_ == null) { convertedObjects_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { convertedObjectsBuilder_.clear(); } 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 `request.desiredAPIVersion`. The list
       * must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       * The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2; */ public Builder removeConvertedObjects(int index) { if (convertedObjectsBuilder_ == null) { ensureConvertedObjectsIsMutable(); convertedObjects_.remove(index); onChanged(); } else { convertedObjectsBuilder_.remove(index); } 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 `request.desiredAPIVersion`. The list
       * must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       * The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       * 
* * 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 `request.desiredAPIVersion`. The list
       * must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       * The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       * 
* * 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 `request.desiredAPIVersion`. The list
       * must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       * The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2; */ public java.util.List getConvertedObjectsOrBuilderList() { if (convertedObjectsBuilder_ != null) { return convertedObjectsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(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 `request.desiredAPIVersion`. The list
       * must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       * The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2; */ public io.kubernetes.client.proto.Runtime.RawExtension.Builder addConvertedObjectsBuilder() { return getConvertedObjectsFieldBuilder() .addBuilder(io.kubernetes.client.proto.Runtime.RawExtension.getDefaultInstance()); } /** * * *
       * 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 `request.desiredAPIVersion`. The list
       * must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       * The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2; */ public io.kubernetes.client.proto.Runtime.RawExtension.Builder addConvertedObjectsBuilder( int index) { return getConvertedObjectsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.Runtime.RawExtension.getDefaultInstance()); } /** * * *
       * 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 `request.desiredAPIVersion`. The list
       * must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       * The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2; */ public java.util.List getConvertedObjectsBuilderList() { return getConvertedObjectsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.Runtime.RawExtension, io.kubernetes.client.proto.Runtime.RawExtension.Builder, io.kubernetes.client.proto.Runtime.RawExtensionOrBuilder> getConvertedObjectsFieldBuilder() { if (convertedObjectsBuilder_ == null) { convertedObjectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.Runtime.RawExtension, io.kubernetes.client.proto.Runtime.RawExtension.Builder, io.kubernetes.client.proto.Runtime.RawExtensionOrBuilder>( convertedObjects_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); convertedObjects_ = null; } return convertedObjectsBuilder_; } private io.kubernetes.client.proto.Meta.Status result_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Status, io.kubernetes.client.proto.Meta.Status.Builder, io.kubernetes.client.proto.Meta.StatusOrBuilder> resultBuilder_; /** * * *
       * 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 represents 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 boolean hasResult() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * 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 represents 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.Status getResult() { if (resultBuilder_ == null) { return result_ == null ? io.kubernetes.client.proto.Meta.Status.getDefaultInstance() : result_; } else { return resultBuilder_.getMessage(); } } /** * * *
       * 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 represents 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 represents 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.Builder builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); onChanged(); } else { resultBuilder_.setMessage(builderForValue.build()); } 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 represents 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 mergeResult(io.kubernetes.client.proto.Meta.Status value) { if (resultBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && result_ != null && result_ != io.kubernetes.client.proto.Meta.Status.getDefaultInstance()) { result_ = io.kubernetes.client.proto.Meta.Status.newBuilder(result_) .mergeFrom(value) .buildPartial(); } else { result_ = value; } onChanged(); } else { resultBuilder_.mergeFrom(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 represents 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 clearResult() { if (resultBuilder_ == null) { result_ = null; onChanged(); } else { resultBuilder_.clear(); } bitField0_ = (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 represents 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.Status.Builder getResultBuilder() { bitField0_ |= 0x00000004; onChanged(); return getResultFieldBuilder().getBuilder(); } /** * * *
       * 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 represents 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() { if (resultBuilder_ != null) { return resultBuilder_.getMessageOrBuilder(); } else { return result_ == null ? io.kubernetes.client.proto.Meta.Status.getDefaultInstance() : 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 represents 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
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionRequest request = 1; * */ boolean hasRequest(); /** * * *
     * request describes the attributes for the conversion request.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionRequest request = 1; * */ io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest getRequest(); /** * * *
     * request describes the attributes for the conversion request.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionRequest request = 1; * */ io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequestOrBuilder getRequestOrBuilder(); /** * * *
     * response describes the attributes for the conversion response.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionResponse response = 2; * */ boolean hasResponse(); /** * * *
     * response describes the attributes for the conversion response.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionResponse response = 2; * */ io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse getResponse(); /** * * *
     * response describes the attributes for the conversion response.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionResponse response = 2; * */ io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponseOrBuilder getResponseOrBuilder(); } /** * * *
   * ConversionReview describes a conversion request/response.
   * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionReview} */ public static final class ConversionReview extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionReview) ConversionReviewOrBuilder { private static final long serialVersionUID = 0L; // Use ConversionReview.newBuilder() to construct. private ConversionReview(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConversionReview() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ConversionReview( 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.V1beta1Apiextensions.ConversionRequest.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = request_.toBuilder(); } request_ = input.readMessage( io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(request_); request_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = response_.toBuilder(); } response_ = input.readMessage( io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(response_); response_ = 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_ConversionReview_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_ConversionReview_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.ConversionReview.class, io.kubernetes.client.proto.V1beta1Apiextensions.ConversionReview.Builder.class); } private int bitField0_; public static final int REQUEST_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest request_; /** * * *
     * request describes the attributes for the conversion request.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionRequest request = 1; * */ public boolean hasRequest() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * request describes the attributes for the conversion request.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionRequest request = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest getRequest() { return request_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest.getDefaultInstance() : request_; } /** * * *
     * request describes the attributes for the conversion request.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionRequest request = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequestOrBuilder getRequestOrBuilder() { return request_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest.getDefaultInstance() : request_; } public static final int RESPONSE_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse response_; /** * * *
     * response describes the attributes for the conversion response.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionResponse response = 2; * */ public boolean hasResponse() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * response describes the attributes for the conversion response.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionResponse response = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse getResponse() { return response_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse.getDefaultInstance() : response_; } /** * * *
     * response describes the attributes for the conversion response.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionResponse response = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponseOrBuilder getResponseOrBuilder() { return response_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse.getDefaultInstance() : response_; } 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, getRequest()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getResponse()); } 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, getRequest()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getResponse()); } 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.ConversionReview)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Apiextensions.ConversionReview other = (io.kubernetes.client.proto.V1beta1Apiextensions.ConversionReview) obj; boolean result = true; result = result && (hasRequest() == other.hasRequest()); if (hasRequest()) { result = result && getRequest().equals(other.getRequest()); } result = result && (hasResponse() == other.hasResponse()); if (hasResponse()) { result = result && getResponse().equals(other.getResponse()); } 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 (hasRequest()) { hash = (37 * hash) + REQUEST_FIELD_NUMBER; hash = (53 * hash) + getRequest().hashCode(); } if (hasResponse()) { hash = (37 * hash) + RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getResponse().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Apiextensions.ConversionReview parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.ConversionReview 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.ConversionReview parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.ConversionReview 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.ConversionReview parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.ConversionReview 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.ConversionReview parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Apiextensions.ConversionReview 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.ConversionReview parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Apiextensions.ConversionReview 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.ConversionReview 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.ConversionReview 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.ConversionReview 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; } /** * * *
     * ConversionReview describes a conversion request/response.
     * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionReview} */ 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.ConversionReview) io.kubernetes.client.proto.V1beta1Apiextensions.ConversionReviewOrBuilder { 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_ConversionReview_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_ConversionReview_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.ConversionReview.class, io.kubernetes.client.proto.V1beta1Apiextensions.ConversionReview.Builder.class); } // Construct using // io.kubernetes.client.proto.V1beta1Apiextensions.ConversionReview.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRequestFieldBuilder(); getResponseFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (requestBuilder_ == null) { request_ = null; } else { requestBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (responseBuilder_ == null) { response_ = null; } else { responseBuilder_.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_ConversionReview_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.ConversionReview getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Apiextensions.ConversionReview .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.ConversionReview build() { io.kubernetes.client.proto.V1beta1Apiextensions.ConversionReview result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.ConversionReview buildPartial() { io.kubernetes.client.proto.V1beta1Apiextensions.ConversionReview result = new io.kubernetes.client.proto.V1beta1Apiextensions.ConversionReview(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (requestBuilder_ == null) { result.request_ = request_; } else { result.request_ = requestBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (responseBuilder_ == null) { result.response_ = response_; } else { result.response_ = responseBuilder_.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.ConversionReview) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Apiextensions.ConversionReview) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Apiextensions.ConversionReview other) { if (other == io.kubernetes.client.proto.V1beta1Apiextensions.ConversionReview .getDefaultInstance()) return this; if (other.hasRequest()) { mergeRequest(other.getRequest()); } if (other.hasResponse()) { mergeResponse(other.getResponse()); } 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.ConversionReview parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Apiextensions.ConversionReview) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest request_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest, io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequestOrBuilder> requestBuilder_; /** * * *
       * request describes the attributes for the conversion request.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionRequest request = 1; * */ public boolean hasRequest() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * request describes the attributes for the conversion request.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionRequest request = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest getRequest() { if (requestBuilder_ == null) { return request_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest .getDefaultInstance() : request_; } else { return requestBuilder_.getMessage(); } } /** * * *
       * request describes the attributes for the conversion request.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionRequest request = 1; * */ public Builder setRequest( io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest value) { if (requestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { requestBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * request describes the attributes for the conversion request.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionRequest request = 1; * */ public Builder setRequest( io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest.Builder builderForValue) { if (requestBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { requestBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * request describes the attributes for the conversion request.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionRequest request = 1; * */ public Builder mergeRequest( io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest value) { if (requestBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && request_ != null && request_ != io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest .getDefaultInstance()) { request_ = io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest.newBuilder( request_) .mergeFrom(value) .buildPartial(); } else { request_ = value; } onChanged(); } else { requestBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * request describes the attributes for the conversion request.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionRequest request = 1; * */ public Builder clearRequest() { if (requestBuilder_ == null) { request_ = null; onChanged(); } else { requestBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * request describes the attributes for the conversion request.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionRequest request = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest.Builder getRequestBuilder() { bitField0_ |= 0x00000001; onChanged(); return getRequestFieldBuilder().getBuilder(); } /** * * *
       * request describes the attributes for the conversion request.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionRequest request = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequestOrBuilder getRequestOrBuilder() { if (requestBuilder_ != null) { return requestBuilder_.getMessageOrBuilder(); } else { return request_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest .getDefaultInstance() : request_; } } /** * * *
       * request describes the attributes for the conversion request.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionRequest request = 1; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest, io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequestOrBuilder> getRequestFieldBuilder() { if (requestBuilder_ == null) { requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest, io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequest.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.ConversionRequestOrBuilder>( getRequest(), getParentForChildren(), isClean()); request_ = null; } return requestBuilder_; } private io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse response_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse, io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponseOrBuilder> responseBuilder_; /** * * *
       * response describes the attributes for the conversion response.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionResponse response = 2; * */ public boolean hasResponse() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * response describes the attributes for the conversion response.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionResponse response = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse getResponse() { if (responseBuilder_ == null) { return response_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse .getDefaultInstance() : response_; } else { return responseBuilder_.getMessage(); } } /** * * *
       * response describes the attributes for the conversion response.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionResponse response = 2; * */ public Builder setResponse( io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse value) { if (responseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { responseBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * response describes the attributes for the conversion response.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionResponse response = 2; * */ public Builder setResponse( io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse.Builder builderForValue) { if (responseBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { responseBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * response describes the attributes for the conversion response.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionResponse response = 2; * */ public Builder mergeResponse( io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse value) { if (responseBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && response_ != null && response_ != io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse .getDefaultInstance()) { response_ = io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse.newBuilder( response_) .mergeFrom(value) .buildPartial(); } else { response_ = value; } onChanged(); } else { responseBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * response describes the attributes for the conversion response.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionResponse response = 2; * */ public Builder clearResponse() { if (responseBuilder_ == null) { response_ = null; onChanged(); } else { responseBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * response describes the attributes for the conversion response.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionResponse response = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse.Builder getResponseBuilder() { bitField0_ |= 0x00000002; onChanged(); return getResponseFieldBuilder().getBuilder(); } /** * * *
       * response describes the attributes for the conversion response.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionResponse response = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponseOrBuilder getResponseOrBuilder() { if (responseBuilder_ != null) { return responseBuilder_.getMessageOrBuilder(); } else { return response_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse .getDefaultInstance() : response_; } } /** * * *
       * response describes the attributes for the conversion response.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionResponse response = 2; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse, io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponseOrBuilder> getResponseFieldBuilder() { if (responseBuilder_ == null) { responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse, io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponseOrBuilder>( getResponse(), getParentForChildren(), isClean()); response_ = null; } return responseBuilder_; } @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.ConversionReview) } // @@protoc_insertion_point(class_scope:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionReview) private static final io.kubernetes.client.proto.V1beta1Apiextensions.ConversionReview DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Apiextensions.ConversionReview(); } public static io.kubernetes.client.proto.V1beta1Apiextensions.ConversionReview getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConversionReview parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConversionReview(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.ConversionReview getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CustomResourceColumnDefinitionOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition) com.google.protobuf.MessageOrBuilder { /** * * *
     * name is a human readable name for the column.
     * 
* * optional string name = 1; */ boolean hasName(); /** * * *
     * name is a human readable name for the column.
     * 
* * optional string name = 1; */ java.lang.String getName(); /** * * *
     * name is a human readable name for the column.
     * 
* * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * * *
     * 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 details.
     * 
* * optional string type = 2; */ boolean hasType(); /** * * *
     * 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 details.
     * 
* * optional string type = 2; */ java.lang.String getType(); /** * * *
     * 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 details.
     * 
* * optional string type = 2; */ com.google.protobuf.ByteString getTypeBytes(); /** * * *
     * 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 details.
     * +optional
     * 
* * optional string format = 3; */ boolean hasFormat(); /** * * *
     * 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 details.
     * +optional
     * 
* * optional string format = 3; */ java.lang.String getFormat(); /** * * *
     * 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 details.
     * +optional
     * 
* * optional string format = 3; */ com.google.protobuf.ByteString getFormatBytes(); /** * * *
     * description is a human readable description of this column.
     * +optional
     * 
* * optional string description = 4; */ boolean hasDescription(); /** * * *
     * description is a human readable description of this column.
     * +optional
     * 
* * optional string description = 4; */ java.lang.String getDescription(); /** * * *
     * description is a human readable description of this column.
     * +optional
     * 
* * optional string description = 4; */ com.google.protobuf.ByteString getDescriptionBytes(); /** * * *
     * 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 priority greater than 0.
     * +optional
     * 
* * optional int32 priority = 5; */ boolean hasPriority(); /** * * *
     * 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 priority greater than 0.
     * +optional
     * 
* * optional int32 priority = 5; */ int getPriority(); /** * * *
     * JSONPath is a simple JSON path (i.e. with array notation) which is evaluated against
     * each custom resource to produce the value for this column.
     * 
* * optional string JSONPath = 6; */ boolean hasJSONPath(); /** * * *
     * JSONPath is a simple JSON path (i.e. with array notation) which is evaluated against
     * each custom resource to produce the value for this column.
     * 
* * optional string JSONPath = 6; */ java.lang.String getJSONPath(); /** * * *
     * JSONPath is a simple JSON path (i.e. with array notation) which is evaluated against
     * each custom resource to produce the value for this column.
     * 
* * optional string JSONPath = 6; */ com.google.protobuf.ByteString getJSONPathBytes(); } /** * * *
   * CustomResourceColumnDefinition specifies a column for server side printing.
   * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition} */ public static final class CustomResourceColumnDefinition extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition) CustomResourceColumnDefinitionOrBuilder { private static final long serialVersionUID = 0L; // Use CustomResourceColumnDefinition.newBuilder() to construct. private CustomResourceColumnDefinition( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CustomResourceColumnDefinition() { name_ = ""; type_ = ""; format_ = ""; description_ = ""; priority_ = 0; jSONPath_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CustomResourceColumnDefinition( 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; name_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; type_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; format_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; description_ = bs; break; } case 40: { bitField0_ |= 0x00000010; priority_ = input.readInt32(); break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; jSONPath_ = 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_CustomResourceColumnDefinition_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_CustomResourceColumnDefinition_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition.class, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition.Builder .class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * * *
     * name is a human readable name for the column.
     * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * name is a human readable name for the column.
     * 
* * 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 details.
     * 
* * optional string type = 2; */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * 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 details.
     * 
* * 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 details.
     * 
* * 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 details.
     * +optional
     * 
* * optional string format = 3; */ public boolean hasFormat() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * 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 details.
     * +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 details.
     * +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
     * 
* * optional string description = 4; */ public boolean hasDescription() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * description is a human readable description of this column.
     * +optional
     * 
* * optional string description = 4; */ public java.lang.String getDescription() { java.lang.Object ref = description_; 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()) { description_ = s; } return s; } } /** * * *
     * 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 priority greater than 0.
     * +optional
     * 
* * optional int32 priority = 5; */ public boolean hasPriority() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * 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 priority greater than 0.
     * +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) which is evaluated against
     * each custom resource to produce the value for this column.
     * 
* * optional string JSONPath = 6; */ public boolean hasJSONPath() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * JSONPath is a simple JSON path (i.e. with array notation) which is evaluated against
     * each custom resource to produce the value for this column.
     * 
* * optional string JSONPath = 6; */ public java.lang.String getJSONPath() { java.lang.Object ref = jSONPath_; 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()) { jSONPath_ = s; } return s; } } /** * * *
     * JSONPath is a simple JSON path (i.e. with array notation) which is evaluated against
     * each custom resource to produce the value for this column.
     * 
* * optional string JSONPath = 6; */ public com.google.protobuf.ByteString getJSONPathBytes() { java.lang.Object ref = jSONPath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); jSONPath_ = 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, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, format_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt32(5, priority_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, jSONPath_); } 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.GeneratedMessageV3.computeStringSize(2, type_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, format_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, priority_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, jSONPath_); } 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.CustomResourceColumnDefinition)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition other = (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName().equals(other.getName()); } result = result && (hasType() == other.hasType()); if (hasType()) { result = result && getType().equals(other.getType()); } result = result && (hasFormat() == other.hasFormat()); if (hasFormat()) { result = result && getFormat().equals(other.getFormat()); } result = result && (hasDescription() == other.hasDescription()); if (hasDescription()) { result = result && getDescription().equals(other.getDescription()); } result = result && (hasPriority() == other.hasPriority()); if (hasPriority()) { result = result && (getPriority() == other.getPriority()); } result = result && (hasJSONPath() == other.hasJSONPath()); if (hasJSONPath()) { result = result && getJSONPath().equals(other.getJSONPath()); } 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 (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } if (hasFormat()) { hash = (37 * hash) + FORMAT_FIELD_NUMBER; hash = (53 * hash) + getFormat().hashCode(); } if (hasDescription()) { hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); } if (hasPriority()) { hash = (37 * hash) + PRIORITY_FIELD_NUMBER; hash = (53 * hash) + getPriority(); } if (hasJSONPath()) { hash = (37 * hash) + JSONPATH_FIELD_NUMBER; hash = (53 * hash) + getJSONPath().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition 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.CustomResourceColumnDefinition parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition 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.CustomResourceColumnDefinition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition 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.CustomResourceColumnDefinition parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition 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.CustomResourceColumnDefinition parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition 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.CustomResourceColumnDefinition 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.CustomResourceColumnDefinition 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.CustomResourceColumnDefinition 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; } /** * * *
     * CustomResourceColumnDefinition specifies a column for server side printing.
     * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition} */ 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.CustomResourceColumnDefinition) io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinitionOrBuilder { 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_CustomResourceColumnDefinition_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_CustomResourceColumnDefinition_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition .class, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition .Builder.class); } // Construct using // io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition.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(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); type_ = ""; bitField0_ = (bitField0_ & ~0x00000002); format_ = ""; bitField0_ = (bitField0_ & ~0x00000004); description_ = ""; bitField0_ = (bitField0_ & ~0x00000008); priority_ = 0; bitField0_ = (bitField0_ & ~0x00000010); jSONPath_ = ""; bitField0_ = (bitField0_ & ~0x00000020); 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_CustomResourceColumnDefinition_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition build() { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition buildPartial() { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition result = new io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition( this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.type_ = type_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.format_ = format_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.description_ = description_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.priority_ = priority_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.jSONPath_ = jSONPath_; 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.CustomResourceColumnDefinition) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition other) { if (other == io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition .getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasType()) { bitField0_ |= 0x00000002; type_ = other.type_; onChanged(); } if (other.hasFormat()) { bitField0_ |= 0x00000004; format_ = other.format_; onChanged(); } if (other.hasDescription()) { bitField0_ |= 0x00000008; description_ = other.description_; onChanged(); } if (other.hasPriority()) { setPriority(other.getPriority()); } if (other.hasJSONPath()) { bitField0_ |= 0x00000020; jSONPath_ = other.jSONPath_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * * *
       * name is a human readable name for the column.
       * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * name is a human readable name for the column.
       * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * name 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 String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * name is a human readable name for the column.
       * 
* * optional string name = 1; */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * * *
       * name is a human readable name for the column.
       * 
* * optional string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * * *
       * name is a human readable name for the column.
       * 
* * 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 details.
       * 
* * optional string type = 2; */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * 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 details.
       * 
* * 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 details.
       * 
* * optional string type = 2; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof 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; } } /** * * *
       * 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 details.
       * 
* * 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 details.
       * 
* * optional string type = 2; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); type_ = getDefaultInstance().getType(); 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 details.
       * 
* * 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 details.
       * +optional
       * 
* * optional string format = 3; */ public boolean hasFormat() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * 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 details.
       * +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 details.
       * +optional
       * 
* * optional string format = 3; */ public com.google.protobuf.ByteString getFormatBytes() { java.lang.Object ref = format_; if (ref instanceof 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; } } /** * * *
       * 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 details.
       * +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 details.
       * +optional
       * 
* * optional string format = 3; */ public Builder clearFormat() { bitField0_ = (bitField0_ & ~0x00000004); format_ = getDefaultInstance().getFormat(); 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 details.
       * +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
       * 
* * optional string description = 4; */ public boolean hasDescription() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * description is a human readable description of this column.
       * +optional
       * 
* * optional string description = 4; */ public java.lang.String getDescription() { java.lang.Object ref = description_; 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()) { description_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * 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 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; } } /** * * *
       * description is a human readable description of this column.
       * +optional
       * 
* * optional string description = 4; */ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; description_ = value; onChanged(); return this; } /** * * *
       * description is a human readable description of this column.
       * +optional
       * 
* * optional string description = 4; */ public Builder clearDescription() { bitField0_ = (bitField0_ & ~0x00000008); description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** * * *
       * 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 priority greater than 0.
       * +optional
       * 
* * optional int32 priority = 5; */ public boolean hasPriority() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * 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 priority greater than 0.
       * +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 priority greater than 0.
       * +optional
       * 
* * optional int32 priority = 5; */ public Builder setPriority(int value) { bitField0_ |= 0x00000010; priority_ = value; onChanged(); return this; } /** * * *
       * 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 priority greater than 0.
       * +optional
       * 
* * optional int32 priority = 5; */ public Builder clearPriority() { bitField0_ = (bitField0_ & ~0x00000010); priority_ = 0; onChanged(); return this; } private java.lang.Object jSONPath_ = ""; /** * * *
       * JSONPath is a simple JSON path (i.e. with array notation) which is evaluated against
       * each custom resource to produce the value for this column.
       * 
* * optional string JSONPath = 6; */ public boolean hasJSONPath() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * JSONPath is a simple JSON path (i.e. with array notation) which is evaluated against
       * each custom resource to produce the value for this column.
       * 
* * optional string JSONPath = 6; */ public java.lang.String getJSONPath() { java.lang.Object ref = jSONPath_; 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()) { jSONPath_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * JSONPath is a simple JSON path (i.e. with array notation) which is evaluated against
       * each custom resource to produce the value for this column.
       * 
* * optional string JSONPath = 6; */ public com.google.protobuf.ByteString getJSONPathBytes() { java.lang.Object ref = jSONPath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); jSONPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * JSONPath is a simple JSON path (i.e. with array notation) which is evaluated against
       * each custom resource to produce the value for this column.
       * 
* * optional string JSONPath = 6; */ public Builder setJSONPath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; jSONPath_ = value; onChanged(); return this; } /** * * *
       * JSONPath is a simple JSON path (i.e. with array notation) which is evaluated against
       * each custom resource to produce the value for this column.
       * 
* * optional string JSONPath = 6; */ public Builder clearJSONPath() { bitField0_ = (bitField0_ & ~0x00000020); jSONPath_ = getDefaultInstance().getJSONPath(); onChanged(); return this; } /** * * *
       * JSONPath is a simple JSON path (i.e. with array notation) which is evaluated against
       * each custom resource to produce the value for this column.
       * 
* * 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 how custom resources are converted between versions. Allowed values are:
     * - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource.
     * - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information
     *   is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhookClientConfig to be set.
     * 
* * optional string strategy = 1; */ boolean hasStrategy(); /** * * *
     * strategy specifies how custom resources are converted between versions. Allowed values are:
     * - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource.
     * - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information
     *   is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhookClientConfig to be set.
     * 
* * optional string strategy = 1; */ java.lang.String getStrategy(); /** * * *
     * strategy specifies how custom resources are converted between versions. Allowed values are:
     * - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource.
     * - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information
     *   is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhookClientConfig to be set.
     * 
* * optional string strategy = 1; */ com.google.protobuf.ByteString getStrategyBytes(); /** * * *
     * webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`.
     * Required when `strategy` is set to `Webhook`.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.WebhookClientConfig webhookClientConfig = 2; * */ boolean hasWebhookClientConfig(); /** * * *
     * webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`.
     * Required when `strategy` is set to `Webhook`.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.WebhookClientConfig webhookClientConfig = 2; * */ io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig getWebhookClientConfig(); /** * * *
     * webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`.
     * Required when `strategy` is set to `Webhook`.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.WebhookClientConfig webhookClientConfig = 2; * */ io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfigOrBuilder getWebhookClientConfigOrBuilder(); /** * * *
     * conversionReviewVersions is an ordered list of preferred `ConversionReview`
     * versions the Webhook expects. The API server will use the first version in
     * the list which it supports. If none of the versions specified in this list
     * are supported by API server, conversion will fail for the custom resource.
     * If a persisted Webhook configuration specifies allowed versions and does not
     * include any versions known to the API Server, calls to the webhook will fail.
     * Defaults to `["v1beta1"]`.
     * +optional
     * 
* * repeated string conversionReviewVersions = 3; */ java.util.List getConversionReviewVersionsList(); /** * * *
     * conversionReviewVersions is an ordered list of preferred `ConversionReview`
     * versions the Webhook expects. The API server will use the first version in
     * the list which it supports. If none of the versions specified in this list
     * are supported by API server, conversion will fail for the custom resource.
     * If a persisted Webhook configuration specifies allowed versions and does not
     * include any versions known to the API Server, calls to the webhook will fail.
     * Defaults to `["v1beta1"]`.
     * +optional
     * 
* * repeated string conversionReviewVersions = 3; */ int getConversionReviewVersionsCount(); /** * * *
     * conversionReviewVersions is an ordered list of preferred `ConversionReview`
     * versions the Webhook expects. The API server will use the first version in
     * the list which it supports. If none of the versions specified in this list
     * are supported by API server, conversion will fail for the custom resource.
     * If a persisted Webhook configuration specifies allowed versions and does not
     * include any versions known to the API Server, calls to the webhook will fail.
     * Defaults to `["v1beta1"]`.
     * +optional
     * 
* * repeated string conversionReviewVersions = 3; */ java.lang.String getConversionReviewVersions(int index); /** * * *
     * conversionReviewVersions is an ordered list of preferred `ConversionReview`
     * versions the Webhook expects. The API server will use the first version in
     * the list which it supports. If none of the versions specified in this list
     * are supported by API server, conversion will fail for the custom resource.
     * If a persisted Webhook configuration specifies allowed versions and does not
     * include any versions known to the API Server, calls to the webhook will fail.
     * Defaults to `["v1beta1"]`.
     * +optional
     * 
* * repeated string conversionReviewVersions = 3; */ com.google.protobuf.ByteString getConversionReviewVersionsBytes(int index); } /** * * *
   * 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_ = ""; conversionReviewVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @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; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { conversionReviewVersions_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000004; } conversionReviewVersions_.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)) { conversionReviewVersions_ = conversionReviewVersions_.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_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 how custom resources are converted between versions. Allowed values are:
     * - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource.
     * - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information
     *   is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhookClientConfig to be set.
     * 
* * optional string strategy = 1; */ public boolean hasStrategy() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * strategy specifies how custom resources are converted between versions. Allowed values are:
     * - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource.
     * - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information
     *   is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhookClientConfig to be set.
     * 
* * optional string strategy = 1; */ public java.lang.String getStrategy() { java.lang.Object ref = strategy_; 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()) { strategy_ = s; } return s; } } /** * * *
     * strategy specifies how custom resources are converted between versions. Allowed values are:
     * - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource.
     * - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information
     *   is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhookClientConfig to be set.
     * 
* * 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`.
     * Required when `strategy` is set to `Webhook`.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.WebhookClientConfig webhookClientConfig = 2; * */ public boolean hasWebhookClientConfig() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`.
     * Required when `strategy` is set to `Webhook`.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.WebhookClientConfig webhookClientConfig = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig getWebhookClientConfig() { return webhookClientConfig_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig.getDefaultInstance() : webhookClientConfig_; } /** * * *
     * webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`.
     * Required when `strategy` is set to `Webhook`.
     * +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_; } public static final int CONVERSIONREVIEWVERSIONS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList conversionReviewVersions_; /** * * *
     * conversionReviewVersions is an ordered list of preferred `ConversionReview`
     * versions the Webhook expects. The API server will use the first version in
     * the list which it supports. If none of the versions specified in this list
     * are supported by API server, conversion will fail for the custom resource.
     * If a persisted Webhook configuration specifies allowed versions and does not
     * include any versions known to the API Server, calls to the webhook will fail.
     * Defaults to `["v1beta1"]`.
     * +optional
     * 
* * repeated string conversionReviewVersions = 3; */ public com.google.protobuf.ProtocolStringList getConversionReviewVersionsList() { return conversionReviewVersions_; } /** * * *
     * conversionReviewVersions is an ordered list of preferred `ConversionReview`
     * versions the Webhook expects. The API server will use the first version in
     * the list which it supports. If none of the versions specified in this list
     * are supported by API server, conversion will fail for the custom resource.
     * If a persisted Webhook configuration specifies allowed versions and does not
     * include any versions known to the API Server, calls to the webhook will fail.
     * Defaults to `["v1beta1"]`.
     * +optional
     * 
* * repeated string conversionReviewVersions = 3; */ public int getConversionReviewVersionsCount() { return conversionReviewVersions_.size(); } /** * * *
     * conversionReviewVersions is an ordered list of preferred `ConversionReview`
     * versions the Webhook expects. The API server will use the first version in
     * the list which it supports. If none of the versions specified in this list
     * are supported by API server, conversion will fail for the custom resource.
     * If a persisted Webhook configuration specifies allowed versions and does not
     * include any versions known to the API Server, calls to the webhook will fail.
     * Defaults to `["v1beta1"]`.
     * +optional
     * 
* * repeated string conversionReviewVersions = 3; */ public java.lang.String getConversionReviewVersions(int index) { return conversionReviewVersions_.get(index); } /** * * *
     * conversionReviewVersions is an ordered list of preferred `ConversionReview`
     * versions the Webhook expects. The API server will use the first version in
     * the list which it supports. If none of the versions specified in this list
     * are supported by API server, conversion will fail for the custom resource.
     * If a persisted Webhook configuration specifies allowed versions and does not
     * include any versions known to the API Server, calls to the webhook will fail.
     * Defaults to `["v1beta1"]`.
     * +optional
     * 
* * repeated string conversionReviewVersions = 3; */ public com.google.protobuf.ByteString getConversionReviewVersionsBytes(int index) { return conversionReviewVersions_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, strategy_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getWebhookClientConfig()); } for (int i = 0; i < conversionReviewVersions_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString( output, 3, conversionReviewVersions_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, strategy_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getWebhookClientConfig()); } { int dataSize = 0; for (int i = 0; i < conversionReviewVersions_.size(); i++) { dataSize += computeStringSizeNoTag(conversionReviewVersions_.getRaw(i)); } size += dataSize; size += 1 * getConversionReviewVersionsList().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.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 && getConversionReviewVersionsList().equals(other.getConversionReviewVersionsList()); 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(); } if (getConversionReviewVersionsCount() > 0) { hash = (37 * hash) + CONVERSIONREVIEWVERSIONS_FIELD_NUMBER; hash = (53 * hash) + getConversionReviewVersionsList().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); conversionReviewVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); 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(); } if (((bitField0_ & 0x00000004) == 0x00000004)) { conversionReviewVersions_ = conversionReviewVersions_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.conversionReviewVersions_ = conversionReviewVersions_; 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()); } if (!other.conversionReviewVersions_.isEmpty()) { if (conversionReviewVersions_.isEmpty()) { conversionReviewVersions_ = other.conversionReviewVersions_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureConversionReviewVersionsIsMutable(); conversionReviewVersions_.addAll(other.conversionReviewVersions_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.kubernetes.client.proto.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 how custom resources are converted between versions. Allowed values are:
       * - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource.
       * - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information
       *   is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhookClientConfig to be set.
       * 
* * optional string strategy = 1; */ public boolean hasStrategy() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * strategy specifies how custom resources are converted between versions. Allowed values are:
       * - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource.
       * - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information
       *   is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhookClientConfig to be set.
       * 
* * optional string strategy = 1; */ public java.lang.String getStrategy() { java.lang.Object ref = strategy_; 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()) { strategy_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * strategy specifies how custom resources are converted between versions. Allowed values are:
       * - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource.
       * - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information
       *   is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhookClientConfig to be set.
       * 
* * optional string strategy = 1; */ public com.google.protobuf.ByteString getStrategyBytes() { java.lang.Object ref = strategy_; if (ref instanceof 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; } } /** * * *
       * strategy specifies how custom resources are converted between versions. Allowed values are:
       * - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource.
       * - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information
       *   is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhookClientConfig to be set.
       * 
* * optional string strategy = 1; */ public Builder setStrategy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; strategy_ = value; onChanged(); return this; } /** * * *
       * strategy specifies how custom resources are converted between versions. Allowed values are:
       * - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource.
       * - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information
       *   is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhookClientConfig to be set.
       * 
* * optional string strategy = 1; */ public Builder clearStrategy() { bitField0_ = (bitField0_ & ~0x00000001); strategy_ = getDefaultInstance().getStrategy(); onChanged(); return this; } /** * * *
       * strategy specifies how custom resources are converted between versions. Allowed values are:
       * - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource.
       * - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information
       *   is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhookClientConfig to be set.
       * 
* * optional string strategy = 1; */ public Builder setStrategyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; strategy_ = value; onChanged(); return this; } private io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig webhookClientConfig_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig, io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfigOrBuilder> webhookClientConfigBuilder_; /** * * *
       * webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`.
       * Required when `strategy` is set to `Webhook`.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.WebhookClientConfig webhookClientConfig = 2; * */ public boolean hasWebhookClientConfig() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`.
       * Required when `strategy` is set to `Webhook`.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.WebhookClientConfig webhookClientConfig = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig getWebhookClientConfig() { if (webhookClientConfigBuilder_ == null) { return webhookClientConfig_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig .getDefaultInstance() : webhookClientConfig_; } else { return webhookClientConfigBuilder_.getMessage(); } } /** * * *
       * webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`.
       * Required when `strategy` is set to `Webhook`.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.WebhookClientConfig webhookClientConfig = 2; * */ public Builder setWebhookClientConfig( io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig value) { if (webhookClientConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } webhookClientConfig_ = value; onChanged(); } else { webhookClientConfigBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`.
       * Required when `strategy` is set to `Webhook`.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.WebhookClientConfig webhookClientConfig = 2; * */ public Builder setWebhookClientConfig( io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig.Builder builderForValue) { if (webhookClientConfigBuilder_ == null) { webhookClientConfig_ = builderForValue.build(); onChanged(); } else { webhookClientConfigBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`.
       * Required when `strategy` is set to `Webhook`.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.WebhookClientConfig webhookClientConfig = 2; * */ public Builder mergeWebhookClientConfig( io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig value) { if (webhookClientConfigBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && webhookClientConfig_ != null && webhookClientConfig_ != io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig .getDefaultInstance()) { webhookClientConfig_ = io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig.newBuilder( webhookClientConfig_) .mergeFrom(value) .buildPartial(); } else { webhookClientConfig_ = value; } onChanged(); } else { webhookClientConfigBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`.
       * Required when `strategy` is set to `Webhook`.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.WebhookClientConfig webhookClientConfig = 2; * */ public Builder clearWebhookClientConfig() { if (webhookClientConfigBuilder_ == null) { webhookClientConfig_ = null; onChanged(); } else { webhookClientConfigBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`.
       * Required when `strategy` is set to `Webhook`.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.WebhookClientConfig webhookClientConfig = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig.Builder getWebhookClientConfigBuilder() { bitField0_ |= 0x00000002; onChanged(); return getWebhookClientConfigFieldBuilder().getBuilder(); } /** * * *
       * webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`.
       * Required when `strategy` is set to `Webhook`.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.WebhookClientConfig webhookClientConfig = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfigOrBuilder getWebhookClientConfigOrBuilder() { if (webhookClientConfigBuilder_ != null) { return webhookClientConfigBuilder_.getMessageOrBuilder(); } else { return webhookClientConfig_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig .getDefaultInstance() : webhookClientConfig_; } } /** * * *
       * webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`.
       * Required when `strategy` is set to `Webhook`.
       * +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_; } private com.google.protobuf.LazyStringList conversionReviewVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureConversionReviewVersionsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { conversionReviewVersions_ = new com.google.protobuf.LazyStringArrayList(conversionReviewVersions_); bitField0_ |= 0x00000004; } } /** * * *
       * conversionReviewVersions is an ordered list of preferred `ConversionReview`
       * versions the Webhook expects. The API server will use the first version in
       * the list which it supports. If none of the versions specified in this list
       * are supported by API server, conversion will fail for the custom resource.
       * If a persisted Webhook configuration specifies allowed versions and does not
       * include any versions known to the API Server, calls to the webhook will fail.
       * Defaults to `["v1beta1"]`.
       * +optional
       * 
* * repeated string conversionReviewVersions = 3; */ public com.google.protobuf.ProtocolStringList getConversionReviewVersionsList() { return conversionReviewVersions_.getUnmodifiableView(); } /** * * *
       * conversionReviewVersions is an ordered list of preferred `ConversionReview`
       * versions the Webhook expects. The API server will use the first version in
       * the list which it supports. If none of the versions specified in this list
       * are supported by API server, conversion will fail for the custom resource.
       * If a persisted Webhook configuration specifies allowed versions and does not
       * include any versions known to the API Server, calls to the webhook will fail.
       * Defaults to `["v1beta1"]`.
       * +optional
       * 
* * repeated string conversionReviewVersions = 3; */ public int getConversionReviewVersionsCount() { return conversionReviewVersions_.size(); } /** * * *
       * conversionReviewVersions is an ordered list of preferred `ConversionReview`
       * versions the Webhook expects. The API server will use the first version in
       * the list which it supports. If none of the versions specified in this list
       * are supported by API server, conversion will fail for the custom resource.
       * If a persisted Webhook configuration specifies allowed versions and does not
       * include any versions known to the API Server, calls to the webhook will fail.
       * Defaults to `["v1beta1"]`.
       * +optional
       * 
* * repeated string conversionReviewVersions = 3; */ public java.lang.String getConversionReviewVersions(int index) { return conversionReviewVersions_.get(index); } /** * * *
       * conversionReviewVersions is an ordered list of preferred `ConversionReview`
       * versions the Webhook expects. The API server will use the first version in
       * the list which it supports. If none of the versions specified in this list
       * are supported by API server, conversion will fail for the custom resource.
       * If a persisted Webhook configuration specifies allowed versions and does not
       * include any versions known to the API Server, calls to the webhook will fail.
       * Defaults to `["v1beta1"]`.
       * +optional
       * 
* * repeated string conversionReviewVersions = 3; */ public com.google.protobuf.ByteString getConversionReviewVersionsBytes(int index) { return conversionReviewVersions_.getByteString(index); } /** * * *
       * conversionReviewVersions is an ordered list of preferred `ConversionReview`
       * versions the Webhook expects. The API server will use the first version in
       * the list which it supports. If none of the versions specified in this list
       * are supported by API server, conversion will fail for the custom resource.
       * If a persisted Webhook configuration specifies allowed versions and does not
       * include any versions known to the API Server, calls to the webhook will fail.
       * Defaults to `["v1beta1"]`.
       * +optional
       * 
* * repeated string conversionReviewVersions = 3; */ public Builder setConversionReviewVersions(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureConversionReviewVersionsIsMutable(); conversionReviewVersions_.set(index, value); onChanged(); return this; } /** * * *
       * conversionReviewVersions is an ordered list of preferred `ConversionReview`
       * versions the Webhook expects. The API server will use the first version in
       * the list which it supports. If none of the versions specified in this list
       * are supported by API server, conversion will fail for the custom resource.
       * If a persisted Webhook configuration specifies allowed versions and does not
       * include any versions known to the API Server, calls to the webhook will fail.
       * Defaults to `["v1beta1"]`.
       * +optional
       * 
* * repeated string conversionReviewVersions = 3; */ public Builder addConversionReviewVersions(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureConversionReviewVersionsIsMutable(); conversionReviewVersions_.add(value); onChanged(); return this; } /** * * *
       * conversionReviewVersions is an ordered list of preferred `ConversionReview`
       * versions the Webhook expects. The API server will use the first version in
       * the list which it supports. If none of the versions specified in this list
       * are supported by API server, conversion will fail for the custom resource.
       * If a persisted Webhook configuration specifies allowed versions and does not
       * include any versions known to the API Server, calls to the webhook will fail.
       * Defaults to `["v1beta1"]`.
       * +optional
       * 
* * repeated string conversionReviewVersions = 3; */ public Builder addAllConversionReviewVersions(java.lang.Iterable values) { ensureConversionReviewVersionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conversionReviewVersions_); onChanged(); return this; } /** * * *
       * conversionReviewVersions is an ordered list of preferred `ConversionReview`
       * versions the Webhook expects. The API server will use the first version in
       * the list which it supports. If none of the versions specified in this list
       * are supported by API server, conversion will fail for the custom resource.
       * If a persisted Webhook configuration specifies allowed versions and does not
       * include any versions known to the API Server, calls to the webhook will fail.
       * Defaults to `["v1beta1"]`.
       * +optional
       * 
* * repeated string conversionReviewVersions = 3; */ public Builder clearConversionReviewVersions() { conversionReviewVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
       * conversionReviewVersions is an ordered list of preferred `ConversionReview`
       * versions the Webhook expects. The API server will use the first version in
       * the list which it supports. If none of the versions specified in this list
       * are supported by API server, conversion will fail for the custom resource.
       * If a persisted Webhook configuration specifies allowed versions and does not
       * include any versions known to the API Server, calls to the webhook will fail.
       * Defaults to `["v1beta1"]`.
       * +optional
       * 
* * repeated string conversionReviewVersions = 3; */ public Builder addConversionReviewVersionsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureConversionReviewVersionsIsMutable(); conversionReviewVersions_.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.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 { /** * * *
     * Standard object's metadata
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ boolean hasMetadata(); /** * * *
     * Standard object's metadata
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); /** * * *
     * Standard object's metadata
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * spec describes how the user wants the resources to appear
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionSpec spec = 2; * */ boolean hasSpec(); /** * * *
     * spec describes how the user wants the resources to appear
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionSpec spec = 2; * */ io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec getSpec(); /** * * *
     * spec describes how the user wants the resources to appear
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionSpec spec = 2; * */ io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpecOrBuilder getSpecOrBuilder(); /** * * *
     * status indicates the actual state of the CustomResourceDefinition
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionStatus status = 3; * */ boolean hasStatus(); /** * * *
     * status indicates the actual state of the CustomResourceDefinition
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionStatus status = 3; * */ io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus getStatus(); /** * * *
     * status indicates the actual state of the CustomResourceDefinition
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionStatus status = 3; * */ io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatusOrBuilder getStatusOrBuilder(); } /** * * *
   * CustomResourceDefinition represents a resource that should be exposed on the API server.  Its name MUST be in the format
   * <.spec.name>.<.spec.group>.
   * Deprecated in v1.16, planned for removal in v1.22. Use apiextensions.k8s.io/v1 CustomResourceDefinition instead.
   * 
* * 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_; /** * * *
     * Standard object's metadata
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Standard object's metadata
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } /** * * *
     * Standard object's metadata
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } public static final int SPEC_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec spec_; /** * * *
     * spec describes how the user wants the resources to appear
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionSpec spec = 2; * */ public boolean hasSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * spec describes how the user wants the resources to appear
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionSpec spec = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec getSpec() { return spec_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec .getDefaultInstance() : spec_; } /** * * *
     * spec describes how the user wants the resources to appear
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionSpec spec = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpecOrBuilder getSpecOrBuilder() { return spec_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec .getDefaultInstance() : spec_; } public static final int STATUS_FIELD_NUMBER = 3; private io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus status_; /** * * *
     * status indicates the actual state of the CustomResourceDefinition
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionStatus status = 3; * */ public boolean hasStatus() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * 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.CustomResourceDefinitionStatus getStatus() { return status_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus .getDefaultInstance() : status_; } /** * * *
     * 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>.
     * Deprecated in v1.16, planned for removal in v1.22. Use apiextensions.k8s.io/v1 CustomResourceDefinition instead.
     * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition} */ 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.CustomResourceDefinition) io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionOrBuilder { 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); } // Construct using // io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getMetadataFieldBuilder(); getSpecFieldBuilder(); getStatusFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (metadataBuilder_ == null) { metadata_ = null; } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (specBuilder_ == null) { spec_ = null; } else { specBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (statusBuilder_ == null) { status_ = null; } else { statusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Apiextensions .internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinition_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition build() { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition buildPartial() { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition result = new io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (metadataBuilder_ == null) { result.metadata_ = metadata_; } else { result.metadata_ = metadataBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (specBuilder_ == null) { result.spec_ = spec_; } else { result.spec_ = specBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (statusBuilder_ == null) { result.status_ = status_; } else { result.status_ = statusBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition other) { if (other == io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition .getDefaultInstance()) return this; if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } if (other.hasSpec()) { mergeSpec(other.getSpec()); } if (other.hasStatus()) { mergeStatus(other.getStatus()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; /** * * *
       * Standard object's metadata
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Standard object's metadata
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { if (metadataBuilder_ == null) { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** * * *
       * Standard object's metadata
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { metadataBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder setMetadata( io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { if (metadataBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && metadata_ != null && metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { metadata_ = io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_) .mergeFrom(value) .buildPartial(); } else { metadata_ = value; } onChanged(); } else { metadataBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder clearMetadata() { if (metadataBuilder_ == null) { metadata_ = null; onChanged(); } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * Standard object's metadata
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** * * *
       * Standard object's metadata
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } } /** * * *
       * Standard object's metadata
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } private io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec spec_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpecOrBuilder> specBuilder_; /** * * *
       * spec describes how the user wants the resources to appear
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionSpec spec = 2; * */ public boolean hasSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * spec describes how the user wants the resources to appear
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionSpec spec = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec getSpec() { if (specBuilder_ == null) { return spec_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec .getDefaultInstance() : spec_; } else { return specBuilder_.getMessage(); } } /** * * *
       * spec describes how the user wants the resources to appear
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionSpec spec = 2; * */ public Builder setSpec( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec value) { if (specBuilder_ == null) { if (value == null) { throw new NullPointerException(); } spec_ = value; onChanged(); } else { specBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * spec describes how the user wants the resources to appear
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionSpec spec = 2; * */ public Builder setSpec( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec.Builder builderForValue) { if (specBuilder_ == null) { spec_ = builderForValue.build(); onChanged(); } else { specBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * spec describes how the user wants the resources to appear
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionSpec spec = 2; * */ public Builder mergeSpec( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec value) { if (specBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && spec_ != null && spec_ != io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec .getDefaultInstance()) { spec_ = io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec .newBuilder(spec_) .mergeFrom(value) .buildPartial(); } else { spec_ = value; } onChanged(); } else { specBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * spec describes how the user wants the resources to appear
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionSpec spec = 2; * */ public Builder clearSpec() { if (specBuilder_ == null) { spec_ = null; onChanged(); } else { specBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * spec describes how the user wants the resources to appear
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionSpec spec = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec.Builder getSpecBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSpecFieldBuilder().getBuilder(); } /** * * *
       * spec describes how the user wants the resources to appear
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionSpec spec = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpecOrBuilder getSpecOrBuilder() { if (specBuilder_ != null) { return specBuilder_.getMessageOrBuilder(); } else { return spec_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec .getDefaultInstance() : spec_; } } /** * * *
       * spec describes how the user wants the resources to appear
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionSpec spec = 2; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpecOrBuilder> getSpecFieldBuilder() { if (specBuilder_ == null) { specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec .Builder, io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionSpecOrBuilder>( getSpec(), getParentForChildren(), isClean()); spec_ = null; } return specBuilder_; } private io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus status_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus .Builder, io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionStatusOrBuilder> statusBuilder_; /** * * *
       * status indicates the actual state of the CustomResourceDefinition
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionStatus status = 3; * */ public boolean hasStatus() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * 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.CustomResourceDefinitionStatus getStatus() { if (statusBuilder_ == null) { return status_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus .getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** * * *
       * status indicates the actual state of the CustomResourceDefinition
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionStatus status = 3; * */ public Builder setStatus( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } status_ = value; onChanged(); } else { statusBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * status indicates the actual state of the CustomResourceDefinition
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionStatus status = 3; * */ public Builder setStatus( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); } else { statusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * status indicates the actual state of the CustomResourceDefinition
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionStatus status = 3; * */ public Builder mergeStatus( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus value) { if (statusBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && status_ != null && status_ != io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus .getDefaultInstance()) { status_ = io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus .newBuilder(status_) .mergeFrom(value) .buildPartial(); } else { status_ = value; } onChanged(); } else { statusBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * status indicates the actual state of the CustomResourceDefinition
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionStatus status = 3; * */ public Builder clearStatus() { if (statusBuilder_ == null) { status_ = null; onChanged(); } else { statusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * 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.CustomResourceDefinitionStatus.Builder getStatusBuilder() { bitField0_ |= 0x00000004; onChanged(); return getStatusFieldBuilder().getBuilder(); } /** * * *
       * 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() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { return status_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus .getDefaultInstance() : status_; } } /** * * *
       * status indicates the actual state of the CustomResourceDefinition
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionStatus status = 3; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus .Builder, io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionStatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus .Builder, io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionStatusOrBuilder>( getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition) } // @@protoc_insertion_point(class_scope:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition) private static final io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition(); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CustomResourceDefinition parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CustomResourceDefinition(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.CustomResourceDefinition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CustomResourceDefinitionConditionOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition) com.google.protobuf.MessageOrBuilder { /** * * *
     * type is the type of the condition. Types include Established, NamesAccepted and Terminating.
     * 
* * optional string type = 1; */ boolean hasType(); /** * * *
     * type is the type of the condition. Types include Established, NamesAccepted and Terminating.
     * 
* * optional string type = 1; */ java.lang.String getType(); /** * * *
     * type is the type of the condition. Types include Established, NamesAccepted and Terminating.
     * 
* * optional string type = 1; */ com.google.protobuf.ByteString getTypeBytes(); /** * * *
     * status is the status of the condition.
     * Can be True, False, Unknown.
     * 
* * optional string status = 2; */ boolean hasStatus(); /** * * *
     * status is the status of the condition.
     * Can be True, False, Unknown.
     * 
* * optional string status = 2; */ java.lang.String getStatus(); /** * * *
     * status is the status of the condition.
     * Can be True, False, Unknown.
     * 
* * optional string status = 2; */ com.google.protobuf.ByteString getStatusBytes(); /** * * *
     * lastTransitionTime last time the condition transitioned from one status to another.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; */ boolean hasLastTransitionTime(); /** * * *
     * lastTransitionTime last time the condition transitioned from one status to another.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; */ io.kubernetes.client.proto.Meta.Time getLastTransitionTime(); /** * * *
     * lastTransitionTime last time the condition transitioned from one status to another.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; */ io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTransitionTimeOrBuilder(); /** * * *
     * reason is a unique, one-word, CamelCase reason for the condition's last transition.
     * +optional
     * 
* * optional string reason = 4; */ boolean hasReason(); /** * * *
     * reason is a unique, one-word, CamelCase reason for the condition's last transition.
     * +optional
     * 
* * optional string reason = 4; */ java.lang.String getReason(); /** * * *
     * reason is a unique, one-word, CamelCase reason for the condition's last transition.
     * +optional
     * 
* * optional string reason = 4; */ com.google.protobuf.ByteString getReasonBytes(); /** * * *
     * message is a human-readable message indicating details about last transition.
     * +optional
     * 
* * optional string message = 5; */ boolean hasMessage(); /** * * *
     * message is a human-readable message indicating details about last transition.
     * +optional
     * 
* * optional string message = 5; */ java.lang.String getMessage(); /** * * *
     * message is a human-readable message indicating details about last transition.
     * +optional
     * 
* * optional string message = 5; */ com.google.protobuf.ByteString getMessageBytes(); } /** * * *
   * CustomResourceDefinitionCondition contains details for the current condition of this pod.
   * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition} */ public static final class CustomResourceDefinitionCondition extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition) CustomResourceDefinitionConditionOrBuilder { private static final long serialVersionUID = 0L; // Use CustomResourceDefinitionCondition.newBuilder() to construct. private CustomResourceDefinitionCondition( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CustomResourceDefinitionCondition() { type_ = ""; status_ = ""; reason_ = ""; message_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CustomResourceDefinitionCondition( 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; type_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; status_ = bs; break; } case 26: { io.kubernetes.client.proto.Meta.Time.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = lastTransitionTime_.toBuilder(); } lastTransitionTime_ = input.readMessage( io.kubernetes.client.proto.Meta.Time.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(lastTransitionTime_); lastTransitionTime_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; reason_ = bs; break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; message_ = 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_CustomResourceDefinitionCondition_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_CustomResourceDefinitionCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition .class, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition .Builder.class); } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object type_; /** * * *
     * type is the type of the condition. Types include Established, NamesAccepted and Terminating.
     * 
* * optional string type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * type is the type of the condition. Types include Established, NamesAccepted and Terminating.
     * 
* * optional string type = 1; */ 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 the type of the condition. Types include Established, NamesAccepted and Terminating.
     * 
* * optional string type = 1; */ 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 STATUS_FIELD_NUMBER = 2; private volatile java.lang.Object status_; /** * * *
     * status is the status of the condition.
     * Can be True, False, Unknown.
     * 
* * optional string status = 2; */ public boolean hasStatus() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * status is the status of the condition.
     * Can be True, False, Unknown.
     * 
* * optional string status = 2; */ public java.lang.String getStatus() { java.lang.Object ref = status_; 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()) { status_ = s; } return s; } } /** * * *
     * status is the status of the condition.
     * Can be True, False, Unknown.
     * 
* * optional string status = 2; */ public com.google.protobuf.ByteString getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); status_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LASTTRANSITIONTIME_FIELD_NUMBER = 3; private io.kubernetes.client.proto.Meta.Time lastTransitionTime_; /** * * *
     * lastTransitionTime last time the condition transitioned from one status to another.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; */ public boolean hasLastTransitionTime() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * lastTransitionTime last time the condition transitioned from one status to another.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; */ public io.kubernetes.client.proto.Meta.Time getLastTransitionTime() { return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; } /** * * *
     * lastTransitionTime last time the condition transitioned from one status to another.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTransitionTimeOrBuilder() { return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; } public static final int REASON_FIELD_NUMBER = 4; private volatile java.lang.Object reason_; /** * * *
     * reason is a unique, one-word, CamelCase reason for the condition's last transition.
     * +optional
     * 
* * optional string reason = 4; */ public boolean hasReason() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * reason is a unique, one-word, CamelCase reason for the condition's last transition.
     * +optional
     * 
* * optional string reason = 4; */ public java.lang.String getReason() { java.lang.Object ref = reason_; 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()) { reason_ = s; } return s; } } /** * * *
     * reason is a unique, one-word, CamelCase reason for the condition's last transition.
     * +optional
     * 
* * optional string reason = 4; */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MESSAGE_FIELD_NUMBER = 5; private volatile java.lang.Object message_; /** * * *
     * message is a human-readable message indicating details about last transition.
     * +optional
     * 
* * optional string message = 5; */ public boolean hasMessage() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * message is a human-readable message indicating details about last transition.
     * +optional
     * 
* * optional string message = 5; */ public java.lang.String getMessage() { java.lang.Object ref = message_; 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()) { message_ = s; } return s; } } /** * * *
     * message is a human-readable message indicating details about last transition.
     * +optional
     * 
* * optional string message = 5; */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = 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, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, status_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getLastTransitionTime()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, reason_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, message_); } 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, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, status_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLastTransitionTime()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, reason_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, message_); } 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.CustomResourceDefinitionCondition)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition other = (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition) obj; boolean result = true; result = result && (hasType() == other.hasType()); if (hasType()) { result = result && getType().equals(other.getType()); } result = result && (hasStatus() == other.hasStatus()); if (hasStatus()) { result = result && getStatus().equals(other.getStatus()); } result = result && (hasLastTransitionTime() == other.hasLastTransitionTime()); if (hasLastTransitionTime()) { result = result && getLastTransitionTime().equals(other.getLastTransitionTime()); } result = result && (hasReason() == other.hasReason()); if (hasReason()) { result = result && getReason().equals(other.getReason()); } result = result && (hasMessage() == other.hasMessage()); if (hasMessage()) { result = result && getMessage().equals(other.getMessage()); } 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 (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } if (hasStatus()) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().hashCode(); } if (hasLastTransitionTime()) { hash = (37 * hash) + LASTTRANSITIONTIME_FIELD_NUMBER; hash = (53 * hash) + getLastTransitionTime().hashCode(); } if (hasReason()) { hash = (37 * hash) + REASON_FIELD_NUMBER; hash = (53 * hash) + getReason().hashCode(); } if (hasMessage()) { hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition 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.CustomResourceDefinitionCondition parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition 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.CustomResourceDefinitionCondition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition 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.CustomResourceDefinitionCondition parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition 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.CustomResourceDefinitionCondition parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition 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.CustomResourceDefinitionCondition 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.CustomResourceDefinitionCondition 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.CustomResourceDefinitionCondition 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; } /** * * *
     * CustomResourceDefinitionCondition contains details for the current condition of this pod.
     * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition} */ 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.CustomResourceDefinitionCondition) io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionConditionOrBuilder { 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_CustomResourceDefinitionCondition_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_CustomResourceDefinitionCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition .class, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition .Builder.class); } // Construct using // io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLastTransitionTimeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); type_ = ""; bitField0_ = (bitField0_ & ~0x00000001); status_ = ""; bitField0_ = (bitField0_ & ~0x00000002); if (lastTransitionTimeBuilder_ == null) { lastTransitionTime_ = null; } else { lastTransitionTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); reason_ = ""; bitField0_ = (bitField0_ & ~0x00000008); message_ = ""; bitField0_ = (bitField0_ & ~0x00000010); 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_CustomResourceDefinitionCondition_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition build() { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition buildPartial() { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition result = new io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition( this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.status_ = status_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (lastTransitionTimeBuilder_ == null) { result.lastTransitionTime_ = lastTransitionTime_; } else { result.lastTransitionTime_ = lastTransitionTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.reason_ = reason_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.message_ = message_; 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.CustomResourceDefinitionCondition) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition other) { if (other == io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition .getDefaultInstance()) return this; if (other.hasType()) { bitField0_ |= 0x00000001; type_ = other.type_; onChanged(); } if (other.hasStatus()) { bitField0_ |= 0x00000002; status_ = other.status_; onChanged(); } if (other.hasLastTransitionTime()) { mergeLastTransitionTime(other.getLastTransitionTime()); } if (other.hasReason()) { bitField0_ |= 0x00000008; reason_ = other.reason_; onChanged(); } if (other.hasMessage()) { bitField0_ |= 0x00000010; message_ = other.message_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object type_ = ""; /** * * *
       * type is the type of the condition. Types include Established, NamesAccepted and Terminating.
       * 
* * optional string type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * type is the type of the condition. Types include Established, NamesAccepted and Terminating.
       * 
* * optional string type = 1; */ 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 the type of the condition. Types include Established, NamesAccepted and Terminating.
       * 
* * optional string type = 1; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof 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; } } /** * * *
       * type is the type of the condition. Types include Established, NamesAccepted and Terminating.
       * 
* * optional string type = 1; */ public Builder setType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /** * * *
       * type is the type of the condition. Types include Established, NamesAccepted and Terminating.
       * 
* * optional string type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = getDefaultInstance().getType(); onChanged(); return this; } /** * * *
       * type is the type of the condition. Types include Established, NamesAccepted and Terminating.
       * 
* * optional string type = 1; */ public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } private java.lang.Object status_ = ""; /** * * *
       * status is the status of the condition.
       * Can be True, False, Unknown.
       * 
* * optional string status = 2; */ public boolean hasStatus() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * status is the status of the condition.
       * Can be True, False, Unknown.
       * 
* * optional string status = 2; */ public java.lang.String getStatus() { java.lang.Object ref = status_; 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()) { status_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * status is the status of the condition.
       * Can be True, False, Unknown.
       * 
* * optional string status = 2; */ public com.google.protobuf.ByteString getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); status_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * status is the status of the condition.
       * Can be True, False, Unknown.
       * 
* * optional string status = 2; */ public Builder setStatus(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; status_ = value; onChanged(); return this; } /** * * *
       * status is the status of the condition.
       * Can be True, False, Unknown.
       * 
* * optional string status = 2; */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000002); status_ = getDefaultInstance().getStatus(); onChanged(); return this; } /** * * *
       * status is the status of the condition.
       * Can be True, False, Unknown.
       * 
* * optional string status = 2; */ public Builder setStatusBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; status_ = value; onChanged(); return this; } private io.kubernetes.client.proto.Meta.Time lastTransitionTime_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> lastTransitionTimeBuilder_; /** * * *
       * lastTransitionTime last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; */ public boolean hasLastTransitionTime() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * lastTransitionTime last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; */ public io.kubernetes.client.proto.Meta.Time getLastTransitionTime() { if (lastTransitionTimeBuilder_ == null) { return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; } else { return lastTransitionTimeBuilder_.getMessage(); } } /** * * *
       * lastTransitionTime last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; */ public Builder setLastTransitionTime(io.kubernetes.client.proto.Meta.Time value) { if (lastTransitionTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastTransitionTime_ = value; onChanged(); } else { lastTransitionTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * lastTransitionTime last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; */ public Builder setLastTransitionTime( io.kubernetes.client.proto.Meta.Time.Builder builderForValue) { if (lastTransitionTimeBuilder_ == null) { lastTransitionTime_ = builderForValue.build(); onChanged(); } else { lastTransitionTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * lastTransitionTime last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; */ public Builder mergeLastTransitionTime(io.kubernetes.client.proto.Meta.Time value) { if (lastTransitionTimeBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && lastTransitionTime_ != null && lastTransitionTime_ != io.kubernetes.client.proto.Meta.Time.getDefaultInstance()) { lastTransitionTime_ = io.kubernetes.client.proto.Meta.Time.newBuilder(lastTransitionTime_) .mergeFrom(value) .buildPartial(); } else { lastTransitionTime_ = value; } onChanged(); } else { lastTransitionTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * lastTransitionTime last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; */ public Builder clearLastTransitionTime() { if (lastTransitionTimeBuilder_ == null) { lastTransitionTime_ = null; onChanged(); } else { lastTransitionTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * lastTransitionTime last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; */ public io.kubernetes.client.proto.Meta.Time.Builder getLastTransitionTimeBuilder() { bitField0_ |= 0x00000004; onChanged(); return getLastTransitionTimeFieldBuilder().getBuilder(); } /** * * *
       * lastTransitionTime last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTransitionTimeOrBuilder() { if (lastTransitionTimeBuilder_ != null) { return lastTransitionTimeBuilder_.getMessageOrBuilder(); } else { return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; } } /** * * *
       * lastTransitionTime last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> getLastTransitionTimeFieldBuilder() { if (lastTransitionTimeBuilder_ == null) { lastTransitionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder>( getLastTransitionTime(), getParentForChildren(), isClean()); lastTransitionTime_ = null; } return lastTransitionTimeBuilder_; } private java.lang.Object reason_ = ""; /** * * *
       * reason is a unique, one-word, CamelCase reason for the condition's last transition.
       * +optional
       * 
* * optional string reason = 4; */ public boolean hasReason() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * reason is a unique, one-word, CamelCase reason for the condition's last transition.
       * +optional
       * 
* * optional string reason = 4; */ public java.lang.String getReason() { java.lang.Object ref = reason_; 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()) { reason_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * reason is a unique, one-word, CamelCase reason for the condition's last transition.
       * +optional
       * 
* * optional string reason = 4; */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * reason is a unique, one-word, CamelCase reason for the condition's last transition.
       * +optional
       * 
* * optional string reason = 4; */ public Builder setReason(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; reason_ = value; onChanged(); return this; } /** * * *
       * reason is a unique, one-word, CamelCase reason for the condition's last transition.
       * +optional
       * 
* * optional string reason = 4; */ public Builder clearReason() { bitField0_ = (bitField0_ & ~0x00000008); reason_ = getDefaultInstance().getReason(); onChanged(); return this; } /** * * *
       * reason is a unique, one-word, CamelCase reason for the condition's last transition.
       * +optional
       * 
* * optional string reason = 4; */ public Builder setReasonBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; reason_ = value; onChanged(); return this; } private java.lang.Object message_ = ""; /** * * *
       * message is a human-readable message indicating details about last transition.
       * +optional
       * 
* * optional string message = 5; */ public boolean hasMessage() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * message is a human-readable message indicating details about last transition.
       * +optional
       * 
* * optional string message = 5; */ public java.lang.String getMessage() { java.lang.Object ref = message_; 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()) { message_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * message is a human-readable message indicating details about last transition.
       * +optional
       * 
* * optional string message = 5; */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * message is a human-readable message indicating details about last transition.
       * +optional
       * 
* * optional string message = 5; */ public Builder setMessage(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; message_ = value; onChanged(); return this; } /** * * *
       * message is a human-readable message indicating details about last transition.
       * +optional
       * 
* * optional string message = 5; */ public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000010); message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** * * *
       * message is a human-readable message indicating details about last transition.
       * +optional
       * 
* * optional string message = 5; */ public Builder setMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; message_ = 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.CustomResourceDefinitionCondition) } // @@protoc_insertion_point(class_scope:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition) private static final io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionCondition DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition(); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CustomResourceDefinitionCondition parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CustomResourceDefinitionCondition(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.CustomResourceDefinitionCondition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CustomResourceDefinitionListOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionList) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard object's metadata
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ boolean hasMetadata(); /** * * *
     * Standard object's metadata
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ListMeta getMetadata(); /** * * *
     * Standard object's metadata
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * items list individual CustomResourceDefinition objects
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition items = 2; * */ java.util.List getItemsList(); /** * * *
     * items list individual CustomResourceDefinition objects
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition items = 2; * */ io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition getItems(int index); /** * * *
     * items list individual CustomResourceDefinition objects
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition items = 2; * */ int getItemsCount(); /** * * *
     * items list individual CustomResourceDefinition objects
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition items = 2; * */ java.util.List< ? extends io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionOrBuilder> getItemsOrBuilderList(); /** * * *
     * items list individual CustomResourceDefinition objects
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition items = 2; * */ io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionOrBuilder getItemsOrBuilder(int index); } /** * * *
   * CustomResourceDefinitionList is a list of CustomResourceDefinition objects.
   * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionList} */ public static final class CustomResourceDefinitionList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionList) CustomResourceDefinitionListOrBuilder { private static final long serialVersionUID = 0L; // Use CustomResourceDefinitionList.newBuilder() to construct. private CustomResourceDefinitionList( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CustomResourceDefinitionList() { items_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CustomResourceDefinitionList( 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.ListMeta.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = metadata_.toBuilder(); } metadata_ = input.readMessage( io.kubernetes.client.proto.Meta.ListMeta.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(metadata_); metadata_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { items_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinition>(); mutable_bitField0_ |= 0x00000002; } items_.add( input.readMessage( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition .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_ & 0x00000002) == 0x00000002)) { items_ = java.util.Collections.unmodifiableList(items_); } 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_CustomResourceDefinitionList_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_CustomResourceDefinitionList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionList.class, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionList.Builder .class); } private int bitField0_; public static final int METADATA_FIELD_NUMBER = 1; private io.kubernetes.client.proto.Meta.ListMeta metadata_; /** * * *
     * Standard object's metadata
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Standard object's metadata
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; } /** * * *
     * Standard object's metadata
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; } public static final int ITEMS_FIELD_NUMBER = 2; private java.util.List items_; /** * * *
     * items list individual CustomResourceDefinition objects
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition items = 2; * */ public java.util.List getItemsList() { return items_; } /** * * *
     * items list individual CustomResourceDefinition objects
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition items = 2; * */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionOrBuilder> getItemsOrBuilderList() { return items_; } /** * * *
     * items list individual CustomResourceDefinition objects
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition items = 2; * */ public int getItemsCount() { return items_.size(); } /** * * *
     * items list individual CustomResourceDefinition objects
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition items = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition getItems( int index) { return items_.get(index); } /** * * *
     * items list individual CustomResourceDefinition objects
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition items = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionOrBuilder getItemsOrBuilder(int index) { return items_.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)) { output.writeMessage(1, getMetadata()); } for (int i = 0; i < items_.size(); i++) { output.writeMessage(2, items_.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.CodedOutputStream.computeMessageSize(1, getMetadata()); } for (int i = 0; i < items_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, items_.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.CustomResourceDefinitionList)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionList other = (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionList) obj; boolean result = true; result = result && (hasMetadata() == other.hasMetadata()); if (hasMetadata()) { result = result && getMetadata().equals(other.getMetadata()); } result = result && getItemsList().equals(other.getItemsList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasMetadata()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); } if (getItemsCount() > 0) { hash = (37 * hash) + ITEMS_FIELD_NUMBER; hash = (53 * hash) + getItemsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionList parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionList 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.CustomResourceDefinitionList parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionList 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.CustomResourceDefinitionList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionList 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.CustomResourceDefinitionList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionList 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.CustomResourceDefinitionList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionList 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.CustomResourceDefinitionList 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.CustomResourceDefinitionList 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.CustomResourceDefinitionList 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; } /** * * *
     * CustomResourceDefinitionList is a list of CustomResourceDefinition objects.
     * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionList} */ 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.CustomResourceDefinitionList) io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionListOrBuilder { 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_CustomResourceDefinitionList_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_CustomResourceDefinitionList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionList.class, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionList.Builder .class); } // Construct using // io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getMetadataFieldBuilder(); getItemsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (metadataBuilder_ == null) { metadata_ = null; } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { itemsBuilder_.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_CustomResourceDefinitionList_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionList getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionList .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionList build() { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionList buildPartial() { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionList result = new io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionList(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (metadataBuilder_ == null) { result.metadata_ = metadata_; } else { result.metadata_ = metadataBuilder_.build(); } if (itemsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { items_ = java.util.Collections.unmodifiableList(items_); bitField0_ = (bitField0_ & ~0x00000002); } result.items_ = items_; } else { result.items_ = itemsBuilder_.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.CustomResourceDefinitionList) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionList) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionList other) { if (other == io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionList .getDefaultInstance()) return this; if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } if (itemsBuilder_ == null) { if (!other.items_.isEmpty()) { if (items_.isEmpty()) { items_ = other.items_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureItemsIsMutable(); items_.addAll(other.items_); } onChanged(); } } else { if (!other.items_.isEmpty()) { if (itemsBuilder_.isEmpty()) { itemsBuilder_.dispose(); itemsBuilder_ = null; items_ = other.items_; bitField0_ = (bitField0_ & ~0x00000002); itemsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getItemsFieldBuilder() : null; } else { itemsBuilder_.addAllMessages(other.items_); } } } 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.CustomResourceDefinitionList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.Meta.ListMeta metadata_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> metadataBuilder_; /** * * *
       * Standard object's metadata
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Standard object's metadata
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { if (metadataBuilder_ == null) { return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** * * *
       * Standard object's metadata
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { metadataBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { if (metadataBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && metadata_ != null && metadata_ != io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()) { metadata_ = io.kubernetes.client.proto.Meta.ListMeta.newBuilder(metadata_) .mergeFrom(value) .buildPartial(); } else { metadata_ = value; } onChanged(); } else { metadataBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public Builder clearMetadata() { if (metadataBuilder_ == null) { metadata_ = null; onChanged(); } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * Standard object's metadata
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ListMeta.Builder getMetadataBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** * * *
       * Standard object's metadata
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; } } /** * * *
       * Standard object's metadata
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } private java.util.List< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition> items_ = java.util.Collections.emptyList(); private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { items_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition>(items_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionOrBuilder> itemsBuilder_; /** * * *
       * items list individual CustomResourceDefinition objects
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition items = 2; * */ public java.util.List< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition> getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { return itemsBuilder_.getMessageList(); } } /** * * *
       * items list individual CustomResourceDefinition objects
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition items = 2; * */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** * * *
       * items list individual CustomResourceDefinition objects
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition items = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition getItems( int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** * * *
       * items list individual CustomResourceDefinition objects
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition items = 2; * */ public Builder setItems( int index, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.set(index, value); onChanged(); } else { itemsBuilder_.setMessage(index, value); } return this; } /** * * *
       * items list individual CustomResourceDefinition objects
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition items = 2; * */ public Builder setItems( int index, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * items list individual CustomResourceDefinition objects
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition items = 2; * */ public Builder addItems( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(value); onChanged(); } else { itemsBuilder_.addMessage(value); } return this; } /** * * *
       * items list individual CustomResourceDefinition objects
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition items = 2; * */ public Builder addItems( int index, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(index, value); onChanged(); } else { itemsBuilder_.addMessage(index, value); } return this; } /** * * *
       * items list individual CustomResourceDefinition objects
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition items = 2; * */ public Builder addItems( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * items list individual CustomResourceDefinition objects
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition items = 2; * */ public Builder addItems( int index, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * items list individual CustomResourceDefinition objects
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition items = 2; * */ public Builder addAllItems( java.lang.Iterable< ? extends io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition> values) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); onChanged(); } else { itemsBuilder_.addAllMessages(values); } return this; } /** * * *
       * items list individual CustomResourceDefinition objects
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition items = 2; * */ public Builder clearItems() { if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { itemsBuilder_.clear(); } return this; } /** * * *
       * items list individual CustomResourceDefinition objects
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition items = 2; * */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.remove(index); onChanged(); } else { itemsBuilder_.remove(index); } return this; } /** * * *
       * items list individual CustomResourceDefinition objects
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition items = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition.Builder getItemsBuilder(int index) { return getItemsFieldBuilder().getBuilder(index); } /** * * *
       * items list individual CustomResourceDefinition objects
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition items = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionOrBuilder getItemsOrBuilder(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * items list individual CustomResourceDefinition objects
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition items = 2; * */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionOrBuilder> getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(items_); } } /** * * *
       * items list individual CustomResourceDefinition objects
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition items = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition.Builder addItemsBuilder() { return getItemsFieldBuilder() .addBuilder( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition .getDefaultInstance()); } /** * * *
       * items list individual CustomResourceDefinition objects
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition items = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition.Builder addItemsBuilder(int index) { return getItemsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition .getDefaultInstance()); } /** * * *
       * items list individual CustomResourceDefinition objects
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition items = 2; * */ public java.util.List< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinition.Builder> 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.
     * The custom resources are served under `/apis/<group>/<version>/.../<plural>`.
     * Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`).
     * Must be all lowercase.
     * 
* * optional string plural = 1; */ boolean hasPlural(); /** * * *
     * plural is the plural name of the resource to serve.
     * The custom resources are served under `/apis/<group>/<version>/.../<plural>`.
     * Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`).
     * Must be all lowercase.
     * 
* * optional string plural = 1; */ java.lang.String getPlural(); /** * * *
     * plural is the plural name of the resource to serve.
     * The custom resources are served under `/apis/<group>/<version>/.../<plural>`.
     * Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`).
     * Must be all lowercase.
     * 
* * optional string plural = 1; */ com.google.protobuf.ByteString getPluralBytes(); /** * * *
     * singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.
     * +optional
     * 
* * optional string singular = 2; */ boolean hasSingular(); /** * * *
     * singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.
     * +optional
     * 
* * optional string singular = 2; */ java.lang.String getSingular(); /** * * *
     * singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.
     * +optional
     * 
* * optional string singular = 2; */ com.google.protobuf.ByteString getSingularBytes(); /** * * *
     * shortNames are short names for the resource, exposed in API discovery documents,
     * and used by clients to support invocations like `kubectl get <shortname>`.
     * It must be all lowercase.
     * +optional
     * 
* * repeated string shortNames = 3; */ java.util.List getShortNamesList(); /** * * *
     * shortNames are short names for the resource, exposed in API discovery documents,
     * and used by clients to support invocations like `kubectl get <shortname>`.
     * It must be all lowercase.
     * +optional
     * 
* * repeated string shortNames = 3; */ int getShortNamesCount(); /** * * *
     * shortNames are short names for the resource, exposed in API discovery documents,
     * and used by clients to support invocations like `kubectl get <shortname>`.
     * It must be all lowercase.
     * +optional
     * 
* * repeated string shortNames = 3; */ java.lang.String getShortNames(int index); /** * * *
     * shortNames are short names for the resource, exposed in API discovery documents,
     * and used by clients to support invocations like `kubectl get <shortname>`.
     * It must be all lowercase.
     * +optional
     * 
* * repeated string shortNames = 3; */ com.google.protobuf.ByteString getShortNamesBytes(int index); /** * * *
     * kind is the serialized kind of the resource. It is normally CamelCase and singular.
     * Custom resource instances will use this value as the `kind` attribute in API calls.
     * 
* * optional string kind = 4; */ boolean hasKind(); /** * * *
     * kind is the serialized kind of the resource. It is normally CamelCase and singular.
     * Custom resource instances will use this value as the `kind` attribute in API calls.
     * 
* * optional string kind = 4; */ java.lang.String getKind(); /** * * *
     * kind is the serialized kind of the resource. It is normally CamelCase and singular.
     * Custom resource instances will use this value as the `kind` attribute in API calls.
     * 
* * optional string kind = 4; */ com.google.protobuf.ByteString getKindBytes(); /** * * *
     * listKind is the serialized kind of the list for this resource. Defaults to "`kind`List".
     * +optional
     * 
* * optional string listKind = 5; */ boolean hasListKind(); /** * * *
     * listKind is the serialized kind of the list for this resource. Defaults to "`kind`List".
     * +optional
     * 
* * optional string listKind = 5; */ java.lang.String getListKind(); /** * * *
     * listKind is the serialized kind of the list for this resource. Defaults to "`kind`List".
     * +optional
     * 
* * optional string listKind = 5; */ com.google.protobuf.ByteString getListKindBytes(); /** * * *
     * categories is a list of grouped resources this custom resource belongs to (e.g. 'all').
     * This is published in API discovery documents, and used by clients to support invocations like
     * `kubectl get all`.
     * +optional
     * 
* * repeated string categories = 6; */ java.util.List getCategoriesList(); /** * * *
     * categories is a list of grouped resources this custom resource belongs to (e.g. 'all').
     * This is published in API discovery documents, and used by clients to support invocations like
     * `kubectl get all`.
     * +optional
     * 
* * repeated string categories = 6; */ int getCategoriesCount(); /** * * *
     * categories is a list of grouped resources this custom resource belongs to (e.g. 'all').
     * This is published in API discovery documents, and used by clients to support invocations like
     * `kubectl get all`.
     * +optional
     * 
* * repeated string categories = 6; */ java.lang.String getCategories(int index); /** * * *
     * categories is a list of grouped resources this custom resource belongs to (e.g. 'all').
     * This is published in API discovery documents, and used by clients to support invocations like
     * `kubectl get all`.
     * +optional
     * 
* * repeated string categories = 6; */ com.google.protobuf.ByteString getCategoriesBytes(int index); } /** * * *
   * 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.
     * The custom resources are served under `/apis/<group>/<version>/.../<plural>`.
     * Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`).
     * Must be all lowercase.
     * 
* * optional string plural = 1; */ public boolean hasPlural() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * plural is the plural name of the resource to serve.
     * The custom resources are served under `/apis/<group>/<version>/.../<plural>`.
     * Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`).
     * Must be all lowercase.
     * 
* * optional string plural = 1; */ public java.lang.String getPlural() { java.lang.Object ref = plural_; 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()) { plural_ = s; } return s; } } /** * * *
     * plural is the plural name of the resource to serve.
     * The custom resources are served under `/apis/<group>/<version>/.../<plural>`.
     * Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`).
     * 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
     * 
* * optional string singular = 2; */ public boolean hasSingular() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.
     * +optional
     * 
* * optional string singular = 2; */ public java.lang.String getSingular() { java.lang.Object ref = singular_; 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()) { singular_ = s; } return s; } } /** * * *
     * singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.
     * +optional
     * 
* * optional string singular = 2; */ public com.google.protobuf.ByteString getSingularBytes() { java.lang.Object ref = singular_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); singular_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SHORTNAMES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList shortNames_; /** * * *
     * shortNames are short names for the resource, exposed in API discovery documents,
     * and used by clients to support invocations like `kubectl get <shortname>`.
     * It must be all lowercase.
     * +optional
     * 
* * repeated string shortNames = 3; */ public com.google.protobuf.ProtocolStringList getShortNamesList() { return shortNames_; } /** * * *
     * shortNames are short names for the resource, exposed in API discovery documents,
     * and used by clients to support invocations like `kubectl get <shortname>`.
     * It must be all lowercase.
     * +optional
     * 
* * repeated string shortNames = 3; */ public int getShortNamesCount() { return shortNames_.size(); } /** * * *
     * shortNames are short names for the resource, exposed in API discovery documents,
     * and used by clients to support invocations like `kubectl get <shortname>`.
     * It must be all lowercase.
     * +optional
     * 
* * repeated string shortNames = 3; */ public java.lang.String getShortNames(int index) { return shortNames_.get(index); } /** * * *
     * shortNames are short names for the resource, exposed in API discovery documents,
     * and used by clients to support invocations like `kubectl get <shortname>`.
     * It must be all lowercase.
     * +optional
     * 
* * repeated string shortNames = 3; */ public com.google.protobuf.ByteString getShortNamesBytes(int index) { return shortNames_.getByteString(index); } public static final int KIND_FIELD_NUMBER = 4; private volatile java.lang.Object kind_; /** * * *
     * kind is the serialized kind of the resource. It is normally CamelCase and singular.
     * Custom resource instances will use this value as the `kind` attribute in API calls.
     * 
* * optional string kind = 4; */ public boolean hasKind() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * kind is the serialized kind of the resource. It is normally CamelCase and singular.
     * Custom resource instances will use this value as the `kind` attribute in API calls.
     * 
* * optional string kind = 4; */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { kind_ = s; } return s; } } /** * * *
     * kind is the serialized kind of the resource. It is normally CamelCase and singular.
     * Custom resource instances will use this value as the `kind` attribute in API calls.
     * 
* * optional string kind = 4; */ public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LISTKIND_FIELD_NUMBER = 5; private volatile java.lang.Object listKind_; /** * * *
     * listKind is the serialized kind of the list for this resource. Defaults to "`kind`List".
     * +optional
     * 
* * optional string listKind = 5; */ public boolean hasListKind() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * listKind is the serialized kind of the list for this resource. Defaults to "`kind`List".
     * +optional
     * 
* * optional string listKind = 5; */ public java.lang.String getListKind() { java.lang.Object ref = listKind_; 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()) { listKind_ = s; } return s; } } /** * * *
     * listKind is the serialized kind of the list for this resource. Defaults to "`kind`List".
     * +optional
     * 
* * optional string listKind = 5; */ public com.google.protobuf.ByteString getListKindBytes() { java.lang.Object ref = listKind_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); listKind_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CATEGORIES_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList categories_; /** * * *
     * categories is a list of grouped resources this custom resource belongs to (e.g. 'all').
     * This is published in API discovery documents, and used by clients to support invocations like
     * `kubectl get all`.
     * +optional
     * 
* * repeated string categories = 6; */ public com.google.protobuf.ProtocolStringList getCategoriesList() { return categories_; } /** * * *
     * categories is a list of grouped resources this custom resource belongs to (e.g. 'all').
     * This is published in API discovery documents, and used by clients to support invocations like
     * `kubectl get all`.
     * +optional
     * 
* * repeated string categories = 6; */ public int getCategoriesCount() { return categories_.size(); } /** * * *
     * categories is a list of grouped resources this custom resource belongs to (e.g. 'all').
     * This is published in API discovery documents, and used by clients to support invocations like
     * `kubectl get all`.
     * +optional
     * 
* * repeated string categories = 6; */ public java.lang.String getCategories(int index) { return categories_.get(index); } /** * * *
     * categories is a list of grouped resources this custom resource belongs to (e.g. 'all').
     * This is published in API discovery documents, and used by clients to support invocations like
     * `kubectl get all`.
     * +optional
     * 
* * repeated string categories = 6; */ public com.google.protobuf.ByteString getCategoriesBytes(int index) { return categories_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, plural_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, singular_); } for (int i = 0; i < shortNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, shortNames_.getRaw(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, kind_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, listKind_); } for (int i = 0; i < categories_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, categories_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, plural_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, singular_); } { int dataSize = 0; for (int i = 0; i < shortNames_.size(); i++) { dataSize += computeStringSizeNoTag(shortNames_.getRaw(i)); } size += dataSize; size += 1 * getShortNamesList().size(); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, kind_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, listKind_); } { int dataSize = 0; for (int i = 0; i < categories_.size(); i++) { dataSize += computeStringSizeNoTag(categories_.getRaw(i)); } size += dataSize; size += 1 * getCategoriesList().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.CustomResourceDefinitionNames)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames other = (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames) obj; boolean result = true; result = result && (hasPlural() == other.hasPlural()); if (hasPlural()) { result = result && getPlural().equals(other.getPlural()); } result = result && (hasSingular() == other.hasSingular()); if (hasSingular()) { result = result && getSingular().equals(other.getSingular()); } result = result && getShortNamesList().equals(other.getShortNamesList()); result = result && (hasKind() == other.hasKind()); if (hasKind()) { result = result && getKind().equals(other.getKind()); } result = result && (hasListKind() == other.hasListKind()); if (hasListKind()) { result = result && getListKind().equals(other.getListKind()); } result = result && getCategoriesList().equals(other.getCategoriesList()); 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 (hasPlural()) { hash = (37 * hash) + PLURAL_FIELD_NUMBER; hash = (53 * hash) + getPlural().hashCode(); } if (hasSingular()) { hash = (37 * hash) + SINGULAR_FIELD_NUMBER; hash = (53 * hash) + getSingular().hashCode(); } if (getShortNamesCount() > 0) { hash = (37 * hash) + SHORTNAMES_FIELD_NUMBER; hash = (53 * hash) + getShortNamesList().hashCode(); } if (hasKind()) { hash = (37 * hash) + KIND_FIELD_NUMBER; hash = (53 * hash) + getKind().hashCode(); } if (hasListKind()) { hash = (37 * hash) + LISTKIND_FIELD_NUMBER; hash = (53 * hash) + getListKind().hashCode(); } if (getCategoriesCount() > 0) { hash = (37 * hash) + CATEGORIES_FIELD_NUMBER; hash = (53 * hash) + getCategoriesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames 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.CustomResourceDefinitionNames parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames 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.CustomResourceDefinitionNames parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames 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.CustomResourceDefinitionNames parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames 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.CustomResourceDefinitionNames parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames 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.CustomResourceDefinitionNames 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.CustomResourceDefinitionNames 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.CustomResourceDefinitionNames 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; } /** * * *
     * CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition
     * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames} */ 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.CustomResourceDefinitionNames) io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNamesOrBuilder { 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); } // Construct using // io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames.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(); plural_ = ""; bitField0_ = (bitField0_ & ~0x00000001); singular_ = ""; bitField0_ = (bitField0_ & ~0x00000002); shortNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); kind_ = ""; bitField0_ = (bitField0_ & ~0x00000008); listKind_ = ""; bitField0_ = (bitField0_ & ~0x00000010); categories_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); 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_CustomResourceDefinitionNames_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames build() { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames buildPartial() { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames result = new io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.plural_ = plural_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.singular_ = singular_; if (((bitField0_ & 0x00000004) == 0x00000004)) { shortNames_ = shortNames_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.shortNames_ = shortNames_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.kind_ = kind_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000008; } result.listKind_ = listKind_; if (((bitField0_ & 0x00000020) == 0x00000020)) { categories_ = categories_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000020); } result.categories_ = categories_; 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.CustomResourceDefinitionNames) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames other) { if (other == io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames .getDefaultInstance()) return this; if (other.hasPlural()) { bitField0_ |= 0x00000001; plural_ = other.plural_; onChanged(); } if (other.hasSingular()) { bitField0_ |= 0x00000002; singular_ = other.singular_; onChanged(); } if (!other.shortNames_.isEmpty()) { if (shortNames_.isEmpty()) { shortNames_ = other.shortNames_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureShortNamesIsMutable(); shortNames_.addAll(other.shortNames_); } onChanged(); } if (other.hasKind()) { bitField0_ |= 0x00000008; kind_ = other.kind_; onChanged(); } if (other.hasListKind()) { bitField0_ |= 0x00000010; listKind_ = other.listKind_; onChanged(); } if (!other.categories_.isEmpty()) { if (categories_.isEmpty()) { categories_ = other.categories_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureCategoriesIsMutable(); categories_.addAll(other.categories_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object plural_ = ""; /** * * *
       * plural is the plural name of the resource to serve.
       * The custom resources are served under `/apis/<group>/<version>/.../<plural>`.
       * Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`).
       * Must be all lowercase.
       * 
* * optional string plural = 1; */ public boolean hasPlural() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * plural is the plural name of the resource to serve.
       * The custom resources are served under `/apis/<group>/<version>/.../<plural>`.
       * Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`).
       * Must be all lowercase.
       * 
* * optional string plural = 1; */ public java.lang.String getPlural() { java.lang.Object ref = plural_; 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()) { plural_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * plural is the plural name of the resource to serve.
       * The custom resources are served under `/apis/<group>/<version>/.../<plural>`.
       * Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`).
       * Must be all lowercase.
       * 
* * optional string plural = 1; */ public com.google.protobuf.ByteString getPluralBytes() { java.lang.Object ref = plural_; if (ref instanceof 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; } } /** * * *
       * plural is the plural name of the resource to serve.
       * The custom resources are served under `/apis/<group>/<version>/.../<plural>`.
       * Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`).
       * Must be all lowercase.
       * 
* * optional string plural = 1; */ public Builder setPlural(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; plural_ = value; onChanged(); return this; } /** * * *
       * plural is the plural name of the resource to serve.
       * The custom resources are served under `/apis/<group>/<version>/.../<plural>`.
       * Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`).
       * Must be all lowercase.
       * 
* * optional string plural = 1; */ public Builder clearPlural() { bitField0_ = (bitField0_ & ~0x00000001); plural_ = getDefaultInstance().getPlural(); onChanged(); return this; } /** * * *
       * plural is the plural name of the resource to serve.
       * The custom resources are served under `/apis/<group>/<version>/.../<plural>`.
       * Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`).
       * Must be all lowercase.
       * 
* * optional string plural = 1; */ public Builder setPluralBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; plural_ = value; onChanged(); return this; } private java.lang.Object singular_ = ""; /** * * *
       * singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.
       * +optional
       * 
* * optional string singular = 2; */ public boolean hasSingular() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.
       * +optional
       * 
* * optional string singular = 2; */ public java.lang.String getSingular() { java.lang.Object ref = singular_; 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()) { singular_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.
       * +optional
       * 
* * optional string singular = 2; */ public com.google.protobuf.ByteString getSingularBytes() { java.lang.Object ref = singular_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); singular_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.
       * +optional
       * 
* * optional string singular = 2; */ public Builder setSingular(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; singular_ = value; onChanged(); return this; } /** * * *
       * singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.
       * +optional
       * 
* * optional string singular = 2; */ public Builder clearSingular() { bitField0_ = (bitField0_ & ~0x00000002); singular_ = getDefaultInstance().getSingular(); onChanged(); return this; } /** * * *
       * singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.
       * +optional
       * 
* * optional string singular = 2; */ public Builder setSingularBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; singular_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList shortNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureShortNamesIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { shortNames_ = new com.google.protobuf.LazyStringArrayList(shortNames_); bitField0_ |= 0x00000004; } } /** * * *
       * shortNames are short names for the resource, exposed in API discovery documents,
       * and used by clients to support invocations like `kubectl get <shortname>`.
       * It must be all lowercase.
       * +optional
       * 
* * repeated string shortNames = 3; */ public com.google.protobuf.ProtocolStringList getShortNamesList() { return shortNames_.getUnmodifiableView(); } /** * * *
       * shortNames are short names for the resource, exposed in API discovery documents,
       * and used by clients to support invocations like `kubectl get <shortname>`.
       * It must be all lowercase.
       * +optional
       * 
* * repeated string shortNames = 3; */ public int getShortNamesCount() { return shortNames_.size(); } /** * * *
       * shortNames are short names for the resource, exposed in API discovery documents,
       * and used by clients to support invocations like `kubectl get <shortname>`.
       * It must be all lowercase.
       * +optional
       * 
* * repeated string shortNames = 3; */ public java.lang.String getShortNames(int index) { return shortNames_.get(index); } /** * * *
       * shortNames are short names for the resource, exposed in API discovery documents,
       * and used by clients to support invocations like `kubectl get <shortname>`.
       * It must be all lowercase.
       * +optional
       * 
* * repeated string shortNames = 3; */ public com.google.protobuf.ByteString getShortNamesBytes(int index) { return shortNames_.getByteString(index); } /** * * *
       * shortNames are short names for the resource, exposed in API discovery documents,
       * and used by clients to support invocations like `kubectl get <shortname>`.
       * It must be all lowercase.
       * +optional
       * 
* * repeated string shortNames = 3; */ public Builder setShortNames(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureShortNamesIsMutable(); shortNames_.set(index, value); onChanged(); return this; } /** * * *
       * shortNames are short names for the resource, exposed in API discovery documents,
       * and used by clients to support invocations like `kubectl get <shortname>`.
       * It must be all lowercase.
       * +optional
       * 
* * repeated string shortNames = 3; */ public Builder addShortNames(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureShortNamesIsMutable(); shortNames_.add(value); onChanged(); return this; } /** * * *
       * shortNames are short names for the resource, exposed in API discovery documents,
       * and used by clients to support invocations like `kubectl get <shortname>`.
       * It must be all lowercase.
       * +optional
       * 
* * repeated string shortNames = 3; */ public Builder addAllShortNames(java.lang.Iterable values) { ensureShortNamesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, shortNames_); onChanged(); return this; } /** * * *
       * shortNames are short names for the resource, exposed in API discovery documents,
       * and used by clients to support invocations like `kubectl get <shortname>`.
       * It must be all lowercase.
       * +optional
       * 
* * repeated string shortNames = 3; */ public Builder clearShortNames() { shortNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
       * shortNames are short names for the resource, exposed in API discovery documents,
       * and used by clients to support invocations like `kubectl get <shortname>`.
       * It must be all lowercase.
       * +optional
       * 
* * repeated string shortNames = 3; */ public Builder addShortNamesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureShortNamesIsMutable(); shortNames_.add(value); onChanged(); return this; } private java.lang.Object kind_ = ""; /** * * *
       * kind is the serialized kind of the resource. It is normally CamelCase and singular.
       * Custom resource instances will use this value as the `kind` attribute in API calls.
       * 
* * optional string kind = 4; */ public boolean hasKind() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * kind is the serialized kind of the resource. It is normally CamelCase and singular.
       * Custom resource instances will use this value as the `kind` attribute in API calls.
       * 
* * optional string kind = 4; */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { kind_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * kind is the serialized kind of the resource. It is normally CamelCase and singular.
       * Custom resource instances will use this value as the `kind` attribute in API calls.
       * 
* * optional string kind = 4; */ public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * kind is the serialized kind of the resource. It is normally CamelCase and singular.
       * Custom resource instances will use this value as the `kind` attribute in API calls.
       * 
* * optional string kind = 4; */ public Builder setKind(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; kind_ = value; onChanged(); return this; } /** * * *
       * kind is the serialized kind of the resource. It is normally CamelCase and singular.
       * Custom resource instances will use this value as the `kind` attribute in API calls.
       * 
* * optional string kind = 4; */ public Builder clearKind() { bitField0_ = (bitField0_ & ~0x00000008); kind_ = getDefaultInstance().getKind(); onChanged(); return this; } /** * * *
       * kind is the serialized kind of the resource. It is normally CamelCase and singular.
       * Custom resource instances will use this value as the `kind` attribute in API calls.
       * 
* * optional string kind = 4; */ public Builder setKindBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; kind_ = value; onChanged(); return this; } private java.lang.Object listKind_ = ""; /** * * *
       * listKind is the serialized kind of the list for this resource. Defaults to "`kind`List".
       * +optional
       * 
* * optional string listKind = 5; */ public boolean hasListKind() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * listKind is the serialized kind of the list for this resource. Defaults to "`kind`List".
       * +optional
       * 
* * optional string listKind = 5; */ public java.lang.String getListKind() { java.lang.Object ref = listKind_; 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()) { listKind_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * listKind is the serialized kind of the list for this resource. Defaults to "`kind`List".
       * +optional
       * 
* * optional string listKind = 5; */ public com.google.protobuf.ByteString getListKindBytes() { java.lang.Object ref = listKind_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); listKind_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * listKind is the serialized kind of the list for this resource. Defaults to "`kind`List".
       * +optional
       * 
* * optional string listKind = 5; */ public Builder setListKind(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; listKind_ = value; onChanged(); return this; } /** * * *
       * listKind is the serialized kind of the list for this resource. Defaults to "`kind`List".
       * +optional
       * 
* * optional string listKind = 5; */ public Builder clearListKind() { bitField0_ = (bitField0_ & ~0x00000010); listKind_ = getDefaultInstance().getListKind(); onChanged(); return this; } /** * * *
       * listKind is the serialized kind of the list for this resource. Defaults to "`kind`List".
       * +optional
       * 
* * optional string listKind = 5; */ public Builder setListKindBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; listKind_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList categories_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureCategoriesIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { categories_ = new com.google.protobuf.LazyStringArrayList(categories_); bitField0_ |= 0x00000020; } } /** * * *
       * categories is a list of grouped resources this custom resource belongs to (e.g. 'all').
       * This is published in API discovery documents, and used by clients to support invocations like
       * `kubectl get all`.
       * +optional
       * 
* * repeated string categories = 6; */ public com.google.protobuf.ProtocolStringList getCategoriesList() { return categories_.getUnmodifiableView(); } /** * * *
       * categories is a list of grouped resources this custom resource belongs to (e.g. 'all').
       * This is published in API discovery documents, and used by clients to support invocations like
       * `kubectl get all`.
       * +optional
       * 
* * repeated string categories = 6; */ public int getCategoriesCount() { return categories_.size(); } /** * * *
       * categories is a list of grouped resources this custom resource belongs to (e.g. 'all').
       * This is published in API discovery documents, and used by clients to support invocations like
       * `kubectl get all`.
       * +optional
       * 
* * repeated string categories = 6; */ public java.lang.String getCategories(int index) { return categories_.get(index); } /** * * *
       * categories is a list of grouped resources this custom resource belongs to (e.g. 'all').
       * This is published in API discovery documents, and used by clients to support invocations like
       * `kubectl get all`.
       * +optional
       * 
* * repeated string categories = 6; */ public com.google.protobuf.ByteString getCategoriesBytes(int index) { return categories_.getByteString(index); } /** * * *
       * categories is a list of grouped resources this custom resource belongs to (e.g. 'all').
       * This is published in API discovery documents, and used by clients to support invocations like
       * `kubectl get all`.
       * +optional
       * 
* * repeated string categories = 6; */ public Builder setCategories(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCategoriesIsMutable(); categories_.set(index, value); onChanged(); return this; } /** * * *
       * categories is a list of grouped resources this custom resource belongs to (e.g. 'all').
       * This is published in API discovery documents, and used by clients to support invocations like
       * `kubectl get all`.
       * +optional
       * 
* * repeated string categories = 6; */ public Builder addCategories(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCategoriesIsMutable(); categories_.add(value); onChanged(); return this; } /** * * *
       * categories is a list of grouped resources this custom resource belongs to (e.g. 'all').
       * This is published in API discovery documents, and used by clients to support invocations like
       * `kubectl get all`.
       * +optional
       * 
* * repeated string categories = 6; */ public Builder addAllCategories(java.lang.Iterable values) { ensureCategoriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, categories_); onChanged(); return this; } /** * * *
       * categories is a list of grouped resources this custom resource belongs to (e.g. 'all').
       * This is published in API discovery documents, and used by clients to support invocations like
       * `kubectl get all`.
       * +optional
       * 
* * repeated string categories = 6; */ public Builder clearCategories() { categories_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * * *
       * categories is a list of grouped resources this custom resource belongs to (e.g. 'all').
       * This is published in API discovery documents, and used by clients to support invocations like
       * `kubectl get all`.
       * +optional
       * 
* * repeated string categories = 6; */ public Builder addCategoriesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureCategoriesIsMutable(); categories_.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.CustomResourceDefinitionNames) } // @@protoc_insertion_point(class_scope:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames) private static final io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionNames DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames(); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CustomResourceDefinitionNames parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CustomResourceDefinitionNames(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.CustomResourceDefinitionNames getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CustomResourceDefinitionSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionSpec) com.google.protobuf.MessageOrBuilder { /** * * *
     * group is the API group of the defined custom resource.
     * The custom resources are served under `/apis/<group>/...`.
     * Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`).
     * 
* * optional string group = 1; */ boolean hasGroup(); /** * * *
     * group is the API group of the defined custom resource.
     * The custom resources are served under `/apis/<group>/...`.
     * Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`).
     * 
* * optional string group = 1; */ java.lang.String getGroup(); /** * * *
     * group is the API group of the defined custom resource.
     * The custom resources are served under `/apis/<group>/...`.
     * Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`).
     * 
* * optional string group = 1; */ com.google.protobuf.ByteString getGroupBytes(); /** * * *
     * version is the API version of the defined custom resource.
     * The custom resources are served under `/apis/<group>/<version>/...`.
     * Must match the name of the first item in the `versions` list if `version` and `versions` are both specified.
     * Optional if `versions` is specified.
     * Deprecated: use `versions` instead.
     * +optional
     * 
* * optional string version = 2; */ boolean hasVersion(); /** * * *
     * version is the API version of the defined custom resource.
     * The custom resources are served under `/apis/<group>/<version>/...`.
     * Must match the name of the first item in the `versions` list if `version` and `versions` are both specified.
     * Optional if `versions` is specified.
     * Deprecated: use `versions` instead.
     * +optional
     * 
* * optional string version = 2; */ java.lang.String getVersion(); /** * * *
     * version is the API version of the defined custom resource.
     * The custom resources are served under `/apis/<group>/<version>/...`.
     * Must match the name of the first item in the `versions` list if `version` and `versions` are both specified.
     * Optional if `versions` is specified.
     * Deprecated: use `versions` instead.
     * +optional
     * 
* * optional string version = 2; */ com.google.protobuf.ByteString getVersionBytes(); /** * * *
     * names specify the resource and kind names for the custom resource.
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames names = 3; * */ boolean hasNames(); /** * * *
     * names specify the resource and kind names for the custom resource.
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames names = 3; * */ io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames getNames(); /** * * *
     * names specify the resource and kind names for the custom resource.
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames names = 3; * */ io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNamesOrBuilder getNamesOrBuilder(); /** * * *
     * scope indicates whether the defined custom resource is cluster- or namespace-scoped.
     * Allowed values are `Cluster` and `Namespaced`. Default is `Namespaced`.
     * 
* * optional string scope = 4; */ boolean hasScope(); /** * * *
     * scope indicates whether the defined custom resource is cluster- or namespace-scoped.
     * Allowed values are `Cluster` and `Namespaced`. Default is `Namespaced`.
     * 
* * optional string scope = 4; */ java.lang.String getScope(); /** * * *
     * scope indicates whether the defined custom resource is cluster- or namespace-scoped.
     * Allowed values are `Cluster` and `Namespaced`. Default is `Namespaced`.
     * 
* * optional string scope = 4; */ com.google.protobuf.ByteString getScopeBytes(); /** * * *
     * validation describes the schema used for validation and pruning of the custom resource.
     * If present, this validation schema is used to validate all versions.
     * Top-level and per-version schemas are mutually exclusive.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceValidation validation = 5; * */ boolean hasValidation(); /** * * *
     * validation describes the schema used for validation and pruning of the custom resource.
     * If present, this validation schema is used to validate all versions.
     * Top-level and per-version schemas are mutually exclusive.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceValidation validation = 5; * */ io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation getValidation(); /** * * *
     * validation describes the schema used for validation and pruning of the custom resource.
     * If present, this validation schema is used to validate all versions.
     * Top-level and per-version schemas are mutually exclusive.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceValidation validation = 5; * */ io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidationOrBuilder getValidationOrBuilder(); /** * * *
     * subresources specify what subresources the defined custom resource has.
     * If present, this field configures 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; * */ boolean hasSubresources(); /** * * *
     * subresources specify what subresources the defined custom resource has.
     * If present, this field configures 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; * */ io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources getSubresources(); /** * * *
     * subresources specify what subresources the defined custom resource has.
     * If present, this field configures 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; * */ io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourcesOrBuilder getSubresourcesOrBuilder(); /** * * *
     * versions is the list of all API versions of the defined custom resource.
     * Optional if `version` is specified.
     * The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified.
     * Version names are used to compute the order in which served versions are listed in API discovery.
     * 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; * */ java.util.List getVersionsList(); /** * * *
     * versions is the list of all API versions of the defined custom resource.
     * Optional if `version` is specified.
     * The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified.
     * Version names are used to compute the order in which served versions are listed in API discovery.
     * 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; * */ io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion getVersions( int index); /** * * *
     * versions is the list of all API versions of the defined custom resource.
     * Optional if `version` is specified.
     * The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified.
     * Version names are used to compute the order in which served versions are listed in API discovery.
     * 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; * */ int getVersionsCount(); /** * * *
     * versions is the list of all API versions of the defined custom resource.
     * Optional if `version` is specified.
     * The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified.
     * Version names are used to compute the order in which served versions are listed in API discovery.
     * 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; * */ java.util.List< ? extends io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionVersionOrBuilder> getVersionsOrBuilderList(); /** * * *
     * versions is the list of all API versions of the defined custom resource.
     * Optional if `version` is specified.
     * The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified.
     * Version names are used to compute the order in which served versions are listed in API discovery.
     * 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; * */ io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersionOrBuilder getVersionsOrBuilder(int index); /** * * *
     * additionalPrinterColumns specifies additional columns returned in Table output.
     * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
     * If present, this field configures columns for all versions.
     * Top-level and per-version columns are mutually exclusive.
     * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
     * +optional
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 8; * */ java.util.List getAdditionalPrinterColumnsList(); /** * * *
     * additionalPrinterColumns specifies additional columns returned in Table output.
     * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
     * If present, this field configures columns for all versions.
     * Top-level and per-version columns are mutually exclusive.
     * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
     * +optional
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 8; * */ io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition getAdditionalPrinterColumns(int index); /** * * *
     * additionalPrinterColumns specifies additional columns returned in Table output.
     * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
     * If present, this field configures columns for all versions.
     * Top-level and per-version columns are mutually exclusive.
     * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
     * +optional
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 8; * */ int getAdditionalPrinterColumnsCount(); /** * * *
     * additionalPrinterColumns specifies additional columns returned in Table output.
     * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
     * If present, this field configures columns for all versions.
     * Top-level and per-version columns are mutually exclusive.
     * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
     * +optional
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 8; * */ java.util.List< ? extends io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceColumnDefinitionOrBuilder> getAdditionalPrinterColumnsOrBuilderList(); /** * * *
     * additionalPrinterColumns specifies additional columns returned in Table output.
     * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
     * If present, this field configures columns for all versions.
     * Top-level and per-version columns are mutually exclusive.
     * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
     * +optional
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 8; * */ io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinitionOrBuilder getAdditionalPrinterColumnsOrBuilder(int index); /** * * *
     * conversion defines conversion settings for the CRD.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceConversion conversion = 9; * */ boolean hasConversion(); /** * * *
     * conversion defines conversion settings for the CRD.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceConversion conversion = 9; * */ io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion getConversion(); /** * * *
     * conversion defines conversion settings for the CRD.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceConversion conversion = 9; * */ io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversionOrBuilder getConversionOrBuilder(); /** * * *
     * preserveUnknownFields indicates that object fields which are not specified
     * in the OpenAPI schema should be preserved when persisting to storage.
     * apiVersion, kind, metadata and known fields inside metadata are always preserved.
     * If false, schemas must be defined for all versions.
     * Defaults to true in v1beta for backwards compatibility.
     * Deprecated: will be required to be false in v1. Preservation of unknown fields can be specified
     * in the validation schema using the `x-kubernetes-preserve-unknown-fields: true` extension.
     * See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details.
     * +optional
     * 
* * optional bool preserveUnknownFields = 10; */ boolean hasPreserveUnknownFields(); /** * * *
     * preserveUnknownFields indicates that object fields which are not specified
     * in the OpenAPI schema should be preserved when persisting to storage.
     * apiVersion, kind, metadata and known fields inside metadata are always preserved.
     * If false, schemas must be defined for all versions.
     * Defaults to true in v1beta for backwards compatibility.
     * Deprecated: will be required to be false in v1. Preservation of unknown fields can be specified
     * in the validation schema using the `x-kubernetes-preserve-unknown-fields: true` extension.
     * See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details.
     * +optional
     * 
* * optional bool preserveUnknownFields = 10; */ boolean getPreserveUnknownFields(); } /** * * *
   * CustomResourceDefinitionSpec describes how a user wants their resource to appear
   * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionSpec} */ public static final class CustomResourceDefinitionSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionSpec) CustomResourceDefinitionSpecOrBuilder { private static final long serialVersionUID = 0L; // Use CustomResourceDefinitionSpec.newBuilder() to construct. private CustomResourceDefinitionSpec( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CustomResourceDefinitionSpec() { group_ = ""; version_ = ""; scope_ = ""; versions_ = java.util.Collections.emptyList(); additionalPrinterColumns_ = java.util.Collections.emptyList(); preserveUnknownFields_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CustomResourceDefinitionSpec( 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; group_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; version_ = bs; break; } case 26: { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames .Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = names_.toBuilder(); } names_ = input.readMessage( io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionNames.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(names_); names_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; scope_ = bs; break; } case 42: { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = validation_.toBuilder(); } validation_ = input.readMessage( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation .PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(validation_); validation_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 50: { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = subresources_.toBuilder(); } subresources_ = input.readMessage( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources .PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(subresources_); subresources_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } case 58: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { versions_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionVersion>(); mutable_bitField0_ |= 0x00000040; } versions_.add( input.readMessage( io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionVersion.PARSER, extensionRegistry)); break; } case 66: { if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { additionalPrinterColumns_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceColumnDefinition>(); mutable_bitField0_ |= 0x00000080; } additionalPrinterColumns_.add( input.readMessage( io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceColumnDefinition.PARSER, extensionRegistry)); break; } case 74: { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion.Builder subBuilder = null; if (((bitField0_ & 0x00000040) == 0x00000040)) { subBuilder = conversion_.toBuilder(); } conversion_ = input.readMessage( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion .PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(conversion_); conversion_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000040; break; } case 80: { bitField0_ |= 0x00000080; preserveUnknownFields_ = input.readBool(); 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_ & 0x00000040) == 0x00000040)) { versions_ = java.util.Collections.unmodifiableList(versions_); } if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { additionalPrinterColumns_ = java.util.Collections.unmodifiableList(additionalPrinterColumns_); } 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_CustomResourceDefinitionSpec_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_CustomResourceDefinitionSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec.class, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec.Builder .class); } private int bitField0_; public static final int GROUP_FIELD_NUMBER = 1; private volatile java.lang.Object group_; /** * * *
     * group is the API group of the defined custom resource.
     * The custom resources are served under `/apis/<group>/...`.
     * Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`).
     * 
* * optional string group = 1; */ public boolean hasGroup() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * group is the API group of the defined custom resource.
     * The custom resources are served under `/apis/<group>/...`.
     * Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`).
     * 
* * 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 API group of the defined custom resource.
     * The custom resources are served under `/apis/<group>/...`.
     * Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`).
     * 
* * 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 API version of the defined custom resource.
     * The custom resources are served under `/apis/<group>/<version>/...`.
     * Must match the name of the first item in the `versions` list if `version` and `versions` are both specified.
     * Optional if `versions` is specified.
     * Deprecated: use `versions` instead.
     * +optional
     * 
* * optional string version = 2; */ public boolean hasVersion() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * version is the API version of the defined custom resource.
     * The custom resources are served under `/apis/<group>/<version>/...`.
     * Must match the name of the first item in the `versions` list if `version` and `versions` are both specified.
     * Optional if `versions` is specified.
     * Deprecated: use `versions` instead.
     * +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 API version of the defined custom resource.
     * The custom resources are served under `/apis/<group>/<version>/...`.
     * Must match the name of the first item in the `versions` list if `version` and `versions` are both specified.
     * Optional if `versions` is specified.
     * Deprecated: use `versions` instead.
     * +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 specify the resource and kind names for the custom resource.
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames names = 3; * */ public boolean hasNames() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * names specify the resource and kind names for the custom resource.
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames names = 3; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames getNames() { return names_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames .getDefaultInstance() : names_; } /** * * *
     * names specify the resource and kind names for the custom resource.
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames names = 3; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNamesOrBuilder getNamesOrBuilder() { return names_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames .getDefaultInstance() : names_; } public static final int SCOPE_FIELD_NUMBER = 4; private volatile java.lang.Object scope_; /** * * *
     * scope indicates whether the defined custom resource is cluster- or namespace-scoped.
     * Allowed values are `Cluster` and `Namespaced`. Default is `Namespaced`.
     * 
* * optional string scope = 4; */ public boolean hasScope() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * scope indicates whether the defined custom resource is cluster- or namespace-scoped.
     * Allowed values are `Cluster` and `Namespaced`. Default is `Namespaced`.
     * 
* * optional string scope = 4; */ public java.lang.String getScope() { java.lang.Object ref = scope_; 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()) { scope_ = s; } return s; } } /** * * *
     * scope indicates whether the defined custom resource is cluster- or namespace-scoped.
     * Allowed values are `Cluster` and `Namespaced`. 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 schema used for validation and pruning of the custom resource.
     * If present, this validation schema is used to validate 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 boolean hasValidation() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * validation describes the schema used for validation and pruning of the custom resource.
     * If present, this validation schema is used to validate 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.CustomResourceValidation getValidation() { return validation_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation .getDefaultInstance() : validation_; } /** * * *
     * validation describes the schema used for validation and pruning of the custom resource.
     * If present, this validation schema is used to validate 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 specify what subresources the defined custom resource has.
     * If present, this field configures 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 boolean hasSubresources() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * subresources specify what subresources the defined custom resource has.
     * If present, this field configures 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.CustomResourceSubresources getSubresources() { return subresources_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources .getDefaultInstance() : subresources_; } /** * * *
     * subresources specify what subresources the defined custom resource has.
     * If present, this field configures 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< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion> versions_; /** * * *
     * versions is the list of all API versions of the defined custom resource.
     * Optional if `version` is specified.
     * The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified.
     * Version names are used to compute the order in which served versions are listed in API discovery.
     * 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 java.util.List< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion> getVersionsList() { return versions_; } /** * * *
     * versions is the list of all API versions of the defined custom resource.
     * Optional if `version` is specified.
     * The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified.
     * Version names are used to compute the order in which served versions are listed in API discovery.
     * 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 java.util.List< ? extends io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionVersionOrBuilder> getVersionsOrBuilderList() { return versions_; } /** * * *
     * versions is the list of all API versions of the defined custom resource.
     * Optional if `version` is specified.
     * The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified.
     * Version names are used to compute the order in which served versions are listed in API discovery.
     * 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 API versions of the defined custom resource.
     * Optional if `version` is specified.
     * The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified.
     * Version names are used to compute the order in which served versions are listed in API discovery.
     * 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 getVersions(int index) { return versions_.get(index); } /** * * *
     * versions is the list of all API versions of the defined custom resource.
     * Optional if `version` is specified.
     * The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified.
     * Version names are used to compute the order in which served versions are listed in API discovery.
     * 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< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition> additionalPrinterColumns_; /** * * *
     * additionalPrinterColumns specifies additional columns returned in Table output.
     * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
     * If present, this field configures columns for all versions.
     * Top-level and per-version columns are mutually exclusive.
     * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
     * +optional
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 8; * */ public java.util.List< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition> getAdditionalPrinterColumnsList() { return additionalPrinterColumns_; } /** * * *
     * additionalPrinterColumns specifies additional columns returned in Table output.
     * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
     * If present, this field configures columns for all versions.
     * Top-level and per-version columns are mutually exclusive.
     * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
     * +optional
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 8; * */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceColumnDefinitionOrBuilder> getAdditionalPrinterColumnsOrBuilderList() { return additionalPrinterColumns_; } /** * * *
     * additionalPrinterColumns specifies additional columns returned in Table output.
     * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
     * If present, this field configures columns for all versions.
     * Top-level and per-version columns are mutually exclusive.
     * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
     * +optional
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 8; * */ public int getAdditionalPrinterColumnsCount() { return additionalPrinterColumns_.size(); } /** * * *
     * additionalPrinterColumns specifies additional columns returned in Table output.
     * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
     * If present, this field configures columns for all versions.
     * Top-level and per-version columns are mutually exclusive.
     * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
     * +optional
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 8; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition getAdditionalPrinterColumns(int index) { return additionalPrinterColumns_.get(index); } /** * * *
     * additionalPrinterColumns specifies additional columns returned in Table output.
     * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
     * If present, this field configures columns for all versions.
     * Top-level and per-version columns are mutually exclusive.
     * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
     * +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 .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceConversion conversion = 9; * */ public boolean hasConversion() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
     * conversion defines conversion settings for the CRD.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceConversion conversion = 9; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion getConversion() { return conversion_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion .getDefaultInstance() : conversion_; } /** * * *
     * conversion defines conversion settings for the CRD.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceConversion conversion = 9; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversionOrBuilder getConversionOrBuilder() { return conversion_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion .getDefaultInstance() : conversion_; } public static final int PRESERVEUNKNOWNFIELDS_FIELD_NUMBER = 10; private boolean preserveUnknownFields_; /** * * *
     * preserveUnknownFields indicates that object fields which are not specified
     * in the OpenAPI schema should be preserved when persisting to storage.
     * apiVersion, kind, metadata and known fields inside metadata are always preserved.
     * If false, schemas must be defined for all versions.
     * Defaults to true in v1beta for backwards compatibility.
     * Deprecated: will be required to be false in v1. Preservation of unknown fields can be specified
     * in the validation schema using the `x-kubernetes-preserve-unknown-fields: true` extension.
     * See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details.
     * +optional
     * 
* * optional bool preserveUnknownFields = 10; */ public boolean hasPreserveUnknownFields() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
     * preserveUnknownFields indicates that object fields which are not specified
     * in the OpenAPI schema should be preserved when persisting to storage.
     * apiVersion, kind, metadata and known fields inside metadata are always preserved.
     * If false, schemas must be defined for all versions.
     * Defaults to true in v1beta for backwards compatibility.
     * Deprecated: will be required to be false in v1. Preservation of unknown fields can be specified
     * in the validation schema using the `x-kubernetes-preserve-unknown-fields: true` extension.
     * See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details.
     * +optional
     * 
* * optional bool preserveUnknownFields = 10; */ public boolean getPreserveUnknownFields() { return preserveUnknownFields_; } 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, group_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getNames()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, scope_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(5, getValidation()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(6, getSubresources()); } for (int i = 0; i < versions_.size(); i++) { output.writeMessage(7, versions_.get(i)); } for (int i = 0; i < additionalPrinterColumns_.size(); i++) { output.writeMessage(8, additionalPrinterColumns_.get(i)); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeMessage(9, getConversion()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBool(10, preserveUnknownFields_); } 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, group_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getNames()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, scope_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getValidation()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSubresources()); } for (int i = 0; i < versions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, versions_.get(i)); } for (int i = 0; i < additionalPrinterColumns_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 8, additionalPrinterColumns_.get(i)); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getConversion()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, preserveUnknownFields_); } 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.CustomResourceDefinitionSpec)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec other = (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec) obj; boolean result = true; result = result && (hasGroup() == other.hasGroup()); if (hasGroup()) { result = result && getGroup().equals(other.getGroup()); } result = result && (hasVersion() == other.hasVersion()); if (hasVersion()) { result = result && getVersion().equals(other.getVersion()); } result = result && (hasNames() == other.hasNames()); if (hasNames()) { result = result && getNames().equals(other.getNames()); } result = result && (hasScope() == other.hasScope()); if (hasScope()) { result = result && getScope().equals(other.getScope()); } result = result && (hasValidation() == other.hasValidation()); if (hasValidation()) { result = result && getValidation().equals(other.getValidation()); } result = result && (hasSubresources() == other.hasSubresources()); if (hasSubresources()) { result = result && getSubresources().equals(other.getSubresources()); } result = result && getVersionsList().equals(other.getVersionsList()); result = result && getAdditionalPrinterColumnsList().equals(other.getAdditionalPrinterColumnsList()); result = result && (hasConversion() == other.hasConversion()); if (hasConversion()) { result = result && getConversion().equals(other.getConversion()); } result = result && (hasPreserveUnknownFields() == other.hasPreserveUnknownFields()); if (hasPreserveUnknownFields()) { result = result && (getPreserveUnknownFields() == other.getPreserveUnknownFields()); } 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 (hasGroup()) { hash = (37 * hash) + GROUP_FIELD_NUMBER; hash = (53 * hash) + getGroup().hashCode(); } if (hasVersion()) { hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); } if (hasNames()) { hash = (37 * hash) + NAMES_FIELD_NUMBER; hash = (53 * hash) + getNames().hashCode(); } if (hasScope()) { hash = (37 * hash) + SCOPE_FIELD_NUMBER; hash = (53 * hash) + getScope().hashCode(); } if (hasValidation()) { hash = (37 * hash) + VALIDATION_FIELD_NUMBER; hash = (53 * hash) + getValidation().hashCode(); } if (hasSubresources()) { hash = (37 * hash) + SUBRESOURCES_FIELD_NUMBER; hash = (53 * hash) + getSubresources().hashCode(); } if (getVersionsCount() > 0) { hash = (37 * hash) + VERSIONS_FIELD_NUMBER; hash = (53 * hash) + getVersionsList().hashCode(); } if (getAdditionalPrinterColumnsCount() > 0) { hash = (37 * hash) + ADDITIONALPRINTERCOLUMNS_FIELD_NUMBER; hash = (53 * hash) + getAdditionalPrinterColumnsList().hashCode(); } if (hasConversion()) { hash = (37 * hash) + CONVERSION_FIELD_NUMBER; hash = (53 * hash) + getConversion().hashCode(); } if (hasPreserveUnknownFields()) { hash = (37 * hash) + PRESERVEUNKNOWNFIELDS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreserveUnknownFields()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec 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.CustomResourceDefinitionSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec 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.CustomResourceDefinitionSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec 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.CustomResourceDefinitionSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec 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.CustomResourceDefinitionSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec 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.CustomResourceDefinitionSpec 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.CustomResourceDefinitionSpec 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.CustomResourceDefinitionSpec 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; } /** * * *
     * CustomResourceDefinitionSpec describes how a user wants their resource to appear
     * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionSpec} */ 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.CustomResourceDefinitionSpec) io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpecOrBuilder { 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_CustomResourceDefinitionSpec_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_CustomResourceDefinitionSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec.class, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec.Builder .class); } // Construct using // io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getNamesFieldBuilder(); getValidationFieldBuilder(); getSubresourcesFieldBuilder(); getVersionsFieldBuilder(); getAdditionalPrinterColumnsFieldBuilder(); getConversionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); group_ = ""; bitField0_ = (bitField0_ & ~0x00000001); version_ = ""; bitField0_ = (bitField0_ & ~0x00000002); if (namesBuilder_ == null) { names_ = null; } else { namesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); scope_ = ""; bitField0_ = (bitField0_ & ~0x00000008); if (validationBuilder_ == null) { validation_ = null; } else { validationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (subresourcesBuilder_ == null) { subresources_ = null; } else { subresourcesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); if (versionsBuilder_ == null) { versions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { versionsBuilder_.clear(); } if (additionalPrinterColumnsBuilder_ == null) { additionalPrinterColumns_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); } else { additionalPrinterColumnsBuilder_.clear(); } if (conversionBuilder_ == null) { conversion_ = null; } else { conversionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); preserveUnknownFields_ = false; bitField0_ = (bitField0_ & ~0x00000200); 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_CustomResourceDefinitionSpec_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec build() { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec buildPartial() { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec result = new io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.group_ = group_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.version_ = version_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (namesBuilder_ == null) { result.names_ = names_; } else { result.names_ = namesBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.scope_ = scope_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (validationBuilder_ == null) { result.validation_ = validation_; } else { result.validation_ = validationBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } if (subresourcesBuilder_ == null) { result.subresources_ = subresources_; } else { result.subresources_ = subresourcesBuilder_.build(); } if (versionsBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { versions_ = java.util.Collections.unmodifiableList(versions_); bitField0_ = (bitField0_ & ~0x00000040); } result.versions_ = versions_; } else { result.versions_ = versionsBuilder_.build(); } if (additionalPrinterColumnsBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080)) { additionalPrinterColumns_ = java.util.Collections.unmodifiableList(additionalPrinterColumns_); bitField0_ = (bitField0_ & ~0x00000080); } result.additionalPrinterColumns_ = additionalPrinterColumns_; } else { result.additionalPrinterColumns_ = additionalPrinterColumnsBuilder_.build(); } if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000040; } if (conversionBuilder_ == null) { result.conversion_ = conversion_; } else { result.conversion_ = conversionBuilder_.build(); } if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000080; } result.preserveUnknownFields_ = preserveUnknownFields_; 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.CustomResourceDefinitionSpec) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec other) { if (other == io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec .getDefaultInstance()) return this; if (other.hasGroup()) { bitField0_ |= 0x00000001; group_ = other.group_; onChanged(); } if (other.hasVersion()) { bitField0_ |= 0x00000002; version_ = other.version_; onChanged(); } if (other.hasNames()) { mergeNames(other.getNames()); } if (other.hasScope()) { bitField0_ |= 0x00000008; scope_ = other.scope_; onChanged(); } if (other.hasValidation()) { mergeValidation(other.getValidation()); } if (other.hasSubresources()) { mergeSubresources(other.getSubresources()); } if (versionsBuilder_ == null) { if (!other.versions_.isEmpty()) { if (versions_.isEmpty()) { versions_ = other.versions_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureVersionsIsMutable(); versions_.addAll(other.versions_); } onChanged(); } } else { if (!other.versions_.isEmpty()) { if (versionsBuilder_.isEmpty()) { versionsBuilder_.dispose(); versionsBuilder_ = null; versions_ = other.versions_; bitField0_ = (bitField0_ & ~0x00000040); versionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVersionsFieldBuilder() : null; } else { versionsBuilder_.addAllMessages(other.versions_); } } } if (additionalPrinterColumnsBuilder_ == null) { if (!other.additionalPrinterColumns_.isEmpty()) { if (additionalPrinterColumns_.isEmpty()) { additionalPrinterColumns_ = other.additionalPrinterColumns_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureAdditionalPrinterColumnsIsMutable(); additionalPrinterColumns_.addAll(other.additionalPrinterColumns_); } onChanged(); } } else { if (!other.additionalPrinterColumns_.isEmpty()) { if (additionalPrinterColumnsBuilder_.isEmpty()) { additionalPrinterColumnsBuilder_.dispose(); additionalPrinterColumnsBuilder_ = null; additionalPrinterColumns_ = other.additionalPrinterColumns_; bitField0_ = (bitField0_ & ~0x00000080); additionalPrinterColumnsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAdditionalPrinterColumnsFieldBuilder() : null; } else { additionalPrinterColumnsBuilder_.addAllMessages(other.additionalPrinterColumns_); } } } if (other.hasConversion()) { mergeConversion(other.getConversion()); } if (other.hasPreserveUnknownFields()) { setPreserveUnknownFields(other.getPreserveUnknownFields()); } 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.CustomResourceDefinitionSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object group_ = ""; /** * * *
       * group is the API group of the defined custom resource.
       * The custom resources are served under `/apis/<group>/...`.
       * Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`).
       * 
* * optional string group = 1; */ public boolean hasGroup() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * group is the API group of the defined custom resource.
       * The custom resources are served under `/apis/<group>/...`.
       * Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`).
       * 
* * optional string group = 1; */ public java.lang.String getGroup() { java.lang.Object ref = group_; 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()) { group_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * group is the API group of the defined custom resource.
       * The custom resources are served under `/apis/<group>/...`.
       * Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`).
       * 
* * optional string group = 1; */ public com.google.protobuf.ByteString getGroupBytes() { java.lang.Object ref = group_; if (ref instanceof 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; } } /** * * *
       * group is the API group of the defined custom resource.
       * The custom resources are served under `/apis/<group>/...`.
       * Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`).
       * 
* * optional string group = 1; */ public Builder setGroup(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; group_ = value; onChanged(); return this; } /** * * *
       * group is the API group of the defined custom resource.
       * The custom resources are served under `/apis/<group>/...`.
       * Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`).
       * 
* * optional string group = 1; */ public Builder clearGroup() { bitField0_ = (bitField0_ & ~0x00000001); group_ = getDefaultInstance().getGroup(); onChanged(); return this; } /** * * *
       * group is the API group of the defined custom resource.
       * The custom resources are served under `/apis/<group>/...`.
       * Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`).
       * 
* * 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 API version of the defined custom resource.
       * The custom resources are served under `/apis/<group>/<version>/...`.
       * Must match the name of the first item in the `versions` list if `version` and `versions` are both specified.
       * Optional if `versions` is specified.
       * Deprecated: use `versions` instead.
       * +optional
       * 
* * optional string version = 2; */ public boolean hasVersion() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * version is the API version of the defined custom resource.
       * The custom resources are served under `/apis/<group>/<version>/...`.
       * Must match the name of the first item in the `versions` list if `version` and `versions` are both specified.
       * Optional if `versions` is specified.
       * Deprecated: use `versions` instead.
       * +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 API version of the defined custom resource.
       * The custom resources are served under `/apis/<group>/<version>/...`.
       * Must match the name of the first item in the `versions` list if `version` and `versions` are both specified.
       * Optional if `versions` is specified.
       * Deprecated: use `versions` instead.
       * +optional
       * 
* * optional string version = 2; */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof 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; } } /** * * *
       * version is the API version of the defined custom resource.
       * The custom resources are served under `/apis/<group>/<version>/...`.
       * Must match the name of the first item in the `versions` list if `version` and `versions` are both specified.
       * Optional if `versions` is specified.
       * Deprecated: use `versions` instead.
       * +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 API version of the defined custom resource.
       * The custom resources are served under `/apis/<group>/<version>/...`.
       * Must match the name of the first item in the `versions` list if `version` and `versions` are both specified.
       * Optional if `versions` is specified.
       * Deprecated: use `versions` instead.
       * +optional
       * 
* * optional string version = 2; */ public Builder clearVersion() { bitField0_ = (bitField0_ & ~0x00000002); version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** * * *
       * version is the API version of the defined custom resource.
       * The custom resources are served under `/apis/<group>/<version>/...`.
       * Must match the name of the first item in the `versions` list if `version` and `versions` are both specified.
       * Optional if `versions` is specified.
       * Deprecated: use `versions` instead.
       * +optional
       * 
* * optional string version = 2; */ public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; version_ = value; onChanged(); return this; } private io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames names_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames.Builder, io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionNamesOrBuilder> namesBuilder_; /** * * *
       * names specify the resource and kind names for the custom resource.
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames names = 3; * */ public boolean hasNames() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * names specify the resource and kind names for the custom resource.
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames names = 3; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames getNames() { if (namesBuilder_ == null) { return names_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames .getDefaultInstance() : names_; } else { return namesBuilder_.getMessage(); } } /** * * *
       * names specify the resource and kind names for the custom resource.
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames names = 3; * */ public Builder setNames( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames value) { if (namesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } names_ = value; onChanged(); } else { namesBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * names specify the resource and kind names for the custom resource.
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames names = 3; * */ public Builder setNames( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames.Builder builderForValue) { if (namesBuilder_ == null) { names_ = builderForValue.build(); onChanged(); } else { namesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * names specify the resource and kind names for the custom resource.
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames names = 3; * */ public Builder mergeNames( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames value) { if (namesBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && names_ != null && names_ != io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames .getDefaultInstance()) { names_ = io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames .newBuilder(names_) .mergeFrom(value) .buildPartial(); } else { names_ = value; } onChanged(); } else { namesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * names specify the resource and kind names for the custom resource.
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames names = 3; * */ public Builder clearNames() { if (namesBuilder_ == null) { names_ = null; onChanged(); } else { namesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * names specify the resource and kind names for the custom resource.
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames names = 3; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames.Builder getNamesBuilder() { bitField0_ |= 0x00000004; onChanged(); return getNamesFieldBuilder().getBuilder(); } /** * * *
       * names specify the resource and kind names for the custom resource.
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames names = 3; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNamesOrBuilder getNamesOrBuilder() { if (namesBuilder_ != null) { return namesBuilder_.getMessageOrBuilder(); } else { return names_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames .getDefaultInstance() : names_; } } /** * * *
       * names specify the resource and kind names for the custom resource.
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames names = 3; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames.Builder, io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionNamesOrBuilder> getNamesFieldBuilder() { if (namesBuilder_ == null) { namesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames .Builder, io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionNamesOrBuilder>( getNames(), getParentForChildren(), isClean()); names_ = null; } return namesBuilder_; } private java.lang.Object scope_ = ""; /** * * *
       * scope indicates whether the defined custom resource is cluster- or namespace-scoped.
       * Allowed values are `Cluster` and `Namespaced`. Default is `Namespaced`.
       * 
* * optional string scope = 4; */ public boolean hasScope() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * scope indicates whether the defined custom resource is cluster- or namespace-scoped.
       * Allowed values are `Cluster` and `Namespaced`. Default is `Namespaced`.
       * 
* * optional string scope = 4; */ public java.lang.String getScope() { java.lang.Object ref = scope_; 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()) { scope_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * scope indicates whether the defined custom resource is cluster- or namespace-scoped.
       * Allowed values are `Cluster` and `Namespaced`. Default is `Namespaced`.
       * 
* * optional string scope = 4; */ public com.google.protobuf.ByteString getScopeBytes() { java.lang.Object ref = scope_; if (ref instanceof 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; } } /** * * *
       * scope indicates whether the defined custom resource is cluster- or namespace-scoped.
       * Allowed values are `Cluster` and `Namespaced`. Default is `Namespaced`.
       * 
* * optional string scope = 4; */ public Builder setScope(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; scope_ = value; onChanged(); return this; } /** * * *
       * scope indicates whether the defined custom resource is cluster- or namespace-scoped.
       * Allowed values are `Cluster` and `Namespaced`. Default is `Namespaced`.
       * 
* * optional string scope = 4; */ public Builder clearScope() { bitField0_ = (bitField0_ & ~0x00000008); scope_ = getDefaultInstance().getScope(); onChanged(); return this; } /** * * *
       * scope indicates whether the defined custom resource is cluster- or namespace-scoped.
       * Allowed values are `Cluster` and `Namespaced`. Default is `Namespaced`.
       * 
* * optional string scope = 4; */ public Builder setScopeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; scope_ = value; onChanged(); return this; } private io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation validation_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidationOrBuilder> validationBuilder_; /** * * *
       * validation describes the schema used for validation and pruning of the custom resource.
       * If present, this validation schema is used to validate 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 boolean hasValidation() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * validation describes the schema used for validation and pruning of the custom resource.
       * If present, this validation schema is used to validate 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.CustomResourceValidation getValidation() { if (validationBuilder_ == null) { return validation_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation .getDefaultInstance() : validation_; } else { return validationBuilder_.getMessage(); } } /** * * *
       * validation describes the schema used for validation and pruning of the custom resource.
       * If present, this validation schema is used to validate 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 Builder setValidation( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation value) { if (validationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } validation_ = value; onChanged(); } else { validationBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * * *
       * validation describes the schema used for validation and pruning of the custom resource.
       * If present, this validation schema is used to validate 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 Builder setValidation( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation.Builder builderForValue) { if (validationBuilder_ == null) { validation_ = builderForValue.build(); onChanged(); } else { validationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * * *
       * validation describes the schema used for validation and pruning of the custom resource.
       * If present, this validation schema is used to validate 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 Builder mergeValidation( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation value) { if (validationBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && validation_ != null && validation_ != io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation .getDefaultInstance()) { validation_ = io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation.newBuilder( validation_) .mergeFrom(value) .buildPartial(); } else { validation_ = value; } onChanged(); } else { validationBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * * *
       * validation describes the schema used for validation and pruning of the custom resource.
       * If present, this validation schema is used to validate 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 Builder clearValidation() { if (validationBuilder_ == null) { validation_ = null; onChanged(); } else { validationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * * *
       * validation describes the schema used for validation and pruning of the custom resource.
       * If present, this validation schema is used to validate 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.CustomResourceValidation.Builder getValidationBuilder() { bitField0_ |= 0x00000010; onChanged(); return getValidationFieldBuilder().getBuilder(); } /** * * *
       * validation describes the schema used for validation and pruning of the custom resource.
       * If present, this validation schema is used to validate 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() { if (validationBuilder_ != null) { return validationBuilder_.getMessageOrBuilder(); } else { return validation_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation .getDefaultInstance() : validation_; } } /** * * *
       * validation describes the schema used for validation and pruning of the custom resource.
       * If present, this validation schema is used to validate all versions.
       * Top-level and per-version schemas are mutually exclusive.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceValidation validation = 5; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidationOrBuilder> getValidationFieldBuilder() { if (validationBuilder_ == null) { validationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation.Builder, io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceValidationOrBuilder>( getValidation(), getParentForChildren(), isClean()); validation_ = null; } return validationBuilder_; } private io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources subresources_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourcesOrBuilder> subresourcesBuilder_; /** * * *
       * subresources specify what subresources the defined custom resource has.
       * If present, this field configures 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 boolean hasSubresources() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * subresources specify what subresources the defined custom resource has.
       * If present, this field configures 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.CustomResourceSubresources getSubresources() { if (subresourcesBuilder_ == null) { return subresources_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources .getDefaultInstance() : subresources_; } else { return subresourcesBuilder_.getMessage(); } } /** * * *
       * subresources specify what subresources the defined custom resource has.
       * If present, this field configures 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 Builder setSubresources( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources value) { if (subresourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } subresources_ = value; onChanged(); } else { subresourcesBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** * * *
       * subresources specify what subresources the defined custom resource has.
       * If present, this field configures 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 Builder setSubresources( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources.Builder builderForValue) { if (subresourcesBuilder_ == null) { subresources_ = builderForValue.build(); onChanged(); } else { subresourcesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** * * *
       * subresources specify what subresources the defined custom resource has.
       * If present, this field configures 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 Builder mergeSubresources( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources value) { if (subresourcesBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && subresources_ != null && subresources_ != io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources .getDefaultInstance()) { subresources_ = io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources .newBuilder(subresources_) .mergeFrom(value) .buildPartial(); } else { subresources_ = value; } onChanged(); } else { subresourcesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** * * *
       * subresources specify what subresources the defined custom resource has.
       * If present, this field configures 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 Builder clearSubresources() { if (subresourcesBuilder_ == null) { subresources_ = null; onChanged(); } else { subresourcesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * * *
       * subresources specify what subresources the defined custom resource has.
       * If present, this field configures 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.CustomResourceSubresources.Builder getSubresourcesBuilder() { bitField0_ |= 0x00000020; onChanged(); return getSubresourcesFieldBuilder().getBuilder(); } /** * * *
       * subresources specify what subresources the defined custom resource has.
       * If present, this field configures 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() { if (subresourcesBuilder_ != null) { return subresourcesBuilder_.getMessageOrBuilder(); } else { return subresources_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources .getDefaultInstance() : subresources_; } } /** * * *
       * subresources specify what subresources the defined custom resource has.
       * If present, this field configures 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; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourcesOrBuilder> getSubresourcesFieldBuilder() { if (subresourcesBuilder_ == null) { subresourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources .Builder, io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceSubresourcesOrBuilder>( getSubresources(), getParentForChildren(), isClean()); subresources_ = null; } return subresourcesBuilder_; } private java.util.List< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion> versions_ = java.util.Collections.emptyList(); private void ensureVersionsIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { versions_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion>( versions_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion .Builder, io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionVersionOrBuilder> versionsBuilder_; /** * * *
       * versions is the list of all API versions of the defined custom resource.
       * Optional if `version` is specified.
       * The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified.
       * Version names are used to compute the order in which served versions are listed in API discovery.
       * 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 java.util.List< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion> getVersionsList() { if (versionsBuilder_ == null) { return java.util.Collections.unmodifiableList(versions_); } else { return versionsBuilder_.getMessageList(); } } /** * * *
       * versions is the list of all API versions of the defined custom resource.
       * Optional if `version` is specified.
       * The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified.
       * Version names are used to compute the order in which served versions are listed in API discovery.
       * 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 API versions of the defined custom resource.
       * Optional if `version` is specified.
       * The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified.
       * Version names are used to compute the order in which served versions are listed in API discovery.
       * 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 getVersions(int index) { if (versionsBuilder_ == null) { return versions_.get(index); } else { return versionsBuilder_.getMessage(index); } } /** * * *
       * versions is the list of all API versions of the defined custom resource.
       * Optional if `version` is specified.
       * The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified.
       * Version names are used to compute the order in which served versions are listed in API discovery.
       * 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 API versions of the defined custom resource.
       * Optional if `version` is specified.
       * The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified.
       * Version names are used to compute the order in which served versions are listed in API discovery.
       * 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.Builder builderForValue) { if (versionsBuilder_ == null) { ensureVersionsIsMutable(); versions_.set(index, builderForValue.build()); onChanged(); } else { versionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * versions is the list of all API versions of the defined custom resource.
       * Optional if `version` is specified.
       * The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified.
       * Version names are used to compute the order in which served versions are listed in API discovery.
       * 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 API versions of the defined custom resource.
       * Optional if `version` is specified.
       * The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified.
       * Version names are used to compute the order in which served versions are listed in API discovery.
       * 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 API versions of the defined custom resource.
       * Optional if `version` is specified.
       * The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified.
       * Version names are used to compute the order in which served versions are listed in API discovery.
       * 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.Builder builderForValue) { if (versionsBuilder_ == null) { ensureVersionsIsMutable(); versions_.add(builderForValue.build()); onChanged(); } else { versionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * versions is the list of all API versions of the defined custom resource.
       * Optional if `version` is specified.
       * The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified.
       * Version names are used to compute the order in which served versions are listed in API discovery.
       * 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.Builder builderForValue) { if (versionsBuilder_ == null) { ensureVersionsIsMutable(); versions_.add(index, builderForValue.build()); onChanged(); } else { versionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * versions is the list of all API versions of the defined custom resource.
       * Optional if `version` is specified.
       * The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified.
       * Version names are used to compute the order in which served versions are listed in API discovery.
       * 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 addAllVersions( java.lang.Iterable< ? extends io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionVersion> values) { if (versionsBuilder_ == null) { ensureVersionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, versions_); onChanged(); } else { versionsBuilder_.addAllMessages(values); } return this; } /** * * *
       * versions is the list of all API versions of the defined custom resource.
       * Optional if `version` is specified.
       * The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified.
       * Version names are used to compute the order in which served versions are listed in API discovery.
       * 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 clearVersions() { if (versionsBuilder_ == null) { versions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { versionsBuilder_.clear(); } return this; } /** * * *
       * versions is the list of all API versions of the defined custom resource.
       * Optional if `version` is specified.
       * The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified.
       * Version names are used to compute the order in which served versions are listed in API discovery.
       * 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 removeVersions(int index) { if (versionsBuilder_ == null) { ensureVersionsIsMutable(); versions_.remove(index); onChanged(); } else { versionsBuilder_.remove(index); } return this; } /** * * *
       * versions is the list of all API versions of the defined custom resource.
       * Optional if `version` is specified.
       * The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified.
       * Version names are used to compute the order in which served versions are listed in API discovery.
       * 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 API versions of the defined custom resource.
       * Optional if `version` is specified.
       * The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified.
       * Version names are used to compute the order in which served versions are listed in API discovery.
       * 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 API versions of the defined custom resource.
       * Optional if `version` is specified.
       * The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified.
       * Version names are used to compute the order in which served versions are listed in API discovery.
       * 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 java.util.List< ? extends io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionVersionOrBuilder> getVersionsOrBuilderList() { if (versionsBuilder_ != null) { return versionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(versions_); } } /** * * *
       * versions is the list of all API versions of the defined custom resource.
       * Optional if `version` is specified.
       * The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified.
       * Version names are used to compute the order in which served versions are listed in API discovery.
       * 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 addVersionsBuilder() { return getVersionsFieldBuilder() .addBuilder( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion .getDefaultInstance()); } /** * * *
       * versions is the list of all API versions of the defined custom resource.
       * Optional if `version` is specified.
       * The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified.
       * Version names are used to compute the order in which served versions are listed in API discovery.
       * 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 addVersionsBuilder(int index) { return getVersionsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion .getDefaultInstance()); } /** * * *
       * versions is the list of all API versions of the defined custom resource.
       * Optional if `version` is specified.
       * The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified.
       * Version names are used to compute the order in which served versions are listed in API discovery.
       * 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 java.util.List< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion .Builder> getVersionsBuilderList() { return getVersionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion .Builder, io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionVersionOrBuilder> getVersionsFieldBuilder() { if (versionsBuilder_ == null) { versionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion .Builder, io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionVersionOrBuilder>( versions_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); versions_ = null; } return versionsBuilder_; } private java.util.List< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition> additionalPrinterColumns_ = java.util.Collections.emptyList(); private void ensureAdditionalPrinterColumnsIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { additionalPrinterColumns_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition>( additionalPrinterColumns_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition .Builder, io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceColumnDefinitionOrBuilder> additionalPrinterColumnsBuilder_; /** * * *
       * additionalPrinterColumns specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * If present, this field configures columns for all versions.
       * Top-level and per-version columns are mutually exclusive.
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +optional
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 8; * */ public java.util.List< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition> getAdditionalPrinterColumnsList() { if (additionalPrinterColumnsBuilder_ == null) { return java.util.Collections.unmodifiableList(additionalPrinterColumns_); } else { return additionalPrinterColumnsBuilder_.getMessageList(); } } /** * * *
       * additionalPrinterColumns specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * If present, this field configures columns for all versions.
       * Top-level and per-version columns are mutually exclusive.
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +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 specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * If present, this field configures columns for all versions.
       * Top-level and per-version columns are mutually exclusive.
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +optional
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 8; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition getAdditionalPrinterColumns(int index) { if (additionalPrinterColumnsBuilder_ == null) { return additionalPrinterColumns_.get(index); } else { return additionalPrinterColumnsBuilder_.getMessage(index); } } /** * * *
       * additionalPrinterColumns specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * If present, this field configures columns for all versions.
       * Top-level and per-version columns are mutually exclusive.
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +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 specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * If present, this field configures columns for all versions.
       * Top-level and per-version columns are mutually exclusive.
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +optional
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 8; * */ public Builder setAdditionalPrinterColumns( int index, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition.Builder builderForValue) { if (additionalPrinterColumnsBuilder_ == null) { ensureAdditionalPrinterColumnsIsMutable(); additionalPrinterColumns_.set(index, builderForValue.build()); onChanged(); } else { additionalPrinterColumnsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * additionalPrinterColumns specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * If present, this field configures columns for all versions.
       * Top-level and per-version columns are mutually exclusive.
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +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 specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * If present, this field configures columns for all versions.
       * Top-level and per-version columns are mutually exclusive.
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +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 specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * If present, this field configures columns for all versions.
       * Top-level and per-version columns are mutually exclusive.
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +optional
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 8; * */ public Builder addAdditionalPrinterColumns( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition.Builder builderForValue) { if (additionalPrinterColumnsBuilder_ == null) { ensureAdditionalPrinterColumnsIsMutable(); additionalPrinterColumns_.add(builderForValue.build()); onChanged(); } else { additionalPrinterColumnsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * additionalPrinterColumns specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * If present, this field configures columns for all versions.
       * Top-level and per-version columns are mutually exclusive.
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +optional
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 8; * */ public Builder addAdditionalPrinterColumns( int index, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition.Builder builderForValue) { if (additionalPrinterColumnsBuilder_ == null) { ensureAdditionalPrinterColumnsIsMutable(); additionalPrinterColumns_.add(index, builderForValue.build()); onChanged(); } else { additionalPrinterColumnsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * additionalPrinterColumns specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * If present, this field configures columns for all versions.
       * Top-level and per-version columns are mutually exclusive.
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +optional
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 8; * */ public Builder addAllAdditionalPrinterColumns( java.lang.Iterable< ? extends io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceColumnDefinition> values) { if (additionalPrinterColumnsBuilder_ == null) { ensureAdditionalPrinterColumnsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, additionalPrinterColumns_); onChanged(); } else { additionalPrinterColumnsBuilder_.addAllMessages(values); } return this; } /** * * *
       * additionalPrinterColumns specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * If present, this field configures columns for all versions.
       * Top-level and per-version columns are mutually exclusive.
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +optional
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 8; * */ public Builder clearAdditionalPrinterColumns() { if (additionalPrinterColumnsBuilder_ == null) { additionalPrinterColumns_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { additionalPrinterColumnsBuilder_.clear(); } return this; } /** * * *
       * additionalPrinterColumns specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * If present, this field configures columns for all versions.
       * Top-level and per-version columns are mutually exclusive.
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +optional
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 8; * */ public Builder removeAdditionalPrinterColumns(int index) { if (additionalPrinterColumnsBuilder_ == null) { ensureAdditionalPrinterColumnsIsMutable(); additionalPrinterColumns_.remove(index); onChanged(); } else { additionalPrinterColumnsBuilder_.remove(index); } return this; } /** * * *
       * additionalPrinterColumns specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * If present, this field configures columns for all versions.
       * Top-level and per-version columns are mutually exclusive.
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +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 specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * If present, this field configures columns for all versions.
       * Top-level and per-version columns are mutually exclusive.
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +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 specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * If present, this field configures columns for all versions.
       * Top-level and per-version columns are mutually exclusive.
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +optional
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 8; * */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceColumnDefinitionOrBuilder> getAdditionalPrinterColumnsOrBuilderList() { if (additionalPrinterColumnsBuilder_ != null) { return additionalPrinterColumnsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(additionalPrinterColumns_); } } /** * * *
       * additionalPrinterColumns specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * If present, this field configures columns for all versions.
       * Top-level and per-version columns are mutually exclusive.
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +optional
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 8; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition.Builder addAdditionalPrinterColumnsBuilder() { return getAdditionalPrinterColumnsFieldBuilder() .addBuilder( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition .getDefaultInstance()); } /** * * *
       * additionalPrinterColumns specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * If present, this field configures columns for all versions.
       * Top-level and per-version columns are mutually exclusive.
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +optional
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 8; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition.Builder addAdditionalPrinterColumnsBuilder(int index) { return getAdditionalPrinterColumnsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition .getDefaultInstance()); } /** * * *
       * additionalPrinterColumns specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * If present, this field configures columns for all versions.
       * Top-level and per-version columns are mutually exclusive.
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +optional
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 8; * */ public java.util.List< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition .Builder> 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_ & 0x00000080) == 0x00000080), getParentForChildren(), isClean()); additionalPrinterColumns_ = null; } return additionalPrinterColumnsBuilder_; } private io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion conversion_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversionOrBuilder> conversionBuilder_; /** * * *
       * conversion defines conversion settings for the CRD.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceConversion conversion = 9; * */ public boolean hasConversion() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
       * conversion defines conversion settings for the CRD.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceConversion conversion = 9; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion getConversion() { if (conversionBuilder_ == null) { return conversion_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion .getDefaultInstance() : conversion_; } else { return conversionBuilder_.getMessage(); } } /** * * *
       * conversion defines conversion settings for the CRD.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceConversion conversion = 9; * */ public Builder setConversion( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion value) { if (conversionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } conversion_ = value; onChanged(); } else { conversionBuilder_.setMessage(value); } bitField0_ |= 0x00000100; return this; } /** * * *
       * conversion defines conversion settings for the CRD.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceConversion conversion = 9; * */ public Builder setConversion( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion.Builder builderForValue) { if (conversionBuilder_ == null) { conversion_ = builderForValue.build(); onChanged(); } else { conversionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; return this; } /** * * *
       * conversion defines conversion settings for the CRD.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceConversion conversion = 9; * */ public Builder mergeConversion( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion value) { if (conversionBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100) && conversion_ != null && conversion_ != io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion .getDefaultInstance()) { conversion_ = io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion.newBuilder( conversion_) .mergeFrom(value) .buildPartial(); } else { conversion_ = value; } onChanged(); } else { conversionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; return this; } /** * * *
       * conversion defines conversion settings for the CRD.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceConversion conversion = 9; * */ public Builder clearConversion() { if (conversionBuilder_ == null) { conversion_ = null; onChanged(); } else { conversionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); return this; } /** * * *
       * conversion defines conversion settings for the CRD.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceConversion conversion = 9; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion.Builder getConversionBuilder() { bitField0_ |= 0x00000100; onChanged(); return getConversionFieldBuilder().getBuilder(); } /** * * *
       * conversion defines conversion settings for the CRD.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceConversion conversion = 9; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversionOrBuilder getConversionOrBuilder() { if (conversionBuilder_ != null) { return conversionBuilder_.getMessageOrBuilder(); } else { return conversion_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion .getDefaultInstance() : conversion_; } } /** * * *
       * conversion defines conversion settings for the CRD.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceConversion conversion = 9; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversionOrBuilder> getConversionFieldBuilder() { if (conversionBuilder_ == null) { conversionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion.Builder, io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceConversionOrBuilder>( getConversion(), getParentForChildren(), isClean()); conversion_ = null; } return conversionBuilder_; } private boolean preserveUnknownFields_; /** * * *
       * preserveUnknownFields indicates that object fields which are not specified
       * in the OpenAPI schema should be preserved when persisting to storage.
       * apiVersion, kind, metadata and known fields inside metadata are always preserved.
       * If false, schemas must be defined for all versions.
       * Defaults to true in v1beta for backwards compatibility.
       * Deprecated: will be required to be false in v1. Preservation of unknown fields can be specified
       * in the validation schema using the `x-kubernetes-preserve-unknown-fields: true` extension.
       * See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details.
       * +optional
       * 
* * optional bool preserveUnknownFields = 10; */ public boolean hasPreserveUnknownFields() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * * *
       * preserveUnknownFields indicates that object fields which are not specified
       * in the OpenAPI schema should be preserved when persisting to storage.
       * apiVersion, kind, metadata and known fields inside metadata are always preserved.
       * If false, schemas must be defined for all versions.
       * Defaults to true in v1beta for backwards compatibility.
       * Deprecated: will be required to be false in v1. Preservation of unknown fields can be specified
       * in the validation schema using the `x-kubernetes-preserve-unknown-fields: true` extension.
       * See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details.
       * +optional
       * 
* * optional bool preserveUnknownFields = 10; */ public boolean getPreserveUnknownFields() { return preserveUnknownFields_; } /** * * *
       * preserveUnknownFields indicates that object fields which are not specified
       * in the OpenAPI schema should be preserved when persisting to storage.
       * apiVersion, kind, metadata and known fields inside metadata are always preserved.
       * If false, schemas must be defined for all versions.
       * Defaults to true in v1beta for backwards compatibility.
       * Deprecated: will be required to be false in v1. Preservation of unknown fields can be specified
       * in the validation schema using the `x-kubernetes-preserve-unknown-fields: true` extension.
       * See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details.
       * +optional
       * 
* * optional bool preserveUnknownFields = 10; */ public Builder setPreserveUnknownFields(boolean value) { bitField0_ |= 0x00000200; preserveUnknownFields_ = value; onChanged(); return this; } /** * * *
       * preserveUnknownFields indicates that object fields which are not specified
       * in the OpenAPI schema should be preserved when persisting to storage.
       * apiVersion, kind, metadata and known fields inside metadata are always preserved.
       * If false, schemas must be defined for all versions.
       * Defaults to true in v1beta for backwards compatibility.
       * Deprecated: will be required to be false in v1. Preservation of unknown fields can be specified
       * in the validation schema using the `x-kubernetes-preserve-unknown-fields: true` extension.
       * See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details.
       * +optional
       * 
* * optional bool preserveUnknownFields = 10; */ public Builder clearPreserveUnknownFields() { bitField0_ = (bitField0_ & ~0x00000200); preserveUnknownFields_ = false; 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.CustomResourceDefinitionSpec) } // @@protoc_insertion_point(class_scope:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionSpec) private static final io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec(); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionSpec getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CustomResourceDefinitionSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CustomResourceDefinitionSpec(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.CustomResourceDefinitionSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CustomResourceDefinitionStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionStatus) com.google.protobuf.MessageOrBuilder { /** * * *
     * conditions indicate state for particular aspects of a CustomResourceDefinition
     * +optional
     * +listType=map
     * +listMapKey=type
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition conditions = 1; * */ java.util.List< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition> getConditionsList(); /** * * *
     * conditions indicate state for particular aspects of a CustomResourceDefinition
     * +optional
     * +listType=map
     * +listMapKey=type
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition conditions = 1; * */ io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition getConditions( int index); /** * * *
     * conditions indicate state for particular aspects of a CustomResourceDefinition
     * +optional
     * +listType=map
     * +listMapKey=type
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition conditions = 1; * */ int getConditionsCount(); /** * * *
     * conditions indicate state for particular aspects of a CustomResourceDefinition
     * +optional
     * +listType=map
     * +listMapKey=type
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition conditions = 1; * */ java.util.List< ? extends io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionConditionOrBuilder> getConditionsOrBuilderList(); /** * * *
     * conditions indicate state for particular aspects of a CustomResourceDefinition
     * +optional
     * +listType=map
     * +listMapKey=type
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition conditions = 1; * */ io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionConditionOrBuilder getConditionsOrBuilder(int index); /** * * *
     * acceptedNames are the names that are actually being used to serve discovery.
     * They may be different than the names in spec.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames acceptedNames = 2; * */ boolean hasAcceptedNames(); /** * * *
     * acceptedNames are the names that are actually being used to serve discovery.
     * They may be different than the names in spec.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames acceptedNames = 2; * */ io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames getAcceptedNames(); /** * * *
     * acceptedNames are the names that are actually being used to serve discovery.
     * They may be different than the names in spec.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames acceptedNames = 2; * */ io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNamesOrBuilder getAcceptedNamesOrBuilder(); /** * * *
     * storedVersions lists 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 a migration controller can finish a migration to another version (ensuring
     * no old objects are left in storage), and then remove the rest of the
     * versions from this list.
     * Versions may not be removed from `spec.versions` while they exist in this list.
     * +optional
     * 
* * repeated string storedVersions = 3; */ java.util.List getStoredVersionsList(); /** * * *
     * storedVersions lists 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 a migration controller can finish a migration to another version (ensuring
     * no old objects are left in storage), and then remove the rest of the
     * versions from this list.
     * Versions may not be removed from `spec.versions` while they exist in this list.
     * +optional
     * 
* * repeated string storedVersions = 3; */ int getStoredVersionsCount(); /** * * *
     * storedVersions lists 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 a migration controller can finish a migration to another version (ensuring
     * no old objects are left in storage), and then remove the rest of the
     * versions from this list.
     * Versions may not be removed from `spec.versions` while they exist in this list.
     * +optional
     * 
* * repeated string storedVersions = 3; */ java.lang.String getStoredVersions(int index); /** * * *
     * storedVersions lists 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 a migration controller can finish a migration to another version (ensuring
     * no old objects are left in storage), and then remove the rest of the
     * versions from this list.
     * Versions may not be removed from `spec.versions` while they exist in this list.
     * +optional
     * 
* * repeated string storedVersions = 3; */ com.google.protobuf.ByteString getStoredVersionsBytes(int index); } /** * * *
   * CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition
   * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionStatus} */ public static final class CustomResourceDefinitionStatus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionStatus) CustomResourceDefinitionStatusOrBuilder { private static final long serialVersionUID = 0L; // Use CustomResourceDefinitionStatus.newBuilder() to construct. private CustomResourceDefinitionStatus( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CustomResourceDefinitionStatus() { conditions_ = java.util.Collections.emptyList(); storedVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CustomResourceDefinitionStatus( 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: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { conditions_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionCondition>(); mutable_bitField0_ |= 0x00000001; } conditions_.add( input.readMessage( io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionCondition.PARSER, extensionRegistry)); break; } case 18: { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames .Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = acceptedNames_.toBuilder(); } acceptedNames_ = input.readMessage( io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionNames.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(acceptedNames_); acceptedNames_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { storedVersions_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000004; } storedVersions_.add(bs); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { conditions_ = java.util.Collections.unmodifiableList(conditions_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { storedVersions_ = storedVersions_.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_CustomResourceDefinitionStatus_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_CustomResourceDefinitionStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus.class, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus.Builder .class); } private int bitField0_; public static final int CONDITIONS_FIELD_NUMBER = 1; private java.util.List< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition> conditions_; /** * * *
     * conditions indicate state for particular aspects of a CustomResourceDefinition
     * +optional
     * +listType=map
     * +listMapKey=type
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition conditions = 1; * */ public java.util.List< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition> getConditionsList() { return conditions_; } /** * * *
     * conditions indicate state for particular aspects of a CustomResourceDefinition
     * +optional
     * +listType=map
     * +listMapKey=type
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition conditions = 1; * */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionConditionOrBuilder> getConditionsOrBuilderList() { return conditions_; } /** * * *
     * conditions indicate state for particular aspects of a CustomResourceDefinition
     * +optional
     * +listType=map
     * +listMapKey=type
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition conditions = 1; * */ public int getConditionsCount() { return conditions_.size(); } /** * * *
     * conditions indicate state for particular aspects of a CustomResourceDefinition
     * +optional
     * +listType=map
     * +listMapKey=type
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition conditions = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition getConditions(int index) { return conditions_.get(index); } /** * * *
     * conditions indicate state for particular aspects of a CustomResourceDefinition
     * +optional
     * +listType=map
     * +listMapKey=type
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition conditions = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionConditionOrBuilder getConditionsOrBuilder(int index) { return conditions_.get(index); } public static final int ACCEPTEDNAMES_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames acceptedNames_; /** * * *
     * acceptedNames are the names that are actually being used to serve discovery.
     * They may be different than the names in spec.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames acceptedNames = 2; * */ public boolean hasAcceptedNames() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * acceptedNames are the names that are actually being used to serve discovery.
     * They may be different than the names in spec.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames acceptedNames = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames getAcceptedNames() { return acceptedNames_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames .getDefaultInstance() : acceptedNames_; } /** * * *
     * acceptedNames are the names that are actually being used to serve discovery.
     * They may be different than the names in spec.
     * +optional
     * 
* * * 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 lists 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 a migration controller can finish a migration to another version (ensuring
     * no old objects are left in storage), and then remove the rest of the
     * versions from this list.
     * Versions may not be removed from `spec.versions` while they exist in this list.
     * +optional
     * 
* * repeated string storedVersions = 3; */ public com.google.protobuf.ProtocolStringList getStoredVersionsList() { return storedVersions_; } /** * * *
     * storedVersions lists 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 a migration controller can finish a migration to another version (ensuring
     * no old objects are left in storage), and then remove the rest of the
     * versions from this list.
     * Versions may not be removed from `spec.versions` while they exist in this list.
     * +optional
     * 
* * repeated string storedVersions = 3; */ public int getStoredVersionsCount() { return storedVersions_.size(); } /** * * *
     * storedVersions lists 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 a migration controller can finish a migration to another version (ensuring
     * no old objects are left in storage), and then remove the rest of the
     * versions from this list.
     * Versions may not be removed from `spec.versions` while they exist in this list.
     * +optional
     * 
* * repeated string storedVersions = 3; */ public java.lang.String getStoredVersions(int index) { return storedVersions_.get(index); } /** * * *
     * storedVersions lists 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 a migration controller can finish a migration to another version (ensuring
     * no old objects are left in storage), and then remove the rest of the
     * versions from this list.
     * Versions may not be removed from `spec.versions` while they exist in this list.
     * +optional
     * 
* * 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
     * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionStatus} */ 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.CustomResourceDefinitionStatus) io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatusOrBuilder { 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_CustomResourceDefinitionStatus_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_CustomResourceDefinitionStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus .class, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus .Builder.class); } // Construct using // io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getConditionsFieldBuilder(); getAcceptedNamesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (conditionsBuilder_ == null) { conditions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { conditionsBuilder_.clear(); } if (acceptedNamesBuilder_ == null) { acceptedNames_ = null; } else { acceptedNamesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); storedVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); 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_CustomResourceDefinitionStatus_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus build() { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus buildPartial() { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus result = new io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus( this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (conditionsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { conditions_ = java.util.Collections.unmodifiableList(conditions_); bitField0_ = (bitField0_ & ~0x00000001); } result.conditions_ = conditions_; } else { result.conditions_ = conditionsBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } if (acceptedNamesBuilder_ == null) { result.acceptedNames_ = acceptedNames_; } else { result.acceptedNames_ = acceptedNamesBuilder_.build(); } if (((bitField0_ & 0x00000004) == 0x00000004)) { storedVersions_ = storedVersions_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.storedVersions_ = storedVersions_; 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.CustomResourceDefinitionStatus) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus other) { if (other == io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus .getDefaultInstance()) return this; if (conditionsBuilder_ == null) { if (!other.conditions_.isEmpty()) { if (conditions_.isEmpty()) { conditions_ = other.conditions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureConditionsIsMutable(); conditions_.addAll(other.conditions_); } onChanged(); } } else { if (!other.conditions_.isEmpty()) { if (conditionsBuilder_.isEmpty()) { conditionsBuilder_.dispose(); conditionsBuilder_ = null; conditions_ = other.conditions_; bitField0_ = (bitField0_ & ~0x00000001); conditionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getConditionsFieldBuilder() : null; } else { conditionsBuilder_.addAllMessages(other.conditions_); } } } if (other.hasAcceptedNames()) { mergeAcceptedNames(other.getAcceptedNames()); } if (!other.storedVersions_.isEmpty()) { if (storedVersions_.isEmpty()) { storedVersions_ = other.storedVersions_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureStoredVersionsIsMutable(); storedVersions_.addAll(other.storedVersions_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition> conditions_ = java.util.Collections.emptyList(); private void ensureConditionsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { conditions_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionCondition>(conditions_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition .Builder, io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionConditionOrBuilder> conditionsBuilder_; /** * * *
       * conditions indicate state for particular aspects of a CustomResourceDefinition
       * +optional
       * +listType=map
       * +listMapKey=type
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition conditions = 1; * */ public java.util.List< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition> getConditionsList() { if (conditionsBuilder_ == null) { return java.util.Collections.unmodifiableList(conditions_); } else { return conditionsBuilder_.getMessageList(); } } /** * * *
       * conditions indicate state for particular aspects of a CustomResourceDefinition
       * +optional
       * +listType=map
       * +listMapKey=type
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition conditions = 1; * */ public int getConditionsCount() { if (conditionsBuilder_ == null) { return conditions_.size(); } else { return conditionsBuilder_.getCount(); } } /** * * *
       * conditions indicate state for particular aspects of a CustomResourceDefinition
       * +optional
       * +listType=map
       * +listMapKey=type
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition conditions = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition getConditions(int index) { if (conditionsBuilder_ == null) { return conditions_.get(index); } else { return conditionsBuilder_.getMessage(index); } } /** * * *
       * conditions indicate state for particular aspects of a CustomResourceDefinition
       * +optional
       * +listType=map
       * +listMapKey=type
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition conditions = 1; * */ public Builder setConditions( int index, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.set(index, value); onChanged(); } else { conditionsBuilder_.setMessage(index, value); } return this; } /** * * *
       * conditions indicate state for particular aspects of a CustomResourceDefinition
       * +optional
       * +listType=map
       * +listMapKey=type
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition conditions = 1; * */ public Builder setConditions( int index, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.set(index, builderForValue.build()); onChanged(); } else { conditionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * conditions indicate state for particular aspects of a CustomResourceDefinition
       * +optional
       * +listType=map
       * +listMapKey=type
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition conditions = 1; * */ public Builder addConditions( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.add(value); onChanged(); } else { conditionsBuilder_.addMessage(value); } return this; } /** * * *
       * conditions indicate state for particular aspects of a CustomResourceDefinition
       * +optional
       * +listType=map
       * +listMapKey=type
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition conditions = 1; * */ public Builder addConditions( int index, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.add(index, value); onChanged(); } else { conditionsBuilder_.addMessage(index, value); } return this; } /** * * *
       * conditions indicate state for particular aspects of a CustomResourceDefinition
       * +optional
       * +listType=map
       * +listMapKey=type
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition conditions = 1; * */ public Builder addConditions( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(builderForValue.build()); onChanged(); } else { conditionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * conditions indicate state for particular aspects of a CustomResourceDefinition
       * +optional
       * +listType=map
       * +listMapKey=type
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition conditions = 1; * */ public Builder addConditions( int index, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(index, builderForValue.build()); onChanged(); } else { conditionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * conditions indicate state for particular aspects of a CustomResourceDefinition
       * +optional
       * +listType=map
       * +listMapKey=type
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition conditions = 1; * */ public Builder addAllConditions( java.lang.Iterable< ? extends io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionCondition> values) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); onChanged(); } else { conditionsBuilder_.addAllMessages(values); } return this; } /** * * *
       * conditions indicate state for particular aspects of a CustomResourceDefinition
       * +optional
       * +listType=map
       * +listMapKey=type
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition conditions = 1; * */ public Builder clearConditions() { if (conditionsBuilder_ == null) { conditions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { conditionsBuilder_.clear(); } return this; } /** * * *
       * conditions indicate state for particular aspects of a CustomResourceDefinition
       * +optional
       * +listType=map
       * +listMapKey=type
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition conditions = 1; * */ public Builder removeConditions(int index) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.remove(index); onChanged(); } else { conditionsBuilder_.remove(index); } return this; } /** * * *
       * conditions indicate state for particular aspects of a CustomResourceDefinition
       * +optional
       * +listType=map
       * +listMapKey=type
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition conditions = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition .Builder getConditionsBuilder(int index) { return getConditionsFieldBuilder().getBuilder(index); } /** * * *
       * conditions indicate state for particular aspects of a CustomResourceDefinition
       * +optional
       * +listType=map
       * +listMapKey=type
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition conditions = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionConditionOrBuilder getConditionsOrBuilder(int index) { if (conditionsBuilder_ == null) { return conditions_.get(index); } else { return conditionsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * conditions indicate state for particular aspects of a CustomResourceDefinition
       * +optional
       * +listType=map
       * +listMapKey=type
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition conditions = 1; * */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionConditionOrBuilder> getConditionsOrBuilderList() { if (conditionsBuilder_ != null) { return conditionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(conditions_); } } /** * * *
       * conditions indicate state for particular aspects of a CustomResourceDefinition
       * +optional
       * +listType=map
       * +listMapKey=type
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition conditions = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition .Builder addConditionsBuilder() { return getConditionsFieldBuilder() .addBuilder( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition .getDefaultInstance()); } /** * * *
       * conditions indicate state for particular aspects of a CustomResourceDefinition
       * +optional
       * +listType=map
       * +listMapKey=type
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition conditions = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition .Builder addConditionsBuilder(int index) { return getConditionsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition .getDefaultInstance()); } /** * * *
       * conditions indicate state for particular aspects of a CustomResourceDefinition
       * +optional
       * +listType=map
       * +listMapKey=type
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition conditions = 1; * */ public java.util.List< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition .Builder> getConditionsBuilderList() { return getConditionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition .Builder, io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionConditionOrBuilder> getConditionsFieldBuilder() { if (conditionsBuilder_ == null) { conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionCondition .Builder, io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionConditionOrBuilder>( conditions_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); conditions_ = null; } return conditionsBuilder_; } private io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames acceptedNames_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames.Builder, io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionNamesOrBuilder> acceptedNamesBuilder_; /** * * *
       * acceptedNames are the names that are actually being used to serve discovery.
       * They may be different than the names in spec.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames acceptedNames = 2; * */ public boolean hasAcceptedNames() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * acceptedNames are the names that are actually being used to serve discovery.
       * They may be different than the names in spec.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames acceptedNames = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames getAcceptedNames() { if (acceptedNamesBuilder_ == null) { return acceptedNames_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames .getDefaultInstance() : acceptedNames_; } else { return acceptedNamesBuilder_.getMessage(); } } /** * * *
       * acceptedNames are the names that are actually being used to serve discovery.
       * They may be different than the names in spec.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames acceptedNames = 2; * */ public Builder setAcceptedNames( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames value) { if (acceptedNamesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } acceptedNames_ = value; onChanged(); } else { acceptedNamesBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * acceptedNames are the names that are actually being used to serve discovery.
       * They may be different than the names in spec.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames acceptedNames = 2; * */ public Builder setAcceptedNames( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames.Builder builderForValue) { if (acceptedNamesBuilder_ == null) { acceptedNames_ = builderForValue.build(); onChanged(); } else { acceptedNamesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * acceptedNames are the names that are actually being used to serve discovery.
       * They may be different than the names in spec.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames acceptedNames = 2; * */ public Builder mergeAcceptedNames( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames value) { if (acceptedNamesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && acceptedNames_ != null && acceptedNames_ != io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames .getDefaultInstance()) { acceptedNames_ = io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames .newBuilder(acceptedNames_) .mergeFrom(value) .buildPartial(); } else { acceptedNames_ = value; } onChanged(); } else { acceptedNamesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * acceptedNames are the names that are actually being used to serve discovery.
       * They may be different than the names in spec.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames acceptedNames = 2; * */ public Builder clearAcceptedNames() { if (acceptedNamesBuilder_ == null) { acceptedNames_ = null; onChanged(); } else { acceptedNamesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * acceptedNames are the names that are actually being used to serve discovery.
       * They may be different than the names in spec.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames acceptedNames = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames.Builder getAcceptedNamesBuilder() { bitField0_ |= 0x00000002; onChanged(); return getAcceptedNamesFieldBuilder().getBuilder(); } /** * * *
       * acceptedNames are the names that are actually being used to serve discovery.
       * They may be different than the names in spec.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames acceptedNames = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNamesOrBuilder getAcceptedNamesOrBuilder() { if (acceptedNamesBuilder_ != null) { return acceptedNamesBuilder_.getMessageOrBuilder(); } else { return acceptedNames_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames .getDefaultInstance() : acceptedNames_; } } /** * * *
       * acceptedNames are the names that are actually being used to serve discovery.
       * They may be different than the names in spec.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames acceptedNames = 2; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames.Builder, io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionNamesOrBuilder> getAcceptedNamesFieldBuilder() { if (acceptedNamesBuilder_ == null) { acceptedNamesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionNames .Builder, io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceDefinitionNamesOrBuilder>( getAcceptedNames(), getParentForChildren(), isClean()); acceptedNames_ = null; } return acceptedNamesBuilder_; } private com.google.protobuf.LazyStringList storedVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureStoredVersionsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { storedVersions_ = new com.google.protobuf.LazyStringArrayList(storedVersions_); bitField0_ |= 0x00000004; } } /** * * *
       * storedVersions lists 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 a migration controller can finish a migration to another version (ensuring
       * no old objects are left in storage), and then remove the rest of the
       * versions from this list.
       * Versions may not be removed from `spec.versions` while they exist in this list.
       * +optional
       * 
* * repeated string storedVersions = 3; */ public com.google.protobuf.ProtocolStringList getStoredVersionsList() { return storedVersions_.getUnmodifiableView(); } /** * * *
       * storedVersions lists 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 a migration controller can finish a migration to another version (ensuring
       * no old objects are left in storage), and then remove the rest of the
       * versions from this list.
       * Versions may not be removed from `spec.versions` while they exist in this list.
       * +optional
       * 
* * repeated string storedVersions = 3; */ public int getStoredVersionsCount() { return storedVersions_.size(); } /** * * *
       * storedVersions lists 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 a migration controller can finish a migration to another version (ensuring
       * no old objects are left in storage), and then remove the rest of the
       * versions from this list.
       * Versions may not be removed from `spec.versions` while they exist in this list.
       * +optional
       * 
* * repeated string storedVersions = 3; */ public java.lang.String getStoredVersions(int index) { return storedVersions_.get(index); } /** * * *
       * storedVersions lists 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 a migration controller can finish a migration to another version (ensuring
       * no old objects are left in storage), and then remove the rest of the
       * versions from this list.
       * Versions may not be removed from `spec.versions` while they exist in this list.
       * +optional
       * 
* * repeated string storedVersions = 3; */ public com.google.protobuf.ByteString getStoredVersionsBytes(int index) { return storedVersions_.getByteString(index); } /** * * *
       * storedVersions lists 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 a migration controller can finish a migration to another version (ensuring
       * no old objects are left in storage), and then remove the rest of the
       * versions from this list.
       * Versions may not be removed from `spec.versions` while they exist in this list.
       * +optional
       * 
* * 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 lists 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 a migration controller can finish a migration to another version (ensuring
       * no old objects are left in storage), and then remove the rest of the
       * versions from this list.
       * Versions may not be removed from `spec.versions` while they exist in this list.
       * +optional
       * 
* * repeated string storedVersions = 3; */ public Builder addStoredVersions(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStoredVersionsIsMutable(); storedVersions_.add(value); onChanged(); return this; } /** * * *
       * storedVersions lists 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 a migration controller can finish a migration to another version (ensuring
       * no old objects are left in storage), and then remove the rest of the
       * versions from this list.
       * Versions may not be removed from `spec.versions` while they exist in this list.
       * +optional
       * 
* * repeated string storedVersions = 3; */ public Builder addAllStoredVersions(java.lang.Iterable values) { ensureStoredVersionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, storedVersions_); onChanged(); return this; } /** * * *
       * storedVersions lists 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 a migration controller can finish a migration to another version (ensuring
       * no old objects are left in storage), and then remove the rest of the
       * versions from this list.
       * Versions may not be removed from `spec.versions` while they exist in this list.
       * +optional
       * 
* * repeated string storedVersions = 3; */ public Builder clearStoredVersions() { storedVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
       * storedVersions lists 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 a migration controller can finish a migration to another version (ensuring
       * no old objects are left in storage), and then remove the rest of the
       * versions from this list.
       * Versions may not be removed from `spec.versions` while they exist in this list.
       * +optional
       * 
* * 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.
     * The custom resources are served under this version at `/apis/<group>/<version>/...` if `served` is true.
     * 
* * optional string name = 1; */ boolean hasName(); /** * * *
     * name is the version name, e.g. “v1”, “v2beta1”, etc.
     * The custom resources are served under this version at `/apis/<group>/<version>/...` if `served` is true.
     * 
* * optional string name = 1; */ java.lang.String getName(); /** * * *
     * name is the version name, e.g. “v1”, “v2beta1”, etc.
     * The custom resources are served under this version at `/apis/<group>/<version>/...` if `served` is true.
     * 
* * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * * *
     * served is a flag enabling/disabling this version from being served via REST APIs
     * 
* * optional bool served = 2; */ boolean hasServed(); /** * * *
     * served is a flag enabling/disabling this version from being served via REST APIs
     * 
* * optional bool served = 2; */ boolean getServed(); /** * * *
     * storage indicates this version should be used when persisting custom resources to storage.
     * There must be exactly one version with storage=true.
     * 
* * optional bool storage = 3; */ boolean hasStorage(); /** * * *
     * storage indicates this version should be used when persisting custom resources to storage.
     * There must be exactly one version with storage=true.
     * 
* * optional bool storage = 3; */ boolean getStorage(); /** * * *
     * deprecated indicates this version of the custom resource API is deprecated.
     * When set to true, API requests to this version receive a warning header in the server response.
     * Defaults to false.
     * +optional
     * 
* * optional bool deprecated = 7; */ boolean hasDeprecated(); /** * * *
     * deprecated indicates this version of the custom resource API is deprecated.
     * When set to true, API requests to this version receive a warning header in the server response.
     * Defaults to false.
     * +optional
     * 
* * optional bool deprecated = 7; */ boolean getDeprecated(); /** * * *
     * deprecationWarning overrides the default warning returned to API clients.
     * May only be set when `deprecated` is true.
     * The default warning indicates this version is deprecated and recommends use
     * of the newest served version of equal or greater stability, if one exists.
     * +optional
     * 
* * optional string deprecationWarning = 8; */ boolean hasDeprecationWarning(); /** * * *
     * deprecationWarning overrides the default warning returned to API clients.
     * May only be set when `deprecated` is true.
     * The default warning indicates this version is deprecated and recommends use
     * of the newest served version of equal or greater stability, if one exists.
     * +optional
     * 
* * optional string deprecationWarning = 8; */ java.lang.String getDeprecationWarning(); /** * * *
     * deprecationWarning overrides the default warning returned to API clients.
     * May only be set when `deprecated` is true.
     * The default warning indicates this version is deprecated and recommends use
     * of the newest served version of equal or greater stability, if one exists.
     * +optional
     * 
* * optional string deprecationWarning = 8; */ com.google.protobuf.ByteString getDeprecationWarningBytes(); /** * * *
     * schema describes the schema used for validation and pruning of this version of the custom resource.
     * 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).
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceValidation schema = 4; * */ boolean hasSchema(); /** * * *
     * schema describes the schema used for validation and pruning of this version of the custom resource.
     * 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).
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceValidation schema = 4; * */ io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation getSchema(); /** * * *
     * schema describes the schema used for validation and pruning of this version of the custom resource.
     * 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).
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceValidation schema = 4; * */ io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidationOrBuilder getSchemaOrBuilder(); /** * * *
     * subresources specify what subresources this version of the defined custom resource have.
     * 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).
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresources subresources = 5; * */ boolean hasSubresources(); /** * * *
     * subresources specify what subresources this version of the defined custom resource have.
     * 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).
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresources subresources = 5; * */ io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources getSubresources(); /** * * *
     * subresources specify what subresources this version of the defined custom resource have.
     * 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).
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresources subresources = 5; * */ io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourcesOrBuilder getSubresourcesOrBuilder(); /** * * *
     * additionalPrinterColumns specifies additional columns returned in Table output.
     * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
     * 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).
     * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
     * +optional
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 6; * */ java.util.List getAdditionalPrinterColumnsList(); /** * * *
     * additionalPrinterColumns specifies additional columns returned in Table output.
     * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
     * 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).
     * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
     * +optional
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 6; * */ io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition getAdditionalPrinterColumns(int index); /** * * *
     * additionalPrinterColumns specifies additional columns returned in Table output.
     * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
     * 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).
     * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
     * +optional
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 6; * */ int getAdditionalPrinterColumnsCount(); /** * * *
     * additionalPrinterColumns specifies additional columns returned in Table output.
     * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
     * 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).
     * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
     * +optional
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 6; * */ java.util.List< ? extends io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceColumnDefinitionOrBuilder> getAdditionalPrinterColumnsOrBuilderList(); /** * * *
     * additionalPrinterColumns specifies additional columns returned in Table output.
     * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
     * 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).
     * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
     * +optional
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 6; * */ io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinitionOrBuilder getAdditionalPrinterColumnsOrBuilder(int index); } /** * * *
   * CustomResourceDefinitionVersion describes a version for CRD.
   * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionVersion} */ public static final class CustomResourceDefinitionVersion extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionVersion) CustomResourceDefinitionVersionOrBuilder { private static final long serialVersionUID = 0L; // Use CustomResourceDefinitionVersion.newBuilder() to construct. private CustomResourceDefinitionVersion( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CustomResourceDefinitionVersion() { name_ = ""; served_ = false; storage_ = false; deprecated_ = false; deprecationWarning_ = ""; additionalPrinterColumns_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CustomResourceDefinitionVersion( 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; name_ = bs; break; } case 16: { bitField0_ |= 0x00000002; served_ = input.readBool(); break; } case 24: { bitField0_ |= 0x00000004; storage_ = input.readBool(); break; } case 34: { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = schema_.toBuilder(); } schema_ = input.readMessage( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation .PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(schema_); schema_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } case 42: { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources.Builder subBuilder = null; if (((bitField0_ & 0x00000040) == 0x00000040)) { subBuilder = subresources_.toBuilder(); } subresources_ = input.readMessage( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources .PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(subresources_); subresources_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000040; break; } case 50: { if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { additionalPrinterColumns_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceColumnDefinition>(); mutable_bitField0_ |= 0x00000080; } additionalPrinterColumns_.add( input.readMessage( io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceColumnDefinition.PARSER, extensionRegistry)); break; } case 56: { bitField0_ |= 0x00000008; deprecated_ = input.readBool(); break; } case 66: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; deprecationWarning_ = 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_ & 0x00000080) == 0x00000080)) { additionalPrinterColumns_ = java.util.Collections.unmodifiableList(additionalPrinterColumns_); } 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_CustomResourceDefinitionVersion_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_CustomResourceDefinitionVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion.class, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion .Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * * *
     * name is the version name, e.g. “v1”, “v2beta1”, etc.
     * The custom resources are served under this version at `/apis/<group>/<version>/...` if `served` is true.
     * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * name is the version name, e.g. “v1”, “v2beta1”, etc.
     * The custom resources are served under this version at `/apis/<group>/<version>/...` if `served` is true.
     * 
* * 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 the version name, e.g. “v1”, “v2beta1”, etc.
     * The custom resources are served under this version at `/apis/<group>/<version>/...` if `served` is true.
     * 
* * 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 SERVED_FIELD_NUMBER = 2; private boolean served_; /** * * *
     * served is a flag enabling/disabling this version from being served via REST APIs
     * 
* * optional bool served = 2; */ public boolean hasServed() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * served is a flag enabling/disabling this version from being served via REST APIs
     * 
* * optional bool served = 2; */ public boolean getServed() { return served_; } public static final int STORAGE_FIELD_NUMBER = 3; private boolean storage_; /** * * *
     * storage indicates this version should be used when persisting custom resources to storage.
     * There must be exactly one version with storage=true.
     * 
* * optional bool storage = 3; */ public boolean hasStorage() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * storage indicates this version should be used when persisting custom resources to storage.
     * There must be exactly one version with storage=true.
     * 
* * optional bool storage = 3; */ public boolean getStorage() { return storage_; } public static final int DEPRECATED_FIELD_NUMBER = 7; private boolean deprecated_; /** * * *
     * deprecated indicates this version of the custom resource API is deprecated.
     * When set to true, API requests to this version receive a warning header in the server response.
     * Defaults to false.
     * +optional
     * 
* * optional bool deprecated = 7; */ public boolean hasDeprecated() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * deprecated indicates this version of the custom resource API is deprecated.
     * When set to true, API requests to this version receive a warning header in the server response.
     * Defaults to false.
     * +optional
     * 
* * optional bool deprecated = 7; */ public boolean getDeprecated() { return deprecated_; } public static final int DEPRECATIONWARNING_FIELD_NUMBER = 8; private volatile java.lang.Object deprecationWarning_; /** * * *
     * deprecationWarning overrides the default warning returned to API clients.
     * May only be set when `deprecated` is true.
     * The default warning indicates this version is deprecated and recommends use
     * of the newest served version of equal or greater stability, if one exists.
     * +optional
     * 
* * optional string deprecationWarning = 8; */ public boolean hasDeprecationWarning() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * deprecationWarning overrides the default warning returned to API clients.
     * May only be set when `deprecated` is true.
     * The default warning indicates this version is deprecated and recommends use
     * of the newest served version of equal or greater stability, if one exists.
     * +optional
     * 
* * optional string deprecationWarning = 8; */ public java.lang.String getDeprecationWarning() { java.lang.Object ref = deprecationWarning_; 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()) { deprecationWarning_ = s; } return s; } } /** * * *
     * deprecationWarning overrides the default warning returned to API clients.
     * May only be set when `deprecated` is true.
     * The default warning indicates this version is deprecated and recommends use
     * of the newest served version of equal or greater stability, if one exists.
     * +optional
     * 
* * optional string deprecationWarning = 8; */ public com.google.protobuf.ByteString getDeprecationWarningBytes() { java.lang.Object ref = deprecationWarning_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); deprecationWarning_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SCHEMA_FIELD_NUMBER = 4; private io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation schema_; /** * * *
     * schema describes the schema used for validation and pruning of this version of the custom resource.
     * 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).
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceValidation schema = 4; * */ public boolean hasSchema() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * schema describes the schema used for validation and pruning of this version of the custom resource.
     * 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).
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceValidation schema = 4; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation getSchema() { return schema_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation .getDefaultInstance() : schema_; } /** * * *
     * schema describes the schema used for validation and pruning of this version of the custom resource.
     * 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).
     * +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 specify what subresources this version of the defined custom resource have.
     * 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).
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresources subresources = 5; * */ public boolean hasSubresources() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
     * subresources specify what subresources this version of the defined custom resource have.
     * 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).
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresources subresources = 5; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources getSubresources() { return subresources_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources .getDefaultInstance() : subresources_; } /** * * *
     * subresources specify what subresources this version of the defined custom resource have.
     * 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).
     * +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< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition> additionalPrinterColumns_; /** * * *
     * additionalPrinterColumns specifies additional columns returned in Table output.
     * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
     * 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).
     * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
     * +optional
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 6; * */ public java.util.List< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition> getAdditionalPrinterColumnsList() { return additionalPrinterColumns_; } /** * * *
     * additionalPrinterColumns specifies additional columns returned in Table output.
     * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
     * 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).
     * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
     * +optional
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 6; * */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceColumnDefinitionOrBuilder> getAdditionalPrinterColumnsOrBuilderList() { return additionalPrinterColumns_; } /** * * *
     * additionalPrinterColumns specifies additional columns returned in Table output.
     * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
     * 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).
     * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
     * +optional
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 6; * */ public int getAdditionalPrinterColumnsCount() { return additionalPrinterColumns_.size(); } /** * * *
     * additionalPrinterColumns specifies additional columns returned in Table output.
     * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
     * 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).
     * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
     * +optional
     * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 6; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition getAdditionalPrinterColumns(int index) { return additionalPrinterColumns_.get(index); } /** * * *
     * additionalPrinterColumns specifies additional columns returned in Table output.
     * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
     * 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).
     * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
     * +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_ & 0x00000020) == 0x00000020)) { output.writeMessage(4, getSchema()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeMessage(5, getSubresources()); } for (int i = 0; i < additionalPrinterColumns_.size(); i++) { output.writeMessage(6, additionalPrinterColumns_.get(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(7, deprecated_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, deprecationWarning_); } 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_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSchema()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { 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)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, deprecated_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, deprecationWarning_); } 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 && (hasDeprecated() == other.hasDeprecated()); if (hasDeprecated()) { result = result && (getDeprecated() == other.getDeprecated()); } result = result && (hasDeprecationWarning() == other.hasDeprecationWarning()); if (hasDeprecationWarning()) { result = result && getDeprecationWarning().equals(other.getDeprecationWarning()); } 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 (hasDeprecated()) { hash = (37 * hash) + DEPRECATED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeprecated()); } if (hasDeprecationWarning()) { hash = (37 * hash) + DEPRECATIONWARNING_FIELD_NUMBER; hash = (53 * hash) + getDeprecationWarning().hashCode(); } 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.
     * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionVersion} */ 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.CustomResourceDefinitionVersion) io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersionOrBuilder { 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_CustomResourceDefinitionVersion_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_CustomResourceDefinitionVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion .class, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion .Builder.class); } // Construct using // io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSchemaFieldBuilder(); getSubresourcesFieldBuilder(); getAdditionalPrinterColumnsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); served_ = false; bitField0_ = (bitField0_ & ~0x00000002); storage_ = false; bitField0_ = (bitField0_ & ~0x00000004); deprecated_ = false; bitField0_ = (bitField0_ & ~0x00000008); deprecationWarning_ = ""; bitField0_ = (bitField0_ & ~0x00000010); if (schemaBuilder_ == null) { schema_ = null; } else { schemaBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); if (subresourcesBuilder_ == null) { subresources_ = null; } else { subresourcesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); if (additionalPrinterColumnsBuilder_ == null) { additionalPrinterColumns_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); } else { additionalPrinterColumnsBuilder_.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_CustomResourceDefinitionVersion_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion build() { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion buildPartial() { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion result = new io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion( this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.served_ = served_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.storage_ = storage_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.deprecated_ = deprecated_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.deprecationWarning_ = deprecationWarning_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } if (schemaBuilder_ == null) { result.schema_ = schema_; } else { result.schema_ = schemaBuilder_.build(); } if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } if (subresourcesBuilder_ == null) { result.subresources_ = subresources_; } else { result.subresources_ = subresourcesBuilder_.build(); } if (additionalPrinterColumnsBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080)) { additionalPrinterColumns_ = java.util.Collections.unmodifiableList(additionalPrinterColumns_); bitField0_ = (bitField0_ & ~0x00000080); } result.additionalPrinterColumns_ = additionalPrinterColumns_; } else { result.additionalPrinterColumns_ = additionalPrinterColumnsBuilder_.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.CustomResourceDefinitionVersion) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion other) { if (other == io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion .getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasServed()) { setServed(other.getServed()); } if (other.hasStorage()) { setStorage(other.getStorage()); } if (other.hasDeprecated()) { setDeprecated(other.getDeprecated()); } if (other.hasDeprecationWarning()) { bitField0_ |= 0x00000010; deprecationWarning_ = other.deprecationWarning_; onChanged(); } if (other.hasSchema()) { mergeSchema(other.getSchema()); } if (other.hasSubresources()) { mergeSubresources(other.getSubresources()); } if (additionalPrinterColumnsBuilder_ == null) { if (!other.additionalPrinterColumns_.isEmpty()) { if (additionalPrinterColumns_.isEmpty()) { additionalPrinterColumns_ = other.additionalPrinterColumns_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureAdditionalPrinterColumnsIsMutable(); additionalPrinterColumns_.addAll(other.additionalPrinterColumns_); } onChanged(); } } else { if (!other.additionalPrinterColumns_.isEmpty()) { if (additionalPrinterColumnsBuilder_.isEmpty()) { additionalPrinterColumnsBuilder_.dispose(); additionalPrinterColumnsBuilder_ = null; additionalPrinterColumns_ = other.additionalPrinterColumns_; bitField0_ = (bitField0_ & ~0x00000080); additionalPrinterColumnsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAdditionalPrinterColumnsFieldBuilder() : null; } else { additionalPrinterColumnsBuilder_.addAllMessages(other.additionalPrinterColumns_); } } } 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.CustomResourceDefinitionVersion parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceDefinitionVersion) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * * *
       * name is the version name, e.g. “v1”, “v2beta1”, etc.
       * The custom resources are served under this version at `/apis/<group>/<version>/...` if `served` is true.
       * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * name is the version name, e.g. “v1”, “v2beta1”, etc.
       * The custom resources are served under this version at `/apis/<group>/<version>/...` if `served` is true.
       * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * name is the version name, e.g. “v1”, “v2beta1”, etc.
       * The custom resources are served under this version at `/apis/<group>/<version>/...` if `served` is true.
       * 
* * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * name is the version name, e.g. “v1”, “v2beta1”, etc.
       * The custom resources are served under this version at `/apis/<group>/<version>/...` if `served` is true.
       * 
* * optional string name = 1; */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * * *
       * name is the version name, e.g. “v1”, “v2beta1”, etc.
       * The custom resources are served under this version at `/apis/<group>/<version>/...` if `served` is true.
       * 
* * optional string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * * *
       * name is the version name, e.g. “v1”, “v2beta1”, etc.
       * The custom resources are served under this version at `/apis/<group>/<version>/...` if `served` is true.
       * 
* * 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 boolean served_; /** * * *
       * served is a flag enabling/disabling this version from being served via REST APIs
       * 
* * optional bool served = 2; */ public boolean hasServed() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * served is a flag enabling/disabling this version from being served via REST APIs
       * 
* * optional bool served = 2; */ public boolean getServed() { return served_; } /** * * *
       * served is a flag enabling/disabling this version from being served via REST APIs
       * 
* * optional bool served = 2; */ public Builder setServed(boolean value) { bitField0_ |= 0x00000002; served_ = value; onChanged(); return this; } /** * * *
       * served is a flag enabling/disabling this version from being served via REST APIs
       * 
* * optional bool served = 2; */ public Builder clearServed() { bitField0_ = (bitField0_ & ~0x00000002); served_ = false; onChanged(); return this; } private boolean storage_; /** * * *
       * storage indicates this version should be used when persisting custom resources to storage.
       * There must be exactly one version with storage=true.
       * 
* * optional bool storage = 3; */ public boolean hasStorage() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * storage indicates this version should be used when persisting custom resources to storage.
       * There must be exactly one version with storage=true.
       * 
* * optional bool storage = 3; */ public boolean getStorage() { return storage_; } /** * * *
       * storage indicates this version should be used when persisting custom resources to storage.
       * There must be exactly one version with storage=true.
       * 
* * optional bool storage = 3; */ public Builder setStorage(boolean value) { bitField0_ |= 0x00000004; storage_ = value; onChanged(); return this; } /** * * *
       * storage indicates this version should be used when persisting custom resources to storage.
       * There must be exactly one version with storage=true.
       * 
* * optional bool storage = 3; */ public Builder clearStorage() { bitField0_ = (bitField0_ & ~0x00000004); storage_ = false; onChanged(); return this; } private boolean deprecated_; /** * * *
       * deprecated indicates this version of the custom resource API is deprecated.
       * When set to true, API requests to this version receive a warning header in the server response.
       * Defaults to false.
       * +optional
       * 
* * optional bool deprecated = 7; */ public boolean hasDeprecated() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * deprecated indicates this version of the custom resource API is deprecated.
       * When set to true, API requests to this version receive a warning header in the server response.
       * Defaults to false.
       * +optional
       * 
* * optional bool deprecated = 7; */ public boolean getDeprecated() { return deprecated_; } /** * * *
       * deprecated indicates this version of the custom resource API is deprecated.
       * When set to true, API requests to this version receive a warning header in the server response.
       * Defaults to false.
       * +optional
       * 
* * optional bool deprecated = 7; */ public Builder setDeprecated(boolean value) { bitField0_ |= 0x00000008; deprecated_ = value; onChanged(); return this; } /** * * *
       * deprecated indicates this version of the custom resource API is deprecated.
       * When set to true, API requests to this version receive a warning header in the server response.
       * Defaults to false.
       * +optional
       * 
* * optional bool deprecated = 7; */ public Builder clearDeprecated() { bitField0_ = (bitField0_ & ~0x00000008); deprecated_ = false; onChanged(); return this; } private java.lang.Object deprecationWarning_ = ""; /** * * *
       * deprecationWarning overrides the default warning returned to API clients.
       * May only be set when `deprecated` is true.
       * The default warning indicates this version is deprecated and recommends use
       * of the newest served version of equal or greater stability, if one exists.
       * +optional
       * 
* * optional string deprecationWarning = 8; */ public boolean hasDeprecationWarning() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * deprecationWarning overrides the default warning returned to API clients.
       * May only be set when `deprecated` is true.
       * The default warning indicates this version is deprecated and recommends use
       * of the newest served version of equal or greater stability, if one exists.
       * +optional
       * 
* * optional string deprecationWarning = 8; */ public java.lang.String getDeprecationWarning() { java.lang.Object ref = deprecationWarning_; 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()) { deprecationWarning_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * deprecationWarning overrides the default warning returned to API clients.
       * May only be set when `deprecated` is true.
       * The default warning indicates this version is deprecated and recommends use
       * of the newest served version of equal or greater stability, if one exists.
       * +optional
       * 
* * optional string deprecationWarning = 8; */ public com.google.protobuf.ByteString getDeprecationWarningBytes() { java.lang.Object ref = deprecationWarning_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); deprecationWarning_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * deprecationWarning overrides the default warning returned to API clients.
       * May only be set when `deprecated` is true.
       * The default warning indicates this version is deprecated and recommends use
       * of the newest served version of equal or greater stability, if one exists.
       * +optional
       * 
* * optional string deprecationWarning = 8; */ public Builder setDeprecationWarning(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; deprecationWarning_ = value; onChanged(); return this; } /** * * *
       * deprecationWarning overrides the default warning returned to API clients.
       * May only be set when `deprecated` is true.
       * The default warning indicates this version is deprecated and recommends use
       * of the newest served version of equal or greater stability, if one exists.
       * +optional
       * 
* * optional string deprecationWarning = 8; */ public Builder clearDeprecationWarning() { bitField0_ = (bitField0_ & ~0x00000010); deprecationWarning_ = getDefaultInstance().getDeprecationWarning(); onChanged(); return this; } /** * * *
       * deprecationWarning overrides the default warning returned to API clients.
       * May only be set when `deprecated` is true.
       * The default warning indicates this version is deprecated and recommends use
       * of the newest served version of equal or greater stability, if one exists.
       * +optional
       * 
* * optional string deprecationWarning = 8; */ public Builder setDeprecationWarningBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; deprecationWarning_ = value; onChanged(); return this; } private io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation schema_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidationOrBuilder> schemaBuilder_; /** * * *
       * schema describes the schema used for validation and pruning of this version of the custom resource.
       * 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).
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceValidation schema = 4; * */ public boolean hasSchema() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * schema describes the schema used for validation and pruning of this version of the custom resource.
       * 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).
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceValidation schema = 4; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation getSchema() { if (schemaBuilder_ == null) { return schema_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation .getDefaultInstance() : schema_; } else { return schemaBuilder_.getMessage(); } } /** * * *
       * schema describes the schema used for validation and pruning of this version of the custom resource.
       * 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).
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceValidation schema = 4; * */ public Builder setSchema( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation value) { if (schemaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } schema_ = value; onChanged(); } else { schemaBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** * * *
       * schema describes the schema used for validation and pruning of this version of the custom resource.
       * 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).
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceValidation schema = 4; * */ public Builder setSchema( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation.Builder builderForValue) { if (schemaBuilder_ == null) { schema_ = builderForValue.build(); onChanged(); } else { schemaBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** * * *
       * schema describes the schema used for validation and pruning of this version of the custom resource.
       * 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).
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceValidation schema = 4; * */ public Builder mergeSchema( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation value) { if (schemaBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && schema_ != null && schema_ != io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation .getDefaultInstance()) { schema_ = io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation.newBuilder( schema_) .mergeFrom(value) .buildPartial(); } else { schema_ = value; } onChanged(); } else { schemaBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** * * *
       * schema describes the schema used for validation and pruning of this version of the custom resource.
       * 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).
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceValidation schema = 4; * */ public Builder clearSchema() { if (schemaBuilder_ == null) { schema_ = null; onChanged(); } else { schemaBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * * *
       * schema describes the schema used for validation and pruning of this version of the custom resource.
       * 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).
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceValidation schema = 4; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation.Builder getSchemaBuilder() { bitField0_ |= 0x00000020; onChanged(); return getSchemaFieldBuilder().getBuilder(); } /** * * *
       * schema describes the schema used for validation and pruning of this version of the custom resource.
       * 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).
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceValidation schema = 4; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidationOrBuilder getSchemaOrBuilder() { if (schemaBuilder_ != null) { return schemaBuilder_.getMessageOrBuilder(); } else { return schema_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation .getDefaultInstance() : schema_; } } /** * * *
       * schema describes the schema used for validation and pruning of this version of the custom resource.
       * 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).
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceValidation schema = 4; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidationOrBuilder> getSchemaFieldBuilder() { if (schemaBuilder_ == null) { schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation.Builder, io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceValidationOrBuilder>( getSchema(), getParentForChildren(), isClean()); schema_ = null; } return schemaBuilder_; } private io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources subresources_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourcesOrBuilder> subresourcesBuilder_; /** * * *
       * subresources specify what subresources this version of the defined custom resource have.
       * 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).
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresources subresources = 5; * */ public boolean hasSubresources() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
       * subresources specify what subresources this version of the defined custom resource have.
       * 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).
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresources subresources = 5; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources getSubresources() { if (subresourcesBuilder_ == null) { return subresources_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources .getDefaultInstance() : subresources_; } else { return subresourcesBuilder_.getMessage(); } } /** * * *
       * subresources specify what subresources this version of the defined custom resource have.
       * 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).
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresources subresources = 5; * */ public Builder setSubresources( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources value) { if (subresourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } subresources_ = value; onChanged(); } else { subresourcesBuilder_.setMessage(value); } bitField0_ |= 0x00000040; return this; } /** * * *
       * subresources specify what subresources this version of the defined custom resource have.
       * 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).
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresources subresources = 5; * */ public Builder setSubresources( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources.Builder builderForValue) { if (subresourcesBuilder_ == null) { subresources_ = builderForValue.build(); onChanged(); } else { subresourcesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; return this; } /** * * *
       * subresources specify what subresources this version of the defined custom resource have.
       * 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).
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresources subresources = 5; * */ public Builder mergeSubresources( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources value) { if (subresourcesBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040) && subresources_ != null && subresources_ != io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources .getDefaultInstance()) { subresources_ = io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources .newBuilder(subresources_) .mergeFrom(value) .buildPartial(); } else { subresources_ = value; } onChanged(); } else { subresourcesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; return this; } /** * * *
       * subresources specify what subresources this version of the defined custom resource have.
       * 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).
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresources subresources = 5; * */ public Builder clearSubresources() { if (subresourcesBuilder_ == null) { subresources_ = null; onChanged(); } else { subresourcesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /** * * *
       * subresources specify what subresources this version of the defined custom resource have.
       * 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).
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresources subresources = 5; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources.Builder getSubresourcesBuilder() { bitField0_ |= 0x00000040; onChanged(); return getSubresourcesFieldBuilder().getBuilder(); } /** * * *
       * subresources specify what subresources this version of the defined custom resource have.
       * 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).
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresources subresources = 5; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourcesOrBuilder getSubresourcesOrBuilder() { if (subresourcesBuilder_ != null) { return subresourcesBuilder_.getMessageOrBuilder(); } else { return subresources_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources .getDefaultInstance() : subresources_; } } /** * * *
       * subresources specify what subresources this version of the defined custom resource have.
       * 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).
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresources subresources = 5; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourcesOrBuilder> getSubresourcesFieldBuilder() { if (subresourcesBuilder_ == null) { subresourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources .Builder, io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceSubresourcesOrBuilder>( getSubresources(), getParentForChildren(), isClean()); subresources_ = null; } return subresourcesBuilder_; } private java.util.List< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition> additionalPrinterColumns_ = java.util.Collections.emptyList(); private void ensureAdditionalPrinterColumnsIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { additionalPrinterColumns_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition>( additionalPrinterColumns_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition .Builder, io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceColumnDefinitionOrBuilder> additionalPrinterColumnsBuilder_; /** * * *
       * additionalPrinterColumns specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * 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).
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +optional
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 6; * */ public java.util.List< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition> getAdditionalPrinterColumnsList() { if (additionalPrinterColumnsBuilder_ == null) { return java.util.Collections.unmodifiableList(additionalPrinterColumns_); } else { return additionalPrinterColumnsBuilder_.getMessageList(); } } /** * * *
       * additionalPrinterColumns specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * 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).
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +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 specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * 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).
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +optional
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 6; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition getAdditionalPrinterColumns(int index) { if (additionalPrinterColumnsBuilder_ == null) { return additionalPrinterColumns_.get(index); } else { return additionalPrinterColumnsBuilder_.getMessage(index); } } /** * * *
       * additionalPrinterColumns specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * 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).
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +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 specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * 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).
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +optional
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 6; * */ public Builder setAdditionalPrinterColumns( int index, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition.Builder builderForValue) { if (additionalPrinterColumnsBuilder_ == null) { ensureAdditionalPrinterColumnsIsMutable(); additionalPrinterColumns_.set(index, builderForValue.build()); onChanged(); } else { additionalPrinterColumnsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * additionalPrinterColumns specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * 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).
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +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 specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * 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).
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +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 specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * 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).
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +optional
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 6; * */ public Builder addAdditionalPrinterColumns( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition.Builder builderForValue) { if (additionalPrinterColumnsBuilder_ == null) { ensureAdditionalPrinterColumnsIsMutable(); additionalPrinterColumns_.add(builderForValue.build()); onChanged(); } else { additionalPrinterColumnsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * additionalPrinterColumns specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * 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).
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +optional
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 6; * */ public Builder addAdditionalPrinterColumns( int index, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition.Builder builderForValue) { if (additionalPrinterColumnsBuilder_ == null) { ensureAdditionalPrinterColumnsIsMutable(); additionalPrinterColumns_.add(index, builderForValue.build()); onChanged(); } else { additionalPrinterColumnsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * additionalPrinterColumns specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * 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).
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +optional
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 6; * */ public Builder addAllAdditionalPrinterColumns( java.lang.Iterable< ? extends io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceColumnDefinition> values) { if (additionalPrinterColumnsBuilder_ == null) { ensureAdditionalPrinterColumnsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, additionalPrinterColumns_); onChanged(); } else { additionalPrinterColumnsBuilder_.addAllMessages(values); } return this; } /** * * *
       * additionalPrinterColumns specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * 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).
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +optional
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 6; * */ public Builder clearAdditionalPrinterColumns() { if (additionalPrinterColumnsBuilder_ == null) { additionalPrinterColumns_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { additionalPrinterColumnsBuilder_.clear(); } return this; } /** * * *
       * additionalPrinterColumns specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * 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).
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +optional
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 6; * */ public Builder removeAdditionalPrinterColumns(int index) { if (additionalPrinterColumnsBuilder_ == null) { ensureAdditionalPrinterColumnsIsMutable(); additionalPrinterColumns_.remove(index); onChanged(); } else { additionalPrinterColumnsBuilder_.remove(index); } return this; } /** * * *
       * additionalPrinterColumns specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * 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).
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +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 specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * 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).
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +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 specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * 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).
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +optional
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 6; * */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceColumnDefinitionOrBuilder> getAdditionalPrinterColumnsOrBuilderList() { if (additionalPrinterColumnsBuilder_ != null) { return additionalPrinterColumnsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(additionalPrinterColumns_); } } /** * * *
       * additionalPrinterColumns specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * 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).
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +optional
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 6; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition.Builder addAdditionalPrinterColumnsBuilder() { return getAdditionalPrinterColumnsFieldBuilder() .addBuilder( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition .getDefaultInstance()); } /** * * *
       * additionalPrinterColumns specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * 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).
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +optional
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 6; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition.Builder addAdditionalPrinterColumnsBuilder(int index) { return getAdditionalPrinterColumnsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition .getDefaultInstance()); } /** * * *
       * additionalPrinterColumns specifies additional columns returned in Table output.
       * See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
       * 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).
       * If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
       * +optional
       * 
* * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition additionalPrinterColumns = 6; * */ public java.util.List< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceColumnDefinition .Builder> 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_ & 0x00000080) == 0x00000080), 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 custom resource 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 custom resource, the `/scale` subresource will return an error on GET.
     * 
* * optional string specReplicasPath = 1; */ boolean hasSpecReplicasPath(); /** * * *
     * specReplicasPath defines the JSON path inside of a custom resource 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 custom resource, the `/scale` subresource will return an error on GET.
     * 
* * optional string specReplicasPath = 1; */ java.lang.String getSpecReplicasPath(); /** * * *
     * specReplicasPath defines the JSON path inside of a custom resource 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 custom resource, the `/scale` subresource will return an error on GET.
     * 
* * optional string specReplicasPath = 1; */ com.google.protobuf.ByteString getSpecReplicasPathBytes(); /** * * *
     * statusReplicasPath defines the JSON path inside of a custom resource 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 custom resource, the `status.replicas` value in the `/scale` subresource
     * will default to 0.
     * 
* * optional string statusReplicasPath = 2; */ boolean hasStatusReplicasPath(); /** * * *
     * statusReplicasPath defines the JSON path inside of a custom resource 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 custom resource, the `status.replicas` value in the `/scale` subresource
     * will default to 0.
     * 
* * optional string statusReplicasPath = 2; */ java.lang.String getStatusReplicasPath(); /** * * *
     * statusReplicasPath defines the JSON path inside of a custom resource 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 custom resource, the `status.replicas` value in the `/scale` subresource
     * will default to 0.
     * 
* * optional string statusReplicasPath = 2; */ com.google.protobuf.ByteString getStatusReplicasPathBytes(); /** * * *
     * labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`.
     * Only JSON paths without the array notation are allowed.
     * Must be a JSON Path under `.status` or `.spec`.
     * Must be set to work with HorizontalPodAutoscaler.
     * The field pointed by this JSON path must be a string field (not a complex selector struct)
     * which contains a serialized label selector in string form.
     * More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource
     * If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale`
     * subresource will default to the empty string.
     * +optional
     * 
* * optional string labelSelectorPath = 3; */ boolean hasLabelSelectorPath(); /** * * *
     * labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`.
     * Only JSON paths without the array notation are allowed.
     * Must be a JSON Path under `.status` or `.spec`.
     * Must be set to work with HorizontalPodAutoscaler.
     * The field pointed by this JSON path must be a string field (not a complex selector struct)
     * which contains a serialized label selector in string form.
     * More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource
     * If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale`
     * subresource will default to the empty string.
     * +optional
     * 
* * optional string labelSelectorPath = 3; */ java.lang.String getLabelSelectorPath(); /** * * *
     * labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`.
     * Only JSON paths without the array notation are allowed.
     * Must be a JSON Path under `.status` or `.spec`.
     * Must be set to work with HorizontalPodAutoscaler.
     * The field pointed by this JSON path must be a string field (not a complex selector struct)
     * which contains a serialized label selector in string form.
     * More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource
     * If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale`
     * subresource will default to the empty string.
     * +optional
     * 
* * optional string labelSelectorPath = 3; */ com.google.protobuf.ByteString getLabelSelectorPathBytes(); } /** * * *
   * 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 custom resource 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 custom resource, the `/scale` subresource will return an error on GET.
     * 
* * optional string specReplicasPath = 1; */ public boolean hasSpecReplicasPath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * specReplicasPath defines the JSON path inside of a custom resource 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 custom resource, the `/scale` subresource will return an error on GET.
     * 
* * optional string specReplicasPath = 1; */ public java.lang.String getSpecReplicasPath() { java.lang.Object ref = specReplicasPath_; 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()) { specReplicasPath_ = s; } return s; } } /** * * *
     * specReplicasPath defines the JSON path inside of a custom resource 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 custom resource, 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 custom resource 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 custom resource, the `status.replicas` value in the `/scale` subresource
     * will default to 0.
     * 
* * optional string statusReplicasPath = 2; */ public boolean hasStatusReplicasPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * statusReplicasPath defines the JSON path inside of a custom resource 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 custom resource, the `status.replicas` value in the `/scale` subresource
     * will default to 0.
     * 
* * optional string statusReplicasPath = 2; */ public java.lang.String getStatusReplicasPath() { java.lang.Object ref = statusReplicasPath_; 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()) { statusReplicasPath_ = s; } return s; } } /** * * *
     * statusReplicasPath defines the JSON path inside of a custom resource 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 custom resource, the `status.replicas` 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 custom resource that corresponds to Scale `status.selector`.
     * Only JSON paths without the array notation are allowed.
     * Must be a JSON Path under `.status` or `.spec`.
     * Must be set to work with HorizontalPodAutoscaler.
     * The field pointed by this JSON path must be a string field (not a complex selector struct)
     * which contains a serialized label selector in string form.
     * More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource
     * If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale`
     * subresource will default to the empty string.
     * +optional
     * 
* * optional string labelSelectorPath = 3; */ public boolean hasLabelSelectorPath() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`.
     * Only JSON paths without the array notation are allowed.
     * Must be a JSON Path under `.status` or `.spec`.
     * Must be set to work with HorizontalPodAutoscaler.
     * The field pointed by this JSON path must be a string field (not a complex selector struct)
     * which contains a serialized label selector in string form.
     * More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource
     * If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale`
     * subresource will default to the empty string.
     * +optional
     * 
* * optional string labelSelectorPath = 3; */ public java.lang.String getLabelSelectorPath() { java.lang.Object ref = labelSelectorPath_; 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()) { labelSelectorPath_ = s; } return s; } } /** * * *
     * labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`.
     * Only JSON paths without the array notation are allowed.
     * Must be a JSON Path under `.status` or `.spec`.
     * Must be set to work with HorizontalPodAutoscaler.
     * The field pointed by this JSON path must be a string field (not a complex selector struct)
     * which contains a serialized label selector in string form.
     * More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource
     * If there is no value under the given path in the custom resource, the `status.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.
     * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceScale} */ 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.CustomResourceSubresourceScale) io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScaleOrBuilder { 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); } // Construct using // io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale.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(); specReplicasPath_ = ""; bitField0_ = (bitField0_ & ~0x00000001); statusReplicasPath_ = ""; bitField0_ = (bitField0_ & ~0x00000002); labelSelectorPath_ = ""; bitField0_ = (bitField0_ & ~0x00000004); 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_CustomResourceSubresourceScale_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale build() { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale buildPartial() { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale result = new io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale( this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.specReplicasPath_ = specReplicasPath_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.statusReplicasPath_ = statusReplicasPath_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.labelSelectorPath_ = labelSelectorPath_; 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.CustomResourceSubresourceScale) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale other) { if (other == io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale .getDefaultInstance()) return this; if (other.hasSpecReplicasPath()) { bitField0_ |= 0x00000001; specReplicasPath_ = other.specReplicasPath_; onChanged(); } if (other.hasStatusReplicasPath()) { bitField0_ |= 0x00000002; statusReplicasPath_ = other.statusReplicasPath_; onChanged(); } if (other.hasLabelSelectorPath()) { bitField0_ |= 0x00000004; labelSelectorPath_ = other.labelSelectorPath_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object specReplicasPath_ = ""; /** * * *
       * specReplicasPath defines the JSON path inside of a custom resource 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 custom resource, the `/scale` subresource will return an error on GET.
       * 
* * optional string specReplicasPath = 1; */ public boolean hasSpecReplicasPath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * specReplicasPath defines the JSON path inside of a custom resource 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 custom resource, the `/scale` subresource will return an error on GET.
       * 
* * optional string specReplicasPath = 1; */ public java.lang.String getSpecReplicasPath() { java.lang.Object ref = specReplicasPath_; 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()) { specReplicasPath_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * specReplicasPath defines the JSON path inside of a custom resource 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 custom resource, 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 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; } } /** * * *
       * specReplicasPath defines the JSON path inside of a custom resource 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 custom resource, the `/scale` subresource will return an error on GET.
       * 
* * optional string specReplicasPath = 1; */ public Builder setSpecReplicasPath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; specReplicasPath_ = value; onChanged(); return this; } /** * * *
       * specReplicasPath defines the JSON path inside of a custom resource 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 custom resource, the `/scale` subresource will return an error on GET.
       * 
* * optional string specReplicasPath = 1; */ public Builder clearSpecReplicasPath() { bitField0_ = (bitField0_ & ~0x00000001); specReplicasPath_ = getDefaultInstance().getSpecReplicasPath(); onChanged(); return this; } /** * * *
       * specReplicasPath defines the JSON path inside of a custom resource 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 custom resource, the `/scale` subresource will return an error on GET.
       * 
* * optional string specReplicasPath = 1; */ public Builder setSpecReplicasPathBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; specReplicasPath_ = value; onChanged(); return this; } private java.lang.Object statusReplicasPath_ = ""; /** * * *
       * statusReplicasPath defines the JSON path inside of a custom resource 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 custom resource, the `status.replicas` value in the `/scale` subresource
       * will default to 0.
       * 
* * optional string statusReplicasPath = 2; */ public boolean hasStatusReplicasPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * statusReplicasPath defines the JSON path inside of a custom resource 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 custom resource, the `status.replicas` value in the `/scale` subresource
       * will default to 0.
       * 
* * optional string statusReplicasPath = 2; */ public java.lang.String getStatusReplicasPath() { java.lang.Object ref = statusReplicasPath_; 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()) { statusReplicasPath_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * statusReplicasPath defines the JSON path inside of a custom resource 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 custom resource, the `status.replicas` 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 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; } } /** * * *
       * statusReplicasPath defines the JSON path inside of a custom resource 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 custom resource, the `status.replicas` value in the `/scale` subresource
       * will default to 0.
       * 
* * optional string statusReplicasPath = 2; */ public Builder setStatusReplicasPath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; statusReplicasPath_ = value; onChanged(); return this; } /** * * *
       * statusReplicasPath defines the JSON path inside of a custom resource 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 custom resource, the `status.replicas` value in the `/scale` subresource
       * will default to 0.
       * 
* * optional string statusReplicasPath = 2; */ public Builder clearStatusReplicasPath() { bitField0_ = (bitField0_ & ~0x00000002); statusReplicasPath_ = getDefaultInstance().getStatusReplicasPath(); onChanged(); return this; } /** * * *
       * statusReplicasPath defines the JSON path inside of a custom resource 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 custom resource, the `status.replicas` value in the `/scale` subresource
       * will default to 0.
       * 
* * optional string statusReplicasPath = 2; */ public Builder setStatusReplicasPathBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; statusReplicasPath_ = value; onChanged(); return this; } private java.lang.Object labelSelectorPath_ = ""; /** * * *
       * labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`.
       * Only JSON paths without the array notation are allowed.
       * Must be a JSON Path under `.status` or `.spec`.
       * Must be set to work with HorizontalPodAutoscaler.
       * The field pointed by this JSON path must be a string field (not a complex selector struct)
       * which contains a serialized label selector in string form.
       * More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource
       * If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale`
       * subresource will default to the empty string.
       * +optional
       * 
* * optional string labelSelectorPath = 3; */ public boolean hasLabelSelectorPath() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`.
       * Only JSON paths without the array notation are allowed.
       * Must be a JSON Path under `.status` or `.spec`.
       * Must be set to work with HorizontalPodAutoscaler.
       * The field pointed by this JSON path must be a string field (not a complex selector struct)
       * which contains a serialized label selector in string form.
       * More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource
       * If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale`
       * subresource will default to the empty string.
       * +optional
       * 
* * optional string labelSelectorPath = 3; */ public java.lang.String getLabelSelectorPath() { java.lang.Object ref = labelSelectorPath_; 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()) { labelSelectorPath_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`.
       * Only JSON paths without the array notation are allowed.
       * Must be a JSON Path under `.status` or `.spec`.
       * Must be set to work with HorizontalPodAutoscaler.
       * The field pointed by this JSON path must be a string field (not a complex selector struct)
       * which contains a serialized label selector in string form.
       * More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource
       * If there is no value under the given path in the custom resource, the `status.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 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; } } /** * * *
       * labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`.
       * Only JSON paths without the array notation are allowed.
       * Must be a JSON Path under `.status` or `.spec`.
       * Must be set to work with HorizontalPodAutoscaler.
       * The field pointed by this JSON path must be a string field (not a complex selector struct)
       * which contains a serialized label selector in string form.
       * More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource
       * If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale`
       * subresource will default to the empty string.
       * +optional
       * 
* * optional string labelSelectorPath = 3; */ public Builder setLabelSelectorPath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; labelSelectorPath_ = value; onChanged(); return this; } /** * * *
       * labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`.
       * Only JSON paths without the array notation are allowed.
       * Must be a JSON Path under `.status` or `.spec`.
       * Must be set to work with HorizontalPodAutoscaler.
       * The field pointed by this JSON path must be a string field (not a complex selector struct)
       * which contains a serialized label selector in string form.
       * More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource
       * If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale`
       * subresource will default to the empty string.
       * +optional
       * 
* * optional string labelSelectorPath = 3; */ public Builder clearLabelSelectorPath() { bitField0_ = (bitField0_ & ~0x00000004); labelSelectorPath_ = getDefaultInstance().getLabelSelectorPath(); onChanged(); return this; } /** * * *
       * labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`.
       * Only JSON paths without the array notation are allowed.
       * Must be a JSON Path under `.status` or `.spec`.
       * Must be set to work with HorizontalPodAutoscaler.
       * The field pointed by this JSON path must be a string field (not a complex selector struct)
       * which contains a serialized label selector in string form.
       * More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource
       * If there is no value under the given path in the custom resource, the `status.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 indicates the custom resource should serve a `/status` subresource.
     * When enabled:
     * 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object.
     * 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceStatus status = 1; * */ boolean hasStatus(); /** * * *
     * status indicates the custom resource should serve a `/status` subresource.
     * When enabled:
     * 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object.
     * 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceStatus status = 1; * */ io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus getStatus(); /** * * *
     * status indicates the custom resource should serve a `/status` subresource.
     * When enabled:
     * 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object.
     * 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceStatus status = 1; * */ io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatusOrBuilder getStatusOrBuilder(); /** * * *
     * scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceScale scale = 2; * */ boolean hasScale(); /** * * *
     * scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceScale scale = 2; * */ io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale getScale(); /** * * *
     * scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceScale scale = 2; * */ io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScaleOrBuilder getScaleOrBuilder(); } /** * * *
   * CustomResourceSubresources defines the status and scale subresources for CustomResources.
   * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresources} */ public static final class CustomResourceSubresources extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresources) CustomResourceSubresourcesOrBuilder { private static final long serialVersionUID = 0L; // Use CustomResourceSubresources.newBuilder() to construct. private CustomResourceSubresources(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CustomResourceSubresources() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CustomResourceSubresources( 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.V1beta1Apiextensions.CustomResourceSubresourceStatus .Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = status_.toBuilder(); } status_ = input.readMessage( io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceSubresourceStatus.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(status_); status_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale .Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = scale_.toBuilder(); } scale_ = input.readMessage( io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceSubresourceScale.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(scale_); scale_ = 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_CustomResourceSubresources_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_CustomResourceSubresources_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources.class, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources.Builder .class); } private int bitField0_; public static final int STATUS_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus status_; /** * * *
     * status indicates the custom resource should serve a `/status` subresource.
     * When enabled:
     * 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object.
     * 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceStatus status = 1; * */ public boolean hasStatus() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * status indicates the custom resource should serve a `/status` subresource.
     * When enabled:
     * 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object.
     * 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceStatus status = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus getStatus() { return status_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus .getDefaultInstance() : status_; } /** * * *
     * status indicates the custom resource should serve a `/status` subresource.
     * When enabled:
     * 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object.
     * 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceStatus status = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatusOrBuilder getStatusOrBuilder() { return status_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus .getDefaultInstance() : status_; } public static final int SCALE_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale scale_; /** * * *
     * scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceScale scale = 2; * */ public boolean hasScale() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceScale scale = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale getScale() { return scale_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale .getDefaultInstance() : scale_; } /** * * *
     * scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceScale scale = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScaleOrBuilder getScaleOrBuilder() { return scale_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale .getDefaultInstance() : scale_; } 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, getStatus()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getScale()); } 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, getStatus()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScale()); } 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.CustomResourceSubresources)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources other = (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources) obj; boolean result = true; result = result && (hasStatus() == other.hasStatus()); if (hasStatus()) { result = result && getStatus().equals(other.getStatus()); } result = result && (hasScale() == other.hasScale()); if (hasScale()) { result = result && getScale().equals(other.getScale()); } 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 (hasStatus()) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().hashCode(); } if (hasScale()) { hash = (37 * hash) + SCALE_FIELD_NUMBER; hash = (53 * hash) + getScale().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources 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.CustomResourceSubresources parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources 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.CustomResourceSubresources parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources 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.CustomResourceSubresources parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources 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.CustomResourceSubresources parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources 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.CustomResourceSubresources 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.CustomResourceSubresources 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.CustomResourceSubresources 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; } /** * * *
     * CustomResourceSubresources defines the status and scale subresources for CustomResources.
     * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresources} */ 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.CustomResourceSubresources) io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourcesOrBuilder { 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_CustomResourceSubresources_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_CustomResourceSubresources_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources.class, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources.Builder .class); } // Construct using // io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getStatusFieldBuilder(); getScaleFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (statusBuilder_ == null) { status_ = null; } else { statusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (scaleBuilder_ == null) { scale_ = null; } else { scaleBuilder_.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_CustomResourceSubresources_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources build() { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources buildPartial() { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources result = new io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (statusBuilder_ == null) { result.status_ = status_; } else { result.status_ = statusBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (scaleBuilder_ == null) { result.scale_ = scale_; } else { result.scale_ = scaleBuilder_.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.CustomResourceSubresources) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources other) { if (other == io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources .getDefaultInstance()) return this; if (other.hasStatus()) { mergeStatus(other.getStatus()); } if (other.hasScale()) { mergeScale(other.getScale()); } 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.CustomResourceSubresources parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus status_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus .Builder, io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceSubresourceStatusOrBuilder> statusBuilder_; /** * * *
       * status indicates the custom resource should serve a `/status` subresource.
       * When enabled:
       * 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object.
       * 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceStatus status = 1; * */ public boolean hasStatus() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * status indicates the custom resource should serve a `/status` subresource.
       * When enabled:
       * 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object.
       * 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceStatus status = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus getStatus() { if (statusBuilder_ == null) { return status_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus .getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** * * *
       * status indicates the custom resource should serve a `/status` subresource.
       * When enabled:
       * 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object.
       * 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceStatus status = 1; * */ public Builder setStatus( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } status_ = value; onChanged(); } else { statusBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * status indicates the custom resource should serve a `/status` subresource.
       * When enabled:
       * 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object.
       * 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceStatus status = 1; * */ public Builder setStatus( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); } else { statusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * status indicates the custom resource should serve a `/status` subresource.
       * When enabled:
       * 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object.
       * 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceStatus status = 1; * */ public Builder mergeStatus( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus value) { if (statusBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && status_ != null && status_ != io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus .getDefaultInstance()) { status_ = io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus .newBuilder(status_) .mergeFrom(value) .buildPartial(); } else { status_ = value; } onChanged(); } else { statusBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * status indicates the custom resource should serve a `/status` subresource.
       * When enabled:
       * 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object.
       * 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceStatus status = 1; * */ public Builder clearStatus() { if (statusBuilder_ == null) { status_ = null; onChanged(); } else { statusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * status indicates the custom resource should serve a `/status` subresource.
       * When enabled:
       * 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object.
       * 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceStatus status = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus.Builder getStatusBuilder() { bitField0_ |= 0x00000001; onChanged(); return getStatusFieldBuilder().getBuilder(); } /** * * *
       * status indicates the custom resource should serve a `/status` subresource.
       * When enabled:
       * 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object.
       * 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceStatus status = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceSubresourceStatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { return status_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus .getDefaultInstance() : status_; } } /** * * *
       * status indicates the custom resource should serve a `/status` subresource.
       * When enabled:
       * 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object.
       * 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceStatus status = 1; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus .Builder, io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceSubresourceStatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceStatus .Builder, io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceSubresourceStatusOrBuilder>( getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } private io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale scale_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale .Builder, io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceSubresourceScaleOrBuilder> scaleBuilder_; /** * * *
       * scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceScale scale = 2; * */ public boolean hasScale() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceScale scale = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale getScale() { if (scaleBuilder_ == null) { return scale_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale .getDefaultInstance() : scale_; } else { return scaleBuilder_.getMessage(); } } /** * * *
       * scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceScale scale = 2; * */ public Builder setScale( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale value) { if (scaleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } scale_ = value; onChanged(); } else { scaleBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceScale scale = 2; * */ public Builder setScale( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale.Builder builderForValue) { if (scaleBuilder_ == null) { scale_ = builderForValue.build(); onChanged(); } else { scaleBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceScale scale = 2; * */ public Builder mergeScale( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale value) { if (scaleBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && scale_ != null && scale_ != io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale .getDefaultInstance()) { scale_ = io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale .newBuilder(scale_) .mergeFrom(value) .buildPartial(); } else { scale_ = value; } onChanged(); } else { scaleBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceScale scale = 2; * */ public Builder clearScale() { if (scaleBuilder_ == null) { scale_ = null; onChanged(); } else { scaleBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceScale scale = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale.Builder getScaleBuilder() { bitField0_ |= 0x00000002; onChanged(); return getScaleFieldBuilder().getBuilder(); } /** * * *
       * scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceScale scale = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScaleOrBuilder getScaleOrBuilder() { if (scaleBuilder_ != null) { return scaleBuilder_.getMessageOrBuilder(); } else { return scale_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale .getDefaultInstance() : scale_; } } /** * * *
       * scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceScale scale = 2; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale .Builder, io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceSubresourceScaleOrBuilder> getScaleFieldBuilder() { if (scaleBuilder_ == null) { scaleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresourceScale .Builder, io.kubernetes.client.proto.V1beta1Apiextensions .CustomResourceSubresourceScaleOrBuilder>( getScale(), getParentForChildren(), isClean()); scale_ = null; } return scaleBuilder_; } @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.CustomResourceSubresources) } // @@protoc_insertion_point(class_scope:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresources) private static final io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources(); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceSubresources getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CustomResourceSubresources parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CustomResourceSubresources(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.CustomResourceSubresources getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CustomResourceValidationOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceValidation) com.google.protobuf.MessageOrBuilder { /** * * *
     * openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps openAPIV3Schema = 1; * */ boolean hasOpenAPIV3Schema(); /** * * *
     * openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps openAPIV3Schema = 1; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getOpenAPIV3Schema(); /** * * *
     * openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps openAPIV3Schema = 1; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder getOpenAPIV3SchemaOrBuilder(); } /** * * *
   * CustomResourceValidation is a list of validation methods for CustomResources.
   * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceValidation} */ public static final class CustomResourceValidation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceValidation) CustomResourceValidationOrBuilder { private static final long serialVersionUID = 0L; // Use CustomResourceValidation.newBuilder() to construct. private CustomResourceValidation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CustomResourceValidation() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CustomResourceValidation( 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.V1beta1Apiextensions.JSONSchemaProps.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = openAPIV3Schema_.toBuilder(); } openAPIV3Schema_ = input.readMessage( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(openAPIV3Schema_); openAPIV3Schema_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; 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_CustomResourceValidation_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_CustomResourceValidation_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation.class, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation.Builder .class); } private int bitField0_; public static final int OPENAPIV3SCHEMA_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps openAPIV3Schema_; /** * * *
     * openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps openAPIV3Schema = 1; * */ public boolean hasOpenAPIV3Schema() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps openAPIV3Schema = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getOpenAPIV3Schema() { return openAPIV3Schema_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.getDefaultInstance() : openAPIV3Schema_; } /** * * *
     * openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps openAPIV3Schema = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder getOpenAPIV3SchemaOrBuilder() { return openAPIV3Schema_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.getDefaultInstance() : openAPIV3Schema_; } 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, getOpenAPIV3Schema()); } 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, getOpenAPIV3Schema()); } 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.CustomResourceValidation)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation other = (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation) obj; boolean result = true; result = result && (hasOpenAPIV3Schema() == other.hasOpenAPIV3Schema()); if (hasOpenAPIV3Schema()) { result = result && getOpenAPIV3Schema().equals(other.getOpenAPIV3Schema()); } 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 (hasOpenAPIV3Schema()) { hash = (37 * hash) + OPENAPIV3SCHEMA_FIELD_NUMBER; hash = (53 * hash) + getOpenAPIV3Schema().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation 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.CustomResourceValidation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation 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.CustomResourceValidation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation 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.CustomResourceValidation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation 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.CustomResourceValidation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation 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.CustomResourceValidation 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.CustomResourceValidation 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.CustomResourceValidation 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; } /** * * *
     * CustomResourceValidation is a list of validation methods for CustomResources.
     * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceValidation} */ 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.CustomResourceValidation) io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidationOrBuilder { 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_CustomResourceValidation_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_CustomResourceValidation_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation.class, io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation.Builder .class); } // Construct using // io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getOpenAPIV3SchemaFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (openAPIV3SchemaBuilder_ == null) { openAPIV3Schema_ = null; } else { openAPIV3SchemaBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); 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_CustomResourceValidation_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation build() { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation buildPartial() { io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation result = new io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (openAPIV3SchemaBuilder_ == null) { result.openAPIV3Schema_ = openAPIV3Schema_; } else { result.openAPIV3Schema_ = openAPIV3SchemaBuilder_.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.CustomResourceValidation) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation other) { if (other == io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation .getDefaultInstance()) return this; if (other.hasOpenAPIV3Schema()) { mergeOpenAPIV3Schema(other.getOpenAPIV3Schema()); } 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.CustomResourceValidation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps openAPIV3Schema_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder> openAPIV3SchemaBuilder_; /** * * *
       * openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps openAPIV3Schema = 1; * */ public boolean hasOpenAPIV3Schema() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps openAPIV3Schema = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getOpenAPIV3Schema() { if (openAPIV3SchemaBuilder_ == null) { return openAPIV3Schema_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.getDefaultInstance() : openAPIV3Schema_; } else { return openAPIV3SchemaBuilder_.getMessage(); } } /** * * *
       * openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps openAPIV3Schema = 1; * */ public Builder setOpenAPIV3Schema( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps value) { if (openAPIV3SchemaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } openAPIV3Schema_ = value; onChanged(); } else { openAPIV3SchemaBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps openAPIV3Schema = 1; * */ public Builder setOpenAPIV3Schema( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder builderForValue) { if (openAPIV3SchemaBuilder_ == null) { openAPIV3Schema_ = builderForValue.build(); onChanged(); } else { openAPIV3SchemaBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps openAPIV3Schema = 1; * */ public Builder mergeOpenAPIV3Schema( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps value) { if (openAPIV3SchemaBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && openAPIV3Schema_ != null && openAPIV3Schema_ != io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps .getDefaultInstance()) { openAPIV3Schema_ = io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.newBuilder( openAPIV3Schema_) .mergeFrom(value) .buildPartial(); } else { openAPIV3Schema_ = value; } onChanged(); } else { openAPIV3SchemaBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps openAPIV3Schema = 1; * */ public Builder clearOpenAPIV3Schema() { if (openAPIV3SchemaBuilder_ == null) { openAPIV3Schema_ = null; onChanged(); } else { openAPIV3SchemaBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps openAPIV3Schema = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder getOpenAPIV3SchemaBuilder() { bitField0_ |= 0x00000001; onChanged(); return getOpenAPIV3SchemaFieldBuilder().getBuilder(); } /** * * *
       * openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps openAPIV3Schema = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder getOpenAPIV3SchemaOrBuilder() { if (openAPIV3SchemaBuilder_ != null) { return openAPIV3SchemaBuilder_.getMessageOrBuilder(); } else { return openAPIV3Schema_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.getDefaultInstance() : openAPIV3Schema_; } } /** * * *
       * openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps openAPIV3Schema = 1; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder> getOpenAPIV3SchemaFieldBuilder() { if (openAPIV3SchemaBuilder_ == null) { openAPIV3SchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder>( getOpenAPIV3Schema(), getParentForChildren(), isClean()); openAPIV3Schema_ = null; } return openAPIV3SchemaBuilder_; } @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.CustomResourceValidation) } // @@protoc_insertion_point(class_scope:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceValidation) private static final io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation(); } public static io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceValidation getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CustomResourceValidation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CustomResourceValidation(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.CustomResourceValidation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExternalDocumentationOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ExternalDocumentation) com.google.protobuf.MessageOrBuilder { /** optional string description = 1; */ boolean hasDescription(); /** optional string description = 1; */ java.lang.String getDescription(); /** optional string description = 1; */ com.google.protobuf.ByteString getDescriptionBytes(); /** optional string url = 2; */ boolean hasUrl(); /** optional string url = 2; */ java.lang.String getUrl(); /** optional string url = 2; */ com.google.protobuf.ByteString getUrlBytes(); } /** * * *
   * ExternalDocumentation allows referencing an external resource for extended documentation.
   * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ExternalDocumentation} */ public static final class ExternalDocumentation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ExternalDocumentation) ExternalDocumentationOrBuilder { private static final long serialVersionUID = 0L; // Use ExternalDocumentation.newBuilder() to construct. private ExternalDocumentation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExternalDocumentation() { description_ = ""; url_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ExternalDocumentation( 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; description_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; url_ = 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_ExternalDocumentation_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_ExternalDocumentation_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation.class, io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation.Builder.class); } private int bitField0_; public static final int DESCRIPTION_FIELD_NUMBER = 1; private volatile java.lang.Object description_; /** optional string description = 1; */ public boolean hasDescription() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** optional string description = 1; */ public java.lang.String getDescription() { java.lang.Object ref = description_; 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()) { description_ = s; } return s; } } /** optional string description = 1; */ 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 URL_FIELD_NUMBER = 2; private volatile java.lang.Object url_; /** optional string url = 2; */ public boolean hasUrl() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** optional string url = 2; */ public java.lang.String getUrl() { java.lang.Object ref = url_; 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()) { url_ = s; } return s; } } /** optional string url = 2; */ public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = 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, description_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, url_); } 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, description_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, url_); } 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.ExternalDocumentation)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation other = (io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation) obj; boolean result = true; result = result && (hasDescription() == other.hasDescription()); if (hasDescription()) { result = result && getDescription().equals(other.getDescription()); } result = result && (hasUrl() == other.hasUrl()); if (hasUrl()) { result = result && getUrl().equals(other.getUrl()); } 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 (hasDescription()) { hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); } if (hasUrl()) { hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation 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.ExternalDocumentation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation 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.ExternalDocumentation parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation 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.ExternalDocumentation parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation 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.ExternalDocumentation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation 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.ExternalDocumentation 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.ExternalDocumentation 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.ExternalDocumentation 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; } /** * * *
     * ExternalDocumentation allows referencing an external resource for extended documentation.
     * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ExternalDocumentation} */ 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.ExternalDocumentation) io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentationOrBuilder { 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_ExternalDocumentation_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_ExternalDocumentation_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation.class, io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation.Builder .class); } // Construct using // io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation.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(); description_ = ""; bitField0_ = (bitField0_ & ~0x00000001); url_ = ""; 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_ExternalDocumentation_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation build() { io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation buildPartial() { io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation result = new io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.description_ = description_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.url_ = url_; 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.ExternalDocumentation) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation other) { if (other == io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation .getDefaultInstance()) return this; if (other.hasDescription()) { bitField0_ |= 0x00000001; description_ = other.description_; onChanged(); } if (other.hasUrl()) { bitField0_ |= 0x00000002; url_ = other.url_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object description_ = ""; /** optional string description = 1; */ public boolean hasDescription() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** optional string description = 1; */ public java.lang.String getDescription() { java.lang.Object ref = description_; 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()) { description_ = s; } return s; } else { return (java.lang.String) ref; } } /** optional string description = 1; */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof 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; } } /** optional string description = 1; */ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; description_ = value; onChanged(); return this; } /** optional string description = 1; */ public Builder clearDescription() { bitField0_ = (bitField0_ & ~0x00000001); description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** optional string description = 1; */ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; description_ = value; onChanged(); return this; } private java.lang.Object url_ = ""; /** optional string url = 2; */ public boolean hasUrl() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** optional string url = 2; */ public java.lang.String getUrl() { java.lang.Object ref = url_; 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()) { url_ = s; } return s; } else { return (java.lang.String) ref; } } /** optional string url = 2; */ public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** optional string url = 2; */ public Builder setUrl(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; url_ = value; onChanged(); return this; } /** optional string url = 2; */ public Builder clearUrl() { bitField0_ = (bitField0_ & ~0x00000002); url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** optional string url = 2; */ public Builder setUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; url_ = 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.ExternalDocumentation) } // @@protoc_insertion_point(class_scope:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ExternalDocumentation) private static final io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation(); } public static io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExternalDocumentation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ExternalDocumentation(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.ExternalDocumentation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface JSONOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON) com.google.protobuf.MessageOrBuilder { /** optional bytes raw = 1; */ boolean hasRaw(); /** optional bytes raw = 1; */ com.google.protobuf.ByteString getRaw(); } /** * * *
   * JSON represents any valid JSON value.
   * These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.
   * 
* * Protobuf type {@code k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON} */ public static final class JSON extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON) JSONOrBuilder { private static final long serialVersionUID = 0L; // Use JSON.newBuilder() to construct. private JSON(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private JSON() { raw_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private JSON( 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: { bitField0_ |= 0x00000001; raw_ = input.readBytes(); 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_JSON_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_JSON_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.JSON.class, io.kubernetes.client.proto.V1beta1Apiextensions.JSON.Builder.class); } private int bitField0_; public static final int RAW_FIELD_NUMBER = 1; private com.google.protobuf.ByteString raw_; /** optional bytes raw = 1; */ public boolean hasRaw() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** optional bytes raw = 1; */ public com.google.protobuf.ByteString getRaw() { return raw_; } 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.writeBytes(1, raw_); } 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.computeBytesSize(1, raw_); } 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.JSON)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Apiextensions.JSON other = (io.kubernetes.client.proto.V1beta1Apiextensions.JSON) obj; boolean result = true; result = result && (hasRaw() == other.hasRaw()); if (hasRaw()) { result = result && getRaw().equals(other.getRaw()); } 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 (hasRaw()) { hash = (37 * hash) + RAW_FIELD_NUMBER; hash = (53 * hash) + getRaw().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Apiextensions.JSON parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.JSON 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.JSON parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.JSON 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.JSON parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.JSON 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.JSON parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Apiextensions.JSON 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.JSON parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Apiextensions.JSON 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.JSON 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.JSON 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.JSON 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; } /** * * *
     * JSON represents any valid JSON value.
     * These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.
     * 
* * Protobuf type {@code k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON} */ 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.JSON) io.kubernetes.client.proto.V1beta1Apiextensions.JSONOrBuilder { 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_JSON_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_JSON_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.JSON.class, io.kubernetes.client.proto.V1beta1Apiextensions.JSON.Builder.class); } // Construct using io.kubernetes.client.proto.V1beta1Apiextensions.JSON.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(); raw_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); 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_JSON_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.JSON getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Apiextensions.JSON.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.JSON build() { io.kubernetes.client.proto.V1beta1Apiextensions.JSON result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.JSON buildPartial() { io.kubernetes.client.proto.V1beta1Apiextensions.JSON result = new io.kubernetes.client.proto.V1beta1Apiextensions.JSON(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.raw_ = raw_; 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.JSON) { return mergeFrom((io.kubernetes.client.proto.V1beta1Apiextensions.JSON) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Apiextensions.JSON other) { if (other == io.kubernetes.client.proto.V1beta1Apiextensions.JSON.getDefaultInstance()) return this; if (other.hasRaw()) { setRaw(other.getRaw()); } 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.JSON parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Apiextensions.JSON) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString raw_ = com.google.protobuf.ByteString.EMPTY; /** optional bytes raw = 1; */ public boolean hasRaw() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** optional bytes raw = 1; */ public com.google.protobuf.ByteString getRaw() { return raw_; } /** optional bytes raw = 1; */ public Builder setRaw(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; raw_ = value; onChanged(); return this; } /** optional bytes raw = 1; */ public Builder clearRaw() { bitField0_ = (bitField0_ & ~0x00000001); raw_ = getDefaultInstance().getRaw(); 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.JSON) } // @@protoc_insertion_point(class_scope:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON) private static final io.kubernetes.client.proto.V1beta1Apiextensions.JSON DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Apiextensions.JSON(); } public static io.kubernetes.client.proto.V1beta1Apiextensions.JSON getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public JSON parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new JSON(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.JSON getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface JSONSchemaPropsOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps) com.google.protobuf.MessageOrBuilder { /** optional string id = 1; */ boolean hasId(); /** optional string id = 1; */ java.lang.String getId(); /** optional string id = 1; */ com.google.protobuf.ByteString getIdBytes(); /** optional string schema = 2; */ boolean hasSchema(); /** optional string schema = 2; */ java.lang.String getSchema(); /** optional string schema = 2; */ com.google.protobuf.ByteString getSchemaBytes(); /** optional string ref = 3; */ boolean hasRef(); /** optional string ref = 3; */ java.lang.String getRef(); /** optional string ref = 3; */ com.google.protobuf.ByteString getRefBytes(); /** optional string description = 4; */ boolean hasDescription(); /** optional string description = 4; */ java.lang.String getDescription(); /** optional string description = 4; */ com.google.protobuf.ByteString getDescriptionBytes(); /** optional string type = 5; */ boolean hasType(); /** optional string type = 5; */ java.lang.String getType(); /** optional string type = 5; */ com.google.protobuf.ByteString getTypeBytes(); /** * * *
     * format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated:
     * - bsonobjectid: a bson object ID, i.e. a 24 characters hex string
     * - uri: an URI as parsed by Golang net/url.ParseRequestURI
     * - email: an email address as parsed by Golang net/mail.ParseAddress
     * - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034].
     * - ipv4: an IPv4 IP as parsed by Golang net.ParseIP
     * - ipv6: an IPv6 IP as parsed by Golang net.ParseIP
     * - cidr: a CIDR as parsed by Golang net.ParseCIDR
     * - mac: a MAC address as parsed by Golang net.ParseMAC
     * - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$
     * - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$
     * - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$
     * - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$
     * - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041"
     * - isbn10: an ISBN10 number string like "0321751043"
     * - isbn13: an ISBN13 number string like "978-0321751041"
     * - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\\d{3})\\d{11})$ with any non digit characters mixed in
     * - ssn: a U.S. social security number following the regex ^\\d{3}[- ]?\\d{2}[- ]?\\d{4}$
     * - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
     * - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559"
     * - byte: base64 encoded binary data
     * - password: any kind of string
     * - date: a date string like "2006-01-02" as defined by full-date in RFC3339
     * - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format
     * - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339.
     * 
* * optional string format = 6; */ boolean hasFormat(); /** * * *
     * format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated:
     * - bsonobjectid: a bson object ID, i.e. a 24 characters hex string
     * - uri: an URI as parsed by Golang net/url.ParseRequestURI
     * - email: an email address as parsed by Golang net/mail.ParseAddress
     * - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034].
     * - ipv4: an IPv4 IP as parsed by Golang net.ParseIP
     * - ipv6: an IPv6 IP as parsed by Golang net.ParseIP
     * - cidr: a CIDR as parsed by Golang net.ParseCIDR
     * - mac: a MAC address as parsed by Golang net.ParseMAC
     * - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$
     * - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$
     * - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$
     * - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$
     * - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041"
     * - isbn10: an ISBN10 number string like "0321751043"
     * - isbn13: an ISBN13 number string like "978-0321751041"
     * - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\\d{3})\\d{11})$ with any non digit characters mixed in
     * - ssn: a U.S. social security number following the regex ^\\d{3}[- ]?\\d{2}[- ]?\\d{4}$
     * - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
     * - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559"
     * - byte: base64 encoded binary data
     * - password: any kind of string
     * - date: a date string like "2006-01-02" as defined by full-date in RFC3339
     * - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format
     * - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339.
     * 
* * optional string format = 6; */ java.lang.String getFormat(); /** * * *
     * format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated:
     * - bsonobjectid: a bson object ID, i.e. a 24 characters hex string
     * - uri: an URI as parsed by Golang net/url.ParseRequestURI
     * - email: an email address as parsed by Golang net/mail.ParseAddress
     * - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034].
     * - ipv4: an IPv4 IP as parsed by Golang net.ParseIP
     * - ipv6: an IPv6 IP as parsed by Golang net.ParseIP
     * - cidr: a CIDR as parsed by Golang net.ParseCIDR
     * - mac: a MAC address as parsed by Golang net.ParseMAC
     * - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$
     * - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$
     * - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$
     * - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$
     * - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041"
     * - isbn10: an ISBN10 number string like "0321751043"
     * - isbn13: an ISBN13 number string like "978-0321751041"
     * - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\\d{3})\\d{11})$ with any non digit characters mixed in
     * - ssn: a U.S. social security number following the regex ^\\d{3}[- ]?\\d{2}[- ]?\\d{4}$
     * - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
     * - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559"
     * - byte: base64 encoded binary data
     * - password: any kind of string
     * - date: a date string like "2006-01-02" as defined by full-date in RFC3339
     * - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format
     * - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339.
     * 
* * optional string format = 6; */ com.google.protobuf.ByteString getFormatBytes(); /** optional string title = 7; */ boolean hasTitle(); /** optional string title = 7; */ java.lang.String getTitle(); /** optional string title = 7; */ com.google.protobuf.ByteString getTitleBytes(); /** * * *
     * default is a default value for undefined object fields.
     * Defaulting is a beta feature under the CustomResourceDefaulting feature gate.
     * CustomResourceDefinitions with defaults must be created using the v1 (or newer) CustomResourceDefinition API.
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON default = 8; * */ boolean hasDefault(); /** * * *
     * default is a default value for undefined object fields.
     * Defaulting is a beta feature under the CustomResourceDefaulting feature gate.
     * CustomResourceDefinitions with defaults must be created using the v1 (or newer) CustomResourceDefinition API.
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON default = 8; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSON getDefault(); /** * * *
     * default is a default value for undefined object fields.
     * Defaulting is a beta feature under the CustomResourceDefaulting feature gate.
     * CustomResourceDefinitions with defaults must be created using the v1 (or newer) CustomResourceDefinition API.
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON default = 8; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSONOrBuilder getDefaultOrBuilder(); /** optional double maximum = 9; */ boolean hasMaximum(); /** optional double maximum = 9; */ double getMaximum(); /** optional bool exclusiveMaximum = 10; */ boolean hasExclusiveMaximum(); /** optional bool exclusiveMaximum = 10; */ boolean getExclusiveMaximum(); /** optional double minimum = 11; */ boolean hasMinimum(); /** optional double minimum = 11; */ double getMinimum(); /** optional bool exclusiveMinimum = 12; */ boolean hasExclusiveMinimum(); /** optional bool exclusiveMinimum = 12; */ boolean getExclusiveMinimum(); /** optional int64 maxLength = 13; */ boolean hasMaxLength(); /** optional int64 maxLength = 13; */ long getMaxLength(); /** optional int64 minLength = 14; */ boolean hasMinLength(); /** optional int64 minLength = 14; */ long getMinLength(); /** optional string pattern = 15; */ boolean hasPattern(); /** optional string pattern = 15; */ java.lang.String getPattern(); /** optional string pattern = 15; */ com.google.protobuf.ByteString getPatternBytes(); /** optional int64 maxItems = 16; */ boolean hasMaxItems(); /** optional int64 maxItems = 16; */ long getMaxItems(); /** optional int64 minItems = 17; */ boolean hasMinItems(); /** optional int64 minItems = 17; */ long getMinItems(); /** optional bool uniqueItems = 18; */ boolean hasUniqueItems(); /** optional bool uniqueItems = 18; */ boolean getUniqueItems(); /** optional double multipleOf = 19; */ boolean hasMultipleOf(); /** optional double multipleOf = 19; */ double getMultipleOf(); /** * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON enum = 20; * */ java.util.List getEnumList(); /** * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON enum = 20; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSON getEnum(int index); /** * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON enum = 20; * */ int getEnumCount(); /** * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON enum = 20; * */ java.util.List getEnumOrBuilderList(); /** * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON enum = 20; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSONOrBuilder getEnumOrBuilder(int index); /** optional int64 maxProperties = 21; */ boolean hasMaxProperties(); /** optional int64 maxProperties = 21; */ long getMaxProperties(); /** optional int64 minProperties = 22; */ boolean hasMinProperties(); /** optional int64 minProperties = 22; */ long getMinProperties(); /** repeated string required = 23; */ java.util.List getRequiredList(); /** repeated string required = 23; */ int getRequiredCount(); /** repeated string required = 23; */ java.lang.String getRequired(int index); /** repeated string required = 23; */ com.google.protobuf.ByteString getRequiredBytes(int index); /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrArray items = 24; * */ boolean hasItems(); /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrArray items = 24; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray getItems(); /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrArray items = 24; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArrayOrBuilder getItemsOrBuilder(); /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps allOf = 25; * */ java.util.List getAllOfList(); /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps allOf = 25; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getAllOf(int index); /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps allOf = 25; * */ int getAllOfCount(); /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps allOf = 25; * */ java.util.List< ? extends io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder> getAllOfOrBuilderList(); /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps allOf = 25; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder getAllOfOrBuilder( int index); /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps oneOf = 26; * */ java.util.List getOneOfList(); /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps oneOf = 26; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getOneOf(int index); /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps oneOf = 26; * */ int getOneOfCount(); /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps oneOf = 26; * */ java.util.List< ? extends io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder> getOneOfOrBuilderList(); /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps oneOf = 26; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder getOneOfOrBuilder( int index); /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps anyOf = 27; * */ java.util.List getAnyOfList(); /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps anyOf = 27; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getAnyOf(int index); /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps anyOf = 27; * */ int getAnyOfCount(); /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps anyOf = 27; * */ java.util.List< ? extends io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder> getAnyOfOrBuilderList(); /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps anyOf = 27; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder getAnyOfOrBuilder( int index); /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps not = 28; * */ boolean hasNot(); /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps not = 28; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getNot(); /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps not = 28; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder getNotOrBuilder(); /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> properties = 29; * */ int getPropertiesCount(); /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> properties = 29; * */ boolean containsProperties(java.lang.String key); /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Deprecated java.util.Map getProperties(); /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> properties = 29; * */ java.util.Map getPropertiesMap(); /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> properties = 29; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getPropertiesOrDefault( java.lang.String key, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps defaultValue); /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> properties = 29; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getPropertiesOrThrow( java.lang.String key); /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool additionalProperties = 30; * */ boolean hasAdditionalProperties(); /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool additionalProperties = 30; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool getAdditionalProperties(); /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool additionalProperties = 30; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBoolOrBuilder getAdditionalPropertiesOrBuilder(); /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> patternProperties = 31; * */ int getPatternPropertiesCount(); /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> patternProperties = 31; * */ boolean containsPatternProperties(java.lang.String key); /** Use {@link #getPatternPropertiesMap()} instead. */ @java.lang.Deprecated java.util.Map getPatternProperties(); /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> patternProperties = 31; * */ java.util.Map getPatternPropertiesMap(); /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> patternProperties = 31; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getPatternPropertiesOrDefault( java.lang.String key, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps defaultValue); /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> patternProperties = 31; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getPatternPropertiesOrThrow( java.lang.String key); /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrStringArray> dependencies = 32; * */ int getDependenciesCount(); /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrStringArray> dependencies = 32; * */ boolean containsDependencies(java.lang.String key); /** Use {@link #getDependenciesMap()} instead. */ @java.lang.Deprecated java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray> getDependencies(); /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrStringArray> dependencies = 32; * */ java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray> getDependenciesMap(); /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrStringArray> dependencies = 32; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray getDependenciesOrDefault( java.lang.String key, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray defaultValue); /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrStringArray> dependencies = 32; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray getDependenciesOrThrow(java.lang.String key); /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool additionalItems = 33; * */ boolean hasAdditionalItems(); /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool additionalItems = 33; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool getAdditionalItems(); /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool additionalItems = 33; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBoolOrBuilder getAdditionalItemsOrBuilder(); /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> definitions = 34; * */ int getDefinitionsCount(); /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> definitions = 34; * */ boolean containsDefinitions(java.lang.String key); /** Use {@link #getDefinitionsMap()} instead. */ @java.lang.Deprecated java.util.Map getDefinitions(); /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> definitions = 34; * */ java.util.Map getDefinitionsMap(); /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> definitions = 34; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getDefinitionsOrDefault( java.lang.String key, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps defaultValue); /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> definitions = 34; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getDefinitionsOrThrow( java.lang.String key); /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ExternalDocumentation externalDocs = 35; * */ boolean hasExternalDocs(); /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ExternalDocumentation externalDocs = 35; * */ io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation getExternalDocs(); /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ExternalDocumentation externalDocs = 35; * */ io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentationOrBuilder getExternalDocsOrBuilder(); /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON example = 36; * */ boolean hasExample(); /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON example = 36; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSON getExample(); /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON example = 36; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSONOrBuilder getExampleOrBuilder(); /** optional bool nullable = 37; */ boolean hasNullable(); /** optional bool nullable = 37; */ boolean getNullable(); /** * * *
     * x-kubernetes-preserve-unknown-fields stops the API server
     * decoding step from pruning fields which are not specified
     * in the validation schema. This affects fields recursively,
     * but switches back to normal pruning behaviour if nested
     * properties or additionalProperties are specified in the schema.
     * This can either be true or undefined. False is forbidden.
     * 
* * optional bool xKubernetesPreserveUnknownFields = 38; */ boolean hasXKubernetesPreserveUnknownFields(); /** * * *
     * x-kubernetes-preserve-unknown-fields stops the API server
     * decoding step from pruning fields which are not specified
     * in the validation schema. This affects fields recursively,
     * but switches back to normal pruning behaviour if nested
     * properties or additionalProperties are specified in the schema.
     * This can either be true or undefined. False is forbidden.
     * 
* * optional bool xKubernetesPreserveUnknownFields = 38; */ boolean getXKubernetesPreserveUnknownFields(); /** * * *
     * x-kubernetes-embedded-resource defines that the value is an
     * embedded Kubernetes runtime.Object, with TypeMeta and
     * ObjectMeta. The type must be object. It is allowed to further
     * restrict the embedded object. kind, apiVersion and metadata
     * are validated automatically. x-kubernetes-preserve-unknown-fields
     * is allowed to be true, but does not have to be if the object
     * is fully specified (up to kind, apiVersion, metadata).
     * 
* * optional bool xKubernetesEmbeddedResource = 39; */ boolean hasXKubernetesEmbeddedResource(); /** * * *
     * x-kubernetes-embedded-resource defines that the value is an
     * embedded Kubernetes runtime.Object, with TypeMeta and
     * ObjectMeta. The type must be object. It is allowed to further
     * restrict the embedded object. kind, apiVersion and metadata
     * are validated automatically. x-kubernetes-preserve-unknown-fields
     * is allowed to be true, but does not have to be if the object
     * is fully specified (up to kind, apiVersion, metadata).
     * 
* * optional bool xKubernetesEmbeddedResource = 39; */ boolean getXKubernetesEmbeddedResource(); /** * * *
     * x-kubernetes-int-or-string specifies that this value is
     * either an integer or a string. If this is true, an empty
     * type is allowed and type as child of anyOf is permitted
     * if following one of the following patterns:
     * 1) anyOf:
     *    - type: integer
     *    - type: string
     * 2) allOf:
     *    - anyOf:
     *      - type: integer
     *      - type: string
     *    - ... zero or more
     * 
* * optional bool xKubernetesIntOrString = 40; */ boolean hasXKubernetesIntOrString(); /** * * *
     * x-kubernetes-int-or-string specifies that this value is
     * either an integer or a string. If this is true, an empty
     * type is allowed and type as child of anyOf is permitted
     * if following one of the following patterns:
     * 1) anyOf:
     *    - type: integer
     *    - type: string
     * 2) allOf:
     *    - anyOf:
     *      - type: integer
     *      - type: string
     *    - ... zero or more
     * 
* * optional bool xKubernetesIntOrString = 40; */ boolean getXKubernetesIntOrString(); /** * * *
     * x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used
     * as the index of the map.
     * This tag MUST only be used on lists that have the "x-kubernetes-list-type"
     * extension set to "map". Also, the values specified for this attribute must
     * be a scalar typed field of the child structure (no nesting is supported).
     * The properties specified must either be required or have a default value,
     * to ensure those properties are present for all list items.
     * +optional
     * 
* * repeated string xKubernetesListMapKeys = 41; */ java.util.List getXKubernetesListMapKeysList(); /** * * *
     * x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used
     * as the index of the map.
     * This tag MUST only be used on lists that have the "x-kubernetes-list-type"
     * extension set to "map". Also, the values specified for this attribute must
     * be a scalar typed field of the child structure (no nesting is supported).
     * The properties specified must either be required or have a default value,
     * to ensure those properties are present for all list items.
     * +optional
     * 
* * repeated string xKubernetesListMapKeys = 41; */ int getXKubernetesListMapKeysCount(); /** * * *
     * x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used
     * as the index of the map.
     * This tag MUST only be used on lists that have the "x-kubernetes-list-type"
     * extension set to "map". Also, the values specified for this attribute must
     * be a scalar typed field of the child structure (no nesting is supported).
     * The properties specified must either be required or have a default value,
     * to ensure those properties are present for all list items.
     * +optional
     * 
* * repeated string xKubernetesListMapKeys = 41; */ java.lang.String getXKubernetesListMapKeys(int index); /** * * *
     * x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used
     * as the index of the map.
     * This tag MUST only be used on lists that have the "x-kubernetes-list-type"
     * extension set to "map". Also, the values specified for this attribute must
     * be a scalar typed field of the child structure (no nesting is supported).
     * The properties specified must either be required or have a default value,
     * to ensure those properties are present for all list items.
     * +optional
     * 
* * repeated string xKubernetesListMapKeys = 41; */ com.google.protobuf.ByteString getXKubernetesListMapKeysBytes(int index); /** * * *
     * x-kubernetes-list-type annotates an array to further describe its topology.
     * This extension must only be used on lists and may have 3 possible values:
     * 1) `atomic`: the list is treated as a single entity, like a scalar.
     *      Atomic lists will be entirely replaced when updated. This extension
     *      may be used on any type of list (struct, scalar, ...).
     * 2) `set`:
     *      Sets are lists that must not have multiple items with the same value. Each
     *      value must be a scalar, an object with x-kubernetes-map-type `atomic` or an
     *      array with x-kubernetes-list-type `atomic`.
     * 3) `map`:
     *      These lists are like maps in that their elements have a non-index key
     *      used to identify them. Order is preserved upon merge. The map tag
     *      must only be used on a list with elements of type object.
     * Defaults to atomic for arrays.
     * +optional
     * 
* * optional string xKubernetesListType = 42; */ boolean hasXKubernetesListType(); /** * * *
     * x-kubernetes-list-type annotates an array to further describe its topology.
     * This extension must only be used on lists and may have 3 possible values:
     * 1) `atomic`: the list is treated as a single entity, like a scalar.
     *      Atomic lists will be entirely replaced when updated. This extension
     *      may be used on any type of list (struct, scalar, ...).
     * 2) `set`:
     *      Sets are lists that must not have multiple items with the same value. Each
     *      value must be a scalar, an object with x-kubernetes-map-type `atomic` or an
     *      array with x-kubernetes-list-type `atomic`.
     * 3) `map`:
     *      These lists are like maps in that their elements have a non-index key
     *      used to identify them. Order is preserved upon merge. The map tag
     *      must only be used on a list with elements of type object.
     * Defaults to atomic for arrays.
     * +optional
     * 
* * optional string xKubernetesListType = 42; */ java.lang.String getXKubernetesListType(); /** * * *
     * x-kubernetes-list-type annotates an array to further describe its topology.
     * This extension must only be used on lists and may have 3 possible values:
     * 1) `atomic`: the list is treated as a single entity, like a scalar.
     *      Atomic lists will be entirely replaced when updated. This extension
     *      may be used on any type of list (struct, scalar, ...).
     * 2) `set`:
     *      Sets are lists that must not have multiple items with the same value. Each
     *      value must be a scalar, an object with x-kubernetes-map-type `atomic` or an
     *      array with x-kubernetes-list-type `atomic`.
     * 3) `map`:
     *      These lists are like maps in that their elements have a non-index key
     *      used to identify them. Order is preserved upon merge. The map tag
     *      must only be used on a list with elements of type object.
     * Defaults to atomic for arrays.
     * +optional
     * 
* * optional string xKubernetesListType = 42; */ com.google.protobuf.ByteString getXKubernetesListTypeBytes(); /** * * *
     * x-kubernetes-map-type annotates an object to further describe its topology.
     * This extension must only be used when type is object and may have 2 possible values:
     * 1) `granular`:
     *      These maps are actual maps (key-value pairs) and each fields are independent
     *      from each other (they can each be manipulated by separate actors). This is
     *      the default behaviour for all maps.
     * 2) `atomic`: the list is treated as a single entity, like a scalar.
     *      Atomic maps will be entirely replaced when updated.
     * +optional
     * 
* * optional string xKubernetesMapType = 43; */ boolean hasXKubernetesMapType(); /** * * *
     * x-kubernetes-map-type annotates an object to further describe its topology.
     * This extension must only be used when type is object and may have 2 possible values:
     * 1) `granular`:
     *      These maps are actual maps (key-value pairs) and each fields are independent
     *      from each other (they can each be manipulated by separate actors). This is
     *      the default behaviour for all maps.
     * 2) `atomic`: the list is treated as a single entity, like a scalar.
     *      Atomic maps will be entirely replaced when updated.
     * +optional
     * 
* * optional string xKubernetesMapType = 43; */ java.lang.String getXKubernetesMapType(); /** * * *
     * x-kubernetes-map-type annotates an object to further describe its topology.
     * This extension must only be used when type is object and may have 2 possible values:
     * 1) `granular`:
     *      These maps are actual maps (key-value pairs) and each fields are independent
     *      from each other (they can each be manipulated by separate actors). This is
     *      the default behaviour for all maps.
     * 2) `atomic`: the list is treated as a single entity, like a scalar.
     *      Atomic maps will be entirely replaced when updated.
     * +optional
     * 
* * optional string xKubernetesMapType = 43; */ com.google.protobuf.ByteString getXKubernetesMapTypeBytes(); } /** * * *
   * JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/).
   * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps} */ public static final class JSONSchemaProps extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps) JSONSchemaPropsOrBuilder { private static final long serialVersionUID = 0L; // Use JSONSchemaProps.newBuilder() to construct. private JSONSchemaProps(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private JSONSchemaProps() { id_ = ""; schema_ = ""; ref_ = ""; description_ = ""; type_ = ""; format_ = ""; title_ = ""; maximum_ = 0D; exclusiveMaximum_ = false; minimum_ = 0D; exclusiveMinimum_ = false; maxLength_ = 0L; minLength_ = 0L; pattern_ = ""; maxItems_ = 0L; minItems_ = 0L; uniqueItems_ = false; multipleOf_ = 0D; enum_ = java.util.Collections.emptyList(); maxProperties_ = 0L; minProperties_ = 0L; required_ = com.google.protobuf.LazyStringArrayList.EMPTY; allOf_ = java.util.Collections.emptyList(); oneOf_ = java.util.Collections.emptyList(); anyOf_ = java.util.Collections.emptyList(); nullable_ = false; xKubernetesPreserveUnknownFields_ = false; xKubernetesEmbeddedResource_ = false; xKubernetesIntOrString_ = false; xKubernetesListMapKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; xKubernetesListType_ = ""; xKubernetesMapType_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private JSONSchemaProps( 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; int mutable_bitField1_ = 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; id_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; schema_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; ref_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; description_ = bs; break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; type_ = bs; break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; format_ = bs; break; } case 58: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000040; title_ = bs; break; } case 66: { io.kubernetes.client.proto.V1beta1Apiextensions.JSON.Builder subBuilder = null; if (((bitField0_ & 0x00000080) == 0x00000080)) { subBuilder = default_.toBuilder(); } default_ = input.readMessage( io.kubernetes.client.proto.V1beta1Apiextensions.JSON.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(default_); default_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000080; break; } case 73: { bitField0_ |= 0x00000100; maximum_ = input.readDouble(); break; } case 80: { bitField0_ |= 0x00000200; exclusiveMaximum_ = input.readBool(); break; } case 89: { bitField0_ |= 0x00000400; minimum_ = input.readDouble(); break; } case 96: { bitField0_ |= 0x00000800; exclusiveMinimum_ = input.readBool(); break; } case 104: { bitField0_ |= 0x00001000; maxLength_ = input.readInt64(); break; } case 112: { bitField0_ |= 0x00002000; minLength_ = input.readInt64(); break; } case 122: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00004000; pattern_ = bs; break; } case 128: { bitField0_ |= 0x00008000; maxItems_ = input.readInt64(); break; } case 136: { bitField0_ |= 0x00010000; minItems_ = input.readInt64(); break; } case 144: { bitField0_ |= 0x00020000; uniqueItems_ = input.readBool(); break; } case 153: { bitField0_ |= 0x00040000; multipleOf_ = input.readDouble(); break; } case 162: { if (!((mutable_bitField0_ & 0x00080000) == 0x00080000)) { enum_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Apiextensions.JSON>(); mutable_bitField0_ |= 0x00080000; } enum_.add( input.readMessage( io.kubernetes.client.proto.V1beta1Apiextensions.JSON.PARSER, extensionRegistry)); break; } case 168: { bitField0_ |= 0x00080000; maxProperties_ = input.readInt64(); break; } case 176: { bitField0_ |= 0x00100000; minProperties_ = input.readInt64(); break; } case 186: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00400000) == 0x00400000)) { required_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00400000; } required_.add(bs); break; } case 194: { io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray.Builder subBuilder = null; if (((bitField0_ & 0x00200000) == 0x00200000)) { subBuilder = items_.toBuilder(); } items_ = input.readMessage( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray .PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(items_); items_ = subBuilder.buildPartial(); } bitField0_ |= 0x00200000; break; } case 202: { if (!((mutable_bitField0_ & 0x01000000) == 0x01000000)) { allOf_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps>(); mutable_bitField0_ |= 0x01000000; } allOf_.add( input.readMessage( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.PARSER, extensionRegistry)); break; } case 210: { if (!((mutable_bitField0_ & 0x02000000) == 0x02000000)) { oneOf_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps>(); mutable_bitField0_ |= 0x02000000; } oneOf_.add( input.readMessage( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.PARSER, extensionRegistry)); break; } case 218: { if (!((mutable_bitField0_ & 0x04000000) == 0x04000000)) { anyOf_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps>(); mutable_bitField0_ |= 0x04000000; } anyOf_.add( input.readMessage( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.PARSER, extensionRegistry)); break; } case 226: { io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder subBuilder = null; if (((bitField0_ & 0x00400000) == 0x00400000)) { subBuilder = not_.toBuilder(); } not_ = input.readMessage( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(not_); not_ = subBuilder.buildPartial(); } bitField0_ |= 0x00400000; break; } case 234: { if (!((mutable_bitField0_ & 0x10000000) == 0x10000000)) { properties_ = com.google.protobuf.MapField.newMapField( PropertiesDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x10000000; } com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> properties__ = input.readMessage( PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); properties_.getMutableMap().put(properties__.getKey(), properties__.getValue()); break; } case 242: { io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool.Builder subBuilder = null; if (((bitField0_ & 0x00800000) == 0x00800000)) { subBuilder = additionalProperties_.toBuilder(); } additionalProperties_ = input.readMessage( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool .PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(additionalProperties_); additionalProperties_ = subBuilder.buildPartial(); } bitField0_ |= 0x00800000; break; } case 250: { if (!((mutable_bitField0_ & 0x40000000) == 0x40000000)) { patternProperties_ = com.google.protobuf.MapField.newMapField( PatternPropertiesDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x40000000; } com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> patternProperties__ = input.readMessage( PatternPropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); patternProperties_ .getMutableMap() .put(patternProperties__.getKey(), patternProperties__.getValue()); break; } case 258: { if (!((mutable_bitField0_ & 0x80000000) == 0x80000000)) { dependencies_ = com.google.protobuf.MapField.newMapField( DependenciesDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x80000000; } com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions .JSONSchemaPropsOrStringArray> dependencies__ = input.readMessage( DependenciesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); dependencies_ .getMutableMap() .put(dependencies__.getKey(), dependencies__.getValue()); break; } case 266: { io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool.Builder subBuilder = null; if (((bitField0_ & 0x01000000) == 0x01000000)) { subBuilder = additionalItems_.toBuilder(); } additionalItems_ = input.readMessage( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool .PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(additionalItems_); additionalItems_ = subBuilder.buildPartial(); } bitField0_ |= 0x01000000; break; } case 274: { if (!((mutable_bitField1_ & 0x00000002) == 0x00000002)) { definitions_ = com.google.protobuf.MapField.newMapField( DefinitionsDefaultEntryHolder.defaultEntry); mutable_bitField1_ |= 0x00000002; } com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> definitions__ = input.readMessage( DefinitionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); definitions_.getMutableMap().put(definitions__.getKey(), definitions__.getValue()); break; } case 282: { io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation.Builder subBuilder = null; if (((bitField0_ & 0x02000000) == 0x02000000)) { subBuilder = externalDocs_.toBuilder(); } externalDocs_ = input.readMessage( io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation .PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(externalDocs_); externalDocs_ = subBuilder.buildPartial(); } bitField0_ |= 0x02000000; break; } case 290: { io.kubernetes.client.proto.V1beta1Apiextensions.JSON.Builder subBuilder = null; if (((bitField0_ & 0x04000000) == 0x04000000)) { subBuilder = example_.toBuilder(); } example_ = input.readMessage( io.kubernetes.client.proto.V1beta1Apiextensions.JSON.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(example_); example_ = subBuilder.buildPartial(); } bitField0_ |= 0x04000000; break; } case 296: { bitField0_ |= 0x08000000; nullable_ = input.readBool(); break; } case 304: { bitField0_ |= 0x10000000; xKubernetesPreserveUnknownFields_ = input.readBool(); break; } case 312: { bitField0_ |= 0x20000000; xKubernetesEmbeddedResource_ = input.readBool(); break; } case 320: { bitField0_ |= 0x40000000; xKubernetesIntOrString_ = input.readBool(); break; } case 330: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField1_ & 0x00000100) == 0x00000100)) { xKubernetesListMapKeys_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField1_ |= 0x00000100; } xKubernetesListMapKeys_.add(bs); break; } case 338: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x80000000; xKubernetesListType_ = bs; break; } case 346: { com.google.protobuf.ByteString bs = input.readBytes(); bitField1_ |= 0x00000001; xKubernetesMapType_ = 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_ & 0x00080000) == 0x00080000)) { enum_ = java.util.Collections.unmodifiableList(enum_); } if (((mutable_bitField0_ & 0x00400000) == 0x00400000)) { required_ = required_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x01000000) == 0x01000000)) { allOf_ = java.util.Collections.unmodifiableList(allOf_); } if (((mutable_bitField0_ & 0x02000000) == 0x02000000)) { oneOf_ = java.util.Collections.unmodifiableList(oneOf_); } if (((mutable_bitField0_ & 0x04000000) == 0x04000000)) { anyOf_ = java.util.Collections.unmodifiableList(anyOf_); } if (((mutable_bitField1_ & 0x00000100) == 0x00000100)) { xKubernetesListMapKeys_ = xKubernetesListMapKeys_.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_JSONSchemaProps_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 29: return internalGetProperties(); case 31: return internalGetPatternProperties(); case 32: return internalGetDependencies(); case 34: return internalGetDefinitions(); default: throw new RuntimeException("Invalid map field number: " + number); } } @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_JSONSchemaProps_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.class, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder.class); } private int bitField0_; private int bitField1_; public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** optional string id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** optional string id = 1; */ public java.lang.String getId() { java.lang.Object ref = id_; 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()) { id_ = s; } return s; } } /** optional string id = 1; */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SCHEMA_FIELD_NUMBER = 2; private volatile java.lang.Object schema_; /** optional string schema = 2; */ public boolean hasSchema() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** optional string schema = 2; */ public java.lang.String getSchema() { java.lang.Object ref = schema_; 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()) { schema_ = s; } return s; } } /** optional string schema = 2; */ public com.google.protobuf.ByteString getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schema_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REF_FIELD_NUMBER = 3; private volatile java.lang.Object ref_; /** optional string ref = 3; */ public boolean hasRef() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** optional string ref = 3; */ public java.lang.String getRef() { java.lang.Object ref = ref_; 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()) { ref_ = s; } return s; } } /** optional string ref = 3; */ public com.google.protobuf.ByteString getRefBytes() { java.lang.Object ref = ref_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ref_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 4; private volatile java.lang.Object description_; /** optional string description = 4; */ public boolean hasDescription() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** optional string description = 4; */ public java.lang.String getDescription() { java.lang.Object ref = description_; 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()) { description_ = s; } return s; } } /** 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 TYPE_FIELD_NUMBER = 5; private volatile java.lang.Object type_; /** optional string type = 5; */ public boolean hasType() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** optional string type = 5; */ 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; } } /** optional string type = 5; */ 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 = 6; private volatile java.lang.Object format_; /** * * *
     * format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated:
     * - bsonobjectid: a bson object ID, i.e. a 24 characters hex string
     * - uri: an URI as parsed by Golang net/url.ParseRequestURI
     * - email: an email address as parsed by Golang net/mail.ParseAddress
     * - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034].
     * - ipv4: an IPv4 IP as parsed by Golang net.ParseIP
     * - ipv6: an IPv6 IP as parsed by Golang net.ParseIP
     * - cidr: a CIDR as parsed by Golang net.ParseCIDR
     * - mac: a MAC address as parsed by Golang net.ParseMAC
     * - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$
     * - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$
     * - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$
     * - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$
     * - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041"
     * - isbn10: an ISBN10 number string like "0321751043"
     * - isbn13: an ISBN13 number string like "978-0321751041"
     * - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\\d{3})\\d{11})$ with any non digit characters mixed in
     * - ssn: a U.S. social security number following the regex ^\\d{3}[- ]?\\d{2}[- ]?\\d{4}$
     * - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
     * - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559"
     * - byte: base64 encoded binary data
     * - password: any kind of string
     * - date: a date string like "2006-01-02" as defined by full-date in RFC3339
     * - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format
     * - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339.
     * 
* * optional string format = 6; */ public boolean hasFormat() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated:
     * - bsonobjectid: a bson object ID, i.e. a 24 characters hex string
     * - uri: an URI as parsed by Golang net/url.ParseRequestURI
     * - email: an email address as parsed by Golang net/mail.ParseAddress
     * - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034].
     * - ipv4: an IPv4 IP as parsed by Golang net.ParseIP
     * - ipv6: an IPv6 IP as parsed by Golang net.ParseIP
     * - cidr: a CIDR as parsed by Golang net.ParseCIDR
     * - mac: a MAC address as parsed by Golang net.ParseMAC
     * - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$
     * - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$
     * - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$
     * - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$
     * - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041"
     * - isbn10: an ISBN10 number string like "0321751043"
     * - isbn13: an ISBN13 number string like "978-0321751041"
     * - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\\d{3})\\d{11})$ with any non digit characters mixed in
     * - ssn: a U.S. social security number following the regex ^\\d{3}[- ]?\\d{2}[- ]?\\d{4}$
     * - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
     * - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559"
     * - byte: base64 encoded binary data
     * - password: any kind of string
     * - date: a date string like "2006-01-02" as defined by full-date in RFC3339
     * - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format
     * - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339.
     * 
* * optional string format = 6; */ 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 OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated:
     * - bsonobjectid: a bson object ID, i.e. a 24 characters hex string
     * - uri: an URI as parsed by Golang net/url.ParseRequestURI
     * - email: an email address as parsed by Golang net/mail.ParseAddress
     * - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034].
     * - ipv4: an IPv4 IP as parsed by Golang net.ParseIP
     * - ipv6: an IPv6 IP as parsed by Golang net.ParseIP
     * - cidr: a CIDR as parsed by Golang net.ParseCIDR
     * - mac: a MAC address as parsed by Golang net.ParseMAC
     * - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$
     * - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$
     * - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$
     * - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$
     * - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041"
     * - isbn10: an ISBN10 number string like "0321751043"
     * - isbn13: an ISBN13 number string like "978-0321751041"
     * - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\\d{3})\\d{11})$ with any non digit characters mixed in
     * - ssn: a U.S. social security number following the regex ^\\d{3}[- ]?\\d{2}[- ]?\\d{4}$
     * - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
     * - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559"
     * - byte: base64 encoded binary data
     * - password: any kind of string
     * - date: a date string like "2006-01-02" as defined by full-date in RFC3339
     * - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format
     * - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339.
     * 
* * optional string format = 6; */ 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 TITLE_FIELD_NUMBER = 7; private volatile java.lang.Object title_; /** optional string title = 7; */ public boolean hasTitle() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** optional string title = 7; */ public java.lang.String getTitle() { java.lang.Object ref = title_; 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()) { title_ = s; } return s; } } /** optional string title = 7; */ public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); title_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEFAULT_FIELD_NUMBER = 8; private io.kubernetes.client.proto.V1beta1Apiextensions.JSON default_; /** * * *
     * default is a default value for undefined object fields.
     * Defaulting is a beta feature under the CustomResourceDefaulting feature gate.
     * CustomResourceDefinitions with defaults must be created using the v1 (or newer) CustomResourceDefinition API.
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON default = 8; * */ public boolean hasDefault() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
     * default is a default value for undefined object fields.
     * Defaulting is a beta feature under the CustomResourceDefaulting feature gate.
     * CustomResourceDefinitions with defaults must be created using the v1 (or newer) CustomResourceDefinition API.
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON default = 8; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSON getDefault() { return default_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSON.getDefaultInstance() : default_; } /** * * *
     * default is a default value for undefined object fields.
     * Defaulting is a beta feature under the CustomResourceDefaulting feature gate.
     * CustomResourceDefinitions with defaults must be created using the v1 (or newer) CustomResourceDefinition API.
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON default = 8; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONOrBuilder getDefaultOrBuilder() { return default_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSON.getDefaultInstance() : default_; } public static final int MAXIMUM_FIELD_NUMBER = 9; private double maximum_; /** optional double maximum = 9; */ public boolean hasMaximum() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** optional double maximum = 9; */ public double getMaximum() { return maximum_; } public static final int EXCLUSIVEMAXIMUM_FIELD_NUMBER = 10; private boolean exclusiveMaximum_; /** optional bool exclusiveMaximum = 10; */ public boolean hasExclusiveMaximum() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** optional bool exclusiveMaximum = 10; */ public boolean getExclusiveMaximum() { return exclusiveMaximum_; } public static final int MINIMUM_FIELD_NUMBER = 11; private double minimum_; /** optional double minimum = 11; */ public boolean hasMinimum() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** optional double minimum = 11; */ public double getMinimum() { return minimum_; } public static final int EXCLUSIVEMINIMUM_FIELD_NUMBER = 12; private boolean exclusiveMinimum_; /** optional bool exclusiveMinimum = 12; */ public boolean hasExclusiveMinimum() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** optional bool exclusiveMinimum = 12; */ public boolean getExclusiveMinimum() { return exclusiveMinimum_; } public static final int MAXLENGTH_FIELD_NUMBER = 13; private long maxLength_; /** optional int64 maxLength = 13; */ public boolean hasMaxLength() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** optional int64 maxLength = 13; */ public long getMaxLength() { return maxLength_; } public static final int MINLENGTH_FIELD_NUMBER = 14; private long minLength_; /** optional int64 minLength = 14; */ public boolean hasMinLength() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** optional int64 minLength = 14; */ public long getMinLength() { return minLength_; } public static final int PATTERN_FIELD_NUMBER = 15; private volatile java.lang.Object pattern_; /** optional string pattern = 15; */ public boolean hasPattern() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** optional string pattern = 15; */ public java.lang.String getPattern() { java.lang.Object ref = pattern_; 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()) { pattern_ = s; } return s; } } /** optional string pattern = 15; */ public com.google.protobuf.ByteString getPatternBytes() { java.lang.Object ref = pattern_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pattern_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MAXITEMS_FIELD_NUMBER = 16; private long maxItems_; /** optional int64 maxItems = 16; */ public boolean hasMaxItems() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** optional int64 maxItems = 16; */ public long getMaxItems() { return maxItems_; } public static final int MINITEMS_FIELD_NUMBER = 17; private long minItems_; /** optional int64 minItems = 17; */ public boolean hasMinItems() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** optional int64 minItems = 17; */ public long getMinItems() { return minItems_; } public static final int UNIQUEITEMS_FIELD_NUMBER = 18; private boolean uniqueItems_; /** optional bool uniqueItems = 18; */ public boolean hasUniqueItems() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** optional bool uniqueItems = 18; */ public boolean getUniqueItems() { return uniqueItems_; } public static final int MULTIPLEOF_FIELD_NUMBER = 19; private double multipleOf_; /** optional double multipleOf = 19; */ public boolean hasMultipleOf() { return ((bitField0_ & 0x00040000) == 0x00040000); } /** optional double multipleOf = 19; */ public double getMultipleOf() { return multipleOf_; } public static final int ENUM_FIELD_NUMBER = 20; private java.util.List enum_; /** * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON enum = 20; * */ public java.util.List getEnumList() { return enum_; } /** * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON enum = 20; * */ public java.util.List getEnumOrBuilderList() { return enum_; } /** * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON enum = 20; * */ public int getEnumCount() { return enum_.size(); } /** * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON enum = 20; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSON getEnum(int index) { return enum_.get(index); } /** * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON enum = 20; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONOrBuilder getEnumOrBuilder( int index) { return enum_.get(index); } public static final int MAXPROPERTIES_FIELD_NUMBER = 21; private long maxProperties_; /** optional int64 maxProperties = 21; */ public boolean hasMaxProperties() { return ((bitField0_ & 0x00080000) == 0x00080000); } /** optional int64 maxProperties = 21; */ public long getMaxProperties() { return maxProperties_; } public static final int MINPROPERTIES_FIELD_NUMBER = 22; private long minProperties_; /** optional int64 minProperties = 22; */ public boolean hasMinProperties() { return ((bitField0_ & 0x00100000) == 0x00100000); } /** optional int64 minProperties = 22; */ public long getMinProperties() { return minProperties_; } public static final int REQUIRED_FIELD_NUMBER = 23; private com.google.protobuf.LazyStringList required_; /** repeated string required = 23; */ public com.google.protobuf.ProtocolStringList getRequiredList() { return required_; } /** repeated string required = 23; */ public int getRequiredCount() { return required_.size(); } /** repeated string required = 23; */ public java.lang.String getRequired(int index) { return required_.get(index); } /** repeated string required = 23; */ public com.google.protobuf.ByteString getRequiredBytes(int index) { return required_.getByteString(index); } public static final int ITEMS_FIELD_NUMBER = 24; private io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray items_; /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrArray items = 24; * */ public boolean hasItems() { return ((bitField0_ & 0x00200000) == 0x00200000); } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrArray items = 24; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray getItems() { return items_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray .getDefaultInstance() : items_; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrArray items = 24; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArrayOrBuilder getItemsOrBuilder() { return items_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray .getDefaultInstance() : items_; } public static final int ALLOF_FIELD_NUMBER = 25; private java.util.List allOf_; /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps allOf = 25; * */ public java.util.List getAllOfList() { return allOf_; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps allOf = 25; * */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder> getAllOfOrBuilderList() { return allOf_; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps allOf = 25; * */ public int getAllOfCount() { return allOf_.size(); } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps allOf = 25; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getAllOf(int index) { return allOf_.get(index); } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps allOf = 25; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder getAllOfOrBuilder(int index) { return allOf_.get(index); } public static final int ONEOF_FIELD_NUMBER = 26; private java.util.List oneOf_; /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps oneOf = 26; * */ public java.util.List getOneOfList() { return oneOf_; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps oneOf = 26; * */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder> getOneOfOrBuilderList() { return oneOf_; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps oneOf = 26; * */ public int getOneOfCount() { return oneOf_.size(); } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps oneOf = 26; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getOneOf(int index) { return oneOf_.get(index); } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps oneOf = 26; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder getOneOfOrBuilder(int index) { return oneOf_.get(index); } public static final int ANYOF_FIELD_NUMBER = 27; private java.util.List anyOf_; /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps anyOf = 27; * */ public java.util.List getAnyOfList() { return anyOf_; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps anyOf = 27; * */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder> getAnyOfOrBuilderList() { return anyOf_; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps anyOf = 27; * */ public int getAnyOfCount() { return anyOf_.size(); } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps anyOf = 27; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getAnyOf(int index) { return anyOf_.get(index); } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps anyOf = 27; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder getAnyOfOrBuilder(int index) { return anyOf_.get(index); } public static final int NOT_FIELD_NUMBER = 28; private io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps not_; /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps not = 28; * */ public boolean hasNot() { return ((bitField0_ & 0x00400000) == 0x00400000); } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps not = 28; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getNot() { return not_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.getDefaultInstance() : not_; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps not = 28; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder getNotOrBuilder() { return not_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.getDefaultInstance() : not_; } public static final int PROPERTIES_FIELD_NUMBER = 29; private static final class PropertiesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> defaultEntry = com.google.protobuf.MapEntry . newDefaultInstance( io.kubernetes.client.proto.V1beta1Apiextensions .internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaProps_PropertiesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps .getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> properties_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> internalGetProperties() { if (properties_ == null) { return com.google.protobuf.MapField.emptyMapField( PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> properties = 29; * */ public boolean containsProperties(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetProperties().getMap().containsKey(key); } /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Deprecated public java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> getProperties() { return getPropertiesMap(); } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> properties = 29; * */ public java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> getPropertiesMap() { return internalGetProperties().getMap(); } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> properties = 29; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getPropertiesOrDefault( java.lang.String key, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> properties = 29; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getPropertiesOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> map = internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int ADDITIONALPROPERTIES_FIELD_NUMBER = 30; private io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool additionalProperties_; /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool additionalProperties = 30; * */ public boolean hasAdditionalProperties() { return ((bitField0_ & 0x00800000) == 0x00800000); } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool additionalProperties = 30; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool getAdditionalProperties() { return additionalProperties_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool .getDefaultInstance() : additionalProperties_; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool additionalProperties = 30; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBoolOrBuilder getAdditionalPropertiesOrBuilder() { return additionalProperties_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool .getDefaultInstance() : additionalProperties_; } public static final int PATTERNPROPERTIES_FIELD_NUMBER = 31; private static final class PatternPropertiesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> defaultEntry = com.google.protobuf.MapEntry . newDefaultInstance( io.kubernetes.client.proto.V1beta1Apiextensions .internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaProps_PatternPropertiesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps .getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> patternProperties_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> internalGetPatternProperties() { if (patternProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( PatternPropertiesDefaultEntryHolder.defaultEntry); } return patternProperties_; } public int getPatternPropertiesCount() { return internalGetPatternProperties().getMap().size(); } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> patternProperties = 31; * */ public boolean containsPatternProperties(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetPatternProperties().getMap().containsKey(key); } /** Use {@link #getPatternPropertiesMap()} instead. */ @java.lang.Deprecated public java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> getPatternProperties() { return getPatternPropertiesMap(); } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> patternProperties = 31; * */ public java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> getPatternPropertiesMap() { return internalGetPatternProperties().getMap(); } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> patternProperties = 31; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getPatternPropertiesOrDefault( java.lang.String key, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> map = internalGetPatternProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> patternProperties = 31; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getPatternPropertiesOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> map = internalGetPatternProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int DEPENDENCIES_FIELD_NUMBER = 32; private static final class DependenciesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray> defaultEntry = com.google.protobuf.MapEntry . newDefaultInstance( io.kubernetes.client.proto.V1beta1Apiextensions .internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaProps_DependenciesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, io.kubernetes.client.proto.V1beta1Apiextensions .JSONSchemaPropsOrStringArray.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray> dependencies_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray> internalGetDependencies() { if (dependencies_ == null) { return com.google.protobuf.MapField.emptyMapField( DependenciesDefaultEntryHolder.defaultEntry); } return dependencies_; } public int getDependenciesCount() { return internalGetDependencies().getMap().size(); } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrStringArray> dependencies = 32; * */ public boolean containsDependencies(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetDependencies().getMap().containsKey(key); } /** Use {@link #getDependenciesMap()} instead. */ @java.lang.Deprecated public java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray> getDependencies() { return getDependenciesMap(); } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrStringArray> dependencies = 32; * */ public java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray> getDependenciesMap() { return internalGetDependencies().getMap(); } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrStringArray> dependencies = 32; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray getDependenciesOrDefault( java.lang.String key, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray> map = internalGetDependencies().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrStringArray> dependencies = 32; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray getDependenciesOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray> map = internalGetDependencies().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int ADDITIONALITEMS_FIELD_NUMBER = 33; private io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool additionalItems_; /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool additionalItems = 33; * */ public boolean hasAdditionalItems() { return ((bitField0_ & 0x01000000) == 0x01000000); } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool additionalItems = 33; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool getAdditionalItems() { return additionalItems_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool .getDefaultInstance() : additionalItems_; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool additionalItems = 33; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBoolOrBuilder getAdditionalItemsOrBuilder() { return additionalItems_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool .getDefaultInstance() : additionalItems_; } public static final int DEFINITIONS_FIELD_NUMBER = 34; private static final class DefinitionsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> defaultEntry = com.google.protobuf.MapEntry . newDefaultInstance( io.kubernetes.client.proto.V1beta1Apiextensions .internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaProps_DefinitionsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps .getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> definitions_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> internalGetDefinitions() { if (definitions_ == null) { return com.google.protobuf.MapField.emptyMapField( DefinitionsDefaultEntryHolder.defaultEntry); } return definitions_; } public int getDefinitionsCount() { return internalGetDefinitions().getMap().size(); } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> definitions = 34; * */ public boolean containsDefinitions(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetDefinitions().getMap().containsKey(key); } /** Use {@link #getDefinitionsMap()} instead. */ @java.lang.Deprecated public java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> getDefinitions() { return getDefinitionsMap(); } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> definitions = 34; * */ public java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> getDefinitionsMap() { return internalGetDefinitions().getMap(); } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> definitions = 34; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getDefinitionsOrDefault( java.lang.String key, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> map = internalGetDefinitions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> definitions = 34; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getDefinitionsOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> map = internalGetDefinitions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int EXTERNALDOCS_FIELD_NUMBER = 35; private io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation externalDocs_; /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ExternalDocumentation externalDocs = 35; * */ public boolean hasExternalDocs() { return ((bitField0_ & 0x02000000) == 0x02000000); } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ExternalDocumentation externalDocs = 35; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation getExternalDocs() { return externalDocs_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation .getDefaultInstance() : externalDocs_; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ExternalDocumentation externalDocs = 35; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentationOrBuilder getExternalDocsOrBuilder() { return externalDocs_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation .getDefaultInstance() : externalDocs_; } public static final int EXAMPLE_FIELD_NUMBER = 36; private io.kubernetes.client.proto.V1beta1Apiextensions.JSON example_; /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON example = 36; * */ public boolean hasExample() { return ((bitField0_ & 0x04000000) == 0x04000000); } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON example = 36; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSON getExample() { return example_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSON.getDefaultInstance() : example_; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON example = 36; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONOrBuilder getExampleOrBuilder() { return example_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSON.getDefaultInstance() : example_; } public static final int NULLABLE_FIELD_NUMBER = 37; private boolean nullable_; /** optional bool nullable = 37; */ public boolean hasNullable() { return ((bitField0_ & 0x08000000) == 0x08000000); } /** optional bool nullable = 37; */ public boolean getNullable() { return nullable_; } public static final int XKUBERNETESPRESERVEUNKNOWNFIELDS_FIELD_NUMBER = 38; private boolean xKubernetesPreserveUnknownFields_; /** * * *
     * x-kubernetes-preserve-unknown-fields stops the API server
     * decoding step from pruning fields which are not specified
     * in the validation schema. This affects fields recursively,
     * but switches back to normal pruning behaviour if nested
     * properties or additionalProperties are specified in the schema.
     * This can either be true or undefined. False is forbidden.
     * 
* * optional bool xKubernetesPreserveUnknownFields = 38; */ public boolean hasXKubernetesPreserveUnknownFields() { return ((bitField0_ & 0x10000000) == 0x10000000); } /** * * *
     * x-kubernetes-preserve-unknown-fields stops the API server
     * decoding step from pruning fields which are not specified
     * in the validation schema. This affects fields recursively,
     * but switches back to normal pruning behaviour if nested
     * properties or additionalProperties are specified in the schema.
     * This can either be true or undefined. False is forbidden.
     * 
* * optional bool xKubernetesPreserveUnknownFields = 38; */ public boolean getXKubernetesPreserveUnknownFields() { return xKubernetesPreserveUnknownFields_; } public static final int XKUBERNETESEMBEDDEDRESOURCE_FIELD_NUMBER = 39; private boolean xKubernetesEmbeddedResource_; /** * * *
     * x-kubernetes-embedded-resource defines that the value is an
     * embedded Kubernetes runtime.Object, with TypeMeta and
     * ObjectMeta. The type must be object. It is allowed to further
     * restrict the embedded object. kind, apiVersion and metadata
     * are validated automatically. x-kubernetes-preserve-unknown-fields
     * is allowed to be true, but does not have to be if the object
     * is fully specified (up to kind, apiVersion, metadata).
     * 
* * optional bool xKubernetesEmbeddedResource = 39; */ public boolean hasXKubernetesEmbeddedResource() { return ((bitField0_ & 0x20000000) == 0x20000000); } /** * * *
     * x-kubernetes-embedded-resource defines that the value is an
     * embedded Kubernetes runtime.Object, with TypeMeta and
     * ObjectMeta. The type must be object. It is allowed to further
     * restrict the embedded object. kind, apiVersion and metadata
     * are validated automatically. x-kubernetes-preserve-unknown-fields
     * is allowed to be true, but does not have to be if the object
     * is fully specified (up to kind, apiVersion, metadata).
     * 
* * optional bool xKubernetesEmbeddedResource = 39; */ public boolean getXKubernetesEmbeddedResource() { return xKubernetesEmbeddedResource_; } public static final int XKUBERNETESINTORSTRING_FIELD_NUMBER = 40; private boolean xKubernetesIntOrString_; /** * * *
     * x-kubernetes-int-or-string specifies that this value is
     * either an integer or a string. If this is true, an empty
     * type is allowed and type as child of anyOf is permitted
     * if following one of the following patterns:
     * 1) anyOf:
     *    - type: integer
     *    - type: string
     * 2) allOf:
     *    - anyOf:
     *      - type: integer
     *      - type: string
     *    - ... zero or more
     * 
* * optional bool xKubernetesIntOrString = 40; */ public boolean hasXKubernetesIntOrString() { return ((bitField0_ & 0x40000000) == 0x40000000); } /** * * *
     * x-kubernetes-int-or-string specifies that this value is
     * either an integer or a string. If this is true, an empty
     * type is allowed and type as child of anyOf is permitted
     * if following one of the following patterns:
     * 1) anyOf:
     *    - type: integer
     *    - type: string
     * 2) allOf:
     *    - anyOf:
     *      - type: integer
     *      - type: string
     *    - ... zero or more
     * 
* * optional bool xKubernetesIntOrString = 40; */ public boolean getXKubernetesIntOrString() { return xKubernetesIntOrString_; } public static final int XKUBERNETESLISTMAPKEYS_FIELD_NUMBER = 41; private com.google.protobuf.LazyStringList xKubernetesListMapKeys_; /** * * *
     * x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used
     * as the index of the map.
     * This tag MUST only be used on lists that have the "x-kubernetes-list-type"
     * extension set to "map". Also, the values specified for this attribute must
     * be a scalar typed field of the child structure (no nesting is supported).
     * The properties specified must either be required or have a default value,
     * to ensure those properties are present for all list items.
     * +optional
     * 
* * repeated string xKubernetesListMapKeys = 41; */ public com.google.protobuf.ProtocolStringList getXKubernetesListMapKeysList() { return xKubernetesListMapKeys_; } /** * * *
     * x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used
     * as the index of the map.
     * This tag MUST only be used on lists that have the "x-kubernetes-list-type"
     * extension set to "map". Also, the values specified for this attribute must
     * be a scalar typed field of the child structure (no nesting is supported).
     * The properties specified must either be required or have a default value,
     * to ensure those properties are present for all list items.
     * +optional
     * 
* * repeated string xKubernetesListMapKeys = 41; */ public int getXKubernetesListMapKeysCount() { return xKubernetesListMapKeys_.size(); } /** * * *
     * x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used
     * as the index of the map.
     * This tag MUST only be used on lists that have the "x-kubernetes-list-type"
     * extension set to "map". Also, the values specified for this attribute must
     * be a scalar typed field of the child structure (no nesting is supported).
     * The properties specified must either be required or have a default value,
     * to ensure those properties are present for all list items.
     * +optional
     * 
* * repeated string xKubernetesListMapKeys = 41; */ public java.lang.String getXKubernetesListMapKeys(int index) { return xKubernetesListMapKeys_.get(index); } /** * * *
     * x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used
     * as the index of the map.
     * This tag MUST only be used on lists that have the "x-kubernetes-list-type"
     * extension set to "map". Also, the values specified for this attribute must
     * be a scalar typed field of the child structure (no nesting is supported).
     * The properties specified must either be required or have a default value,
     * to ensure those properties are present for all list items.
     * +optional
     * 
* * repeated string xKubernetesListMapKeys = 41; */ public com.google.protobuf.ByteString getXKubernetesListMapKeysBytes(int index) { return xKubernetesListMapKeys_.getByteString(index); } public static final int XKUBERNETESLISTTYPE_FIELD_NUMBER = 42; private volatile java.lang.Object xKubernetesListType_; /** * * *
     * x-kubernetes-list-type annotates an array to further describe its topology.
     * This extension must only be used on lists and may have 3 possible values:
     * 1) `atomic`: the list is treated as a single entity, like a scalar.
     *      Atomic lists will be entirely replaced when updated. This extension
     *      may be used on any type of list (struct, scalar, ...).
     * 2) `set`:
     *      Sets are lists that must not have multiple items with the same value. Each
     *      value must be a scalar, an object with x-kubernetes-map-type `atomic` or an
     *      array with x-kubernetes-list-type `atomic`.
     * 3) `map`:
     *      These lists are like maps in that their elements have a non-index key
     *      used to identify them. Order is preserved upon merge. The map tag
     *      must only be used on a list with elements of type object.
     * Defaults to atomic for arrays.
     * +optional
     * 
* * optional string xKubernetesListType = 42; */ public boolean hasXKubernetesListType() { return ((bitField0_ & 0x80000000) == 0x80000000); } /** * * *
     * x-kubernetes-list-type annotates an array to further describe its topology.
     * This extension must only be used on lists and may have 3 possible values:
     * 1) `atomic`: the list is treated as a single entity, like a scalar.
     *      Atomic lists will be entirely replaced when updated. This extension
     *      may be used on any type of list (struct, scalar, ...).
     * 2) `set`:
     *      Sets are lists that must not have multiple items with the same value. Each
     *      value must be a scalar, an object with x-kubernetes-map-type `atomic` or an
     *      array with x-kubernetes-list-type `atomic`.
     * 3) `map`:
     *      These lists are like maps in that their elements have a non-index key
     *      used to identify them. Order is preserved upon merge. The map tag
     *      must only be used on a list with elements of type object.
     * Defaults to atomic for arrays.
     * +optional
     * 
* * optional string xKubernetesListType = 42; */ public java.lang.String getXKubernetesListType() { java.lang.Object ref = xKubernetesListType_; 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()) { xKubernetesListType_ = s; } return s; } } /** * * *
     * x-kubernetes-list-type annotates an array to further describe its topology.
     * This extension must only be used on lists and may have 3 possible values:
     * 1) `atomic`: the list is treated as a single entity, like a scalar.
     *      Atomic lists will be entirely replaced when updated. This extension
     *      may be used on any type of list (struct, scalar, ...).
     * 2) `set`:
     *      Sets are lists that must not have multiple items with the same value. Each
     *      value must be a scalar, an object with x-kubernetes-map-type `atomic` or an
     *      array with x-kubernetes-list-type `atomic`.
     * 3) `map`:
     *      These lists are like maps in that their elements have a non-index key
     *      used to identify them. Order is preserved upon merge. The map tag
     *      must only be used on a list with elements of type object.
     * Defaults to atomic for arrays.
     * +optional
     * 
* * optional string xKubernetesListType = 42; */ public com.google.protobuf.ByteString getXKubernetesListTypeBytes() { java.lang.Object ref = xKubernetesListType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); xKubernetesListType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int XKUBERNETESMAPTYPE_FIELD_NUMBER = 43; private volatile java.lang.Object xKubernetesMapType_; /** * * *
     * x-kubernetes-map-type annotates an object to further describe its topology.
     * This extension must only be used when type is object and may have 2 possible values:
     * 1) `granular`:
     *      These maps are actual maps (key-value pairs) and each fields are independent
     *      from each other (they can each be manipulated by separate actors). This is
     *      the default behaviour for all maps.
     * 2) `atomic`: the list is treated as a single entity, like a scalar.
     *      Atomic maps will be entirely replaced when updated.
     * +optional
     * 
* * optional string xKubernetesMapType = 43; */ public boolean hasXKubernetesMapType() { return ((bitField1_ & 0x00000001) == 0x00000001); } /** * * *
     * x-kubernetes-map-type annotates an object to further describe its topology.
     * This extension must only be used when type is object and may have 2 possible values:
     * 1) `granular`:
     *      These maps are actual maps (key-value pairs) and each fields are independent
     *      from each other (they can each be manipulated by separate actors). This is
     *      the default behaviour for all maps.
     * 2) `atomic`: the list is treated as a single entity, like a scalar.
     *      Atomic maps will be entirely replaced when updated.
     * +optional
     * 
* * optional string xKubernetesMapType = 43; */ public java.lang.String getXKubernetesMapType() { java.lang.Object ref = xKubernetesMapType_; 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()) { xKubernetesMapType_ = s; } return s; } } /** * * *
     * x-kubernetes-map-type annotates an object to further describe its topology.
     * This extension must only be used when type is object and may have 2 possible values:
     * 1) `granular`:
     *      These maps are actual maps (key-value pairs) and each fields are independent
     *      from each other (they can each be manipulated by separate actors). This is
     *      the default behaviour for all maps.
     * 2) `atomic`: the list is treated as a single entity, like a scalar.
     *      Atomic maps will be entirely replaced when updated.
     * +optional
     * 
* * optional string xKubernetesMapType = 43; */ public com.google.protobuf.ByteString getXKubernetesMapTypeBytes() { java.lang.Object ref = xKubernetesMapType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); xKubernetesMapType_ = 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, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schema_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ref_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, type_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, format_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, title_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeMessage(8, getDefault()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeDouble(9, maximum_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeBool(10, exclusiveMaximum_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeDouble(11, minimum_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeBool(12, exclusiveMinimum_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeInt64(13, maxLength_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeInt64(14, minLength_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, pattern_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { output.writeInt64(16, maxItems_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { output.writeInt64(17, minItems_); } if (((bitField0_ & 0x00020000) == 0x00020000)) { output.writeBool(18, uniqueItems_); } if (((bitField0_ & 0x00040000) == 0x00040000)) { output.writeDouble(19, multipleOf_); } for (int i = 0; i < enum_.size(); i++) { output.writeMessage(20, enum_.get(i)); } if (((bitField0_ & 0x00080000) == 0x00080000)) { output.writeInt64(21, maxProperties_); } if (((bitField0_ & 0x00100000) == 0x00100000)) { output.writeInt64(22, minProperties_); } for (int i = 0; i < required_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 23, required_.getRaw(i)); } if (((bitField0_ & 0x00200000) == 0x00200000)) { output.writeMessage(24, getItems()); } for (int i = 0; i < allOf_.size(); i++) { output.writeMessage(25, allOf_.get(i)); } for (int i = 0; i < oneOf_.size(); i++) { output.writeMessage(26, oneOf_.get(i)); } for (int i = 0; i < anyOf_.size(); i++) { output.writeMessage(27, anyOf_.get(i)); } if (((bitField0_ & 0x00400000) == 0x00400000)) { output.writeMessage(28, getNot()); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 29); if (((bitField0_ & 0x00800000) == 0x00800000)) { output.writeMessage(30, getAdditionalProperties()); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetPatternProperties(), PatternPropertiesDefaultEntryHolder.defaultEntry, 31); com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetDependencies(), DependenciesDefaultEntryHolder.defaultEntry, 32); if (((bitField0_ & 0x01000000) == 0x01000000)) { output.writeMessage(33, getAdditionalItems()); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetDefinitions(), DefinitionsDefaultEntryHolder.defaultEntry, 34); if (((bitField0_ & 0x02000000) == 0x02000000)) { output.writeMessage(35, getExternalDocs()); } if (((bitField0_ & 0x04000000) == 0x04000000)) { output.writeMessage(36, getExample()); } if (((bitField0_ & 0x08000000) == 0x08000000)) { output.writeBool(37, nullable_); } if (((bitField0_ & 0x10000000) == 0x10000000)) { output.writeBool(38, xKubernetesPreserveUnknownFields_); } if (((bitField0_ & 0x20000000) == 0x20000000)) { output.writeBool(39, xKubernetesEmbeddedResource_); } if (((bitField0_ & 0x40000000) == 0x40000000)) { output.writeBool(40, xKubernetesIntOrString_); } for (int i = 0; i < xKubernetesListMapKeys_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString( output, 41, xKubernetesListMapKeys_.getRaw(i)); } if (((bitField0_ & 0x80000000) == 0x80000000)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 42, xKubernetesListType_); } if (((bitField1_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 43, xKubernetesMapType_); } 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, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, schema_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ref_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, type_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, format_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, title_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDefault()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(9, maximum_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, exclusiveMaximum_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(11, minimum_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, exclusiveMinimum_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(13, maxLength_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(14, minLength_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, pattern_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(16, maxItems_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(17, minItems_); } if (((bitField0_ & 0x00020000) == 0x00020000)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, uniqueItems_); } if (((bitField0_ & 0x00040000) == 0x00040000)) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(19, multipleOf_); } for (int i = 0; i < enum_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, enum_.get(i)); } if (((bitField0_ & 0x00080000) == 0x00080000)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(21, maxProperties_); } if (((bitField0_ & 0x00100000) == 0x00100000)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(22, minProperties_); } { int dataSize = 0; for (int i = 0; i < required_.size(); i++) { dataSize += computeStringSizeNoTag(required_.getRaw(i)); } size += dataSize; size += 2 * getRequiredList().size(); } if (((bitField0_ & 0x00200000) == 0x00200000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getItems()); } for (int i = 0; i < allOf_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, allOf_.get(i)); } for (int i = 0; i < oneOf_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, oneOf_.get(i)); } for (int i = 0; i < anyOf_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, anyOf_.get(i)); } if (((bitField0_ & 0x00400000) == 0x00400000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getNot()); } for (java.util.Map.Entry< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> entry : internalGetProperties().getMap().entrySet()) { com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> properties__ = PropertiesDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, properties__); } if (((bitField0_ & 0x00800000) == 0x00800000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(30, getAdditionalProperties()); } for (java.util.Map.Entry< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> entry : internalGetPatternProperties().getMap().entrySet()) { com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> patternProperties__ = PatternPropertiesDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(31, patternProperties__); } for (java.util.Map.Entry< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray> entry : internalGetDependencies().getMap().entrySet()) { com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray> dependencies__ = DependenciesDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, dependencies__); } if (((bitField0_ & 0x01000000) == 0x01000000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(33, getAdditionalItems()); } for (java.util.Map.Entry< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> entry : internalGetDefinitions().getMap().entrySet()) { com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> definitions__ = DefinitionsDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(34, definitions__); } if (((bitField0_ & 0x02000000) == 0x02000000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(35, getExternalDocs()); } if (((bitField0_ & 0x04000000) == 0x04000000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(36, getExample()); } if (((bitField0_ & 0x08000000) == 0x08000000)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(37, nullable_); } if (((bitField0_ & 0x10000000) == 0x10000000)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize( 38, xKubernetesPreserveUnknownFields_); } if (((bitField0_ & 0x20000000) == 0x20000000)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(39, xKubernetesEmbeddedResource_); } if (((bitField0_ & 0x40000000) == 0x40000000)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(40, xKubernetesIntOrString_); } { int dataSize = 0; for (int i = 0; i < xKubernetesListMapKeys_.size(); i++) { dataSize += computeStringSizeNoTag(xKubernetesListMapKeys_.getRaw(i)); } size += dataSize; size += 2 * getXKubernetesListMapKeysList().size(); } if (((bitField0_ & 0x80000000) == 0x80000000)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(42, xKubernetesListType_); } if (((bitField1_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(43, xKubernetesMapType_); } 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.JSONSchemaProps)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps other = (io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps) obj; boolean result = true; result = result && (hasId() == other.hasId()); if (hasId()) { result = result && getId().equals(other.getId()); } result = result && (hasSchema() == other.hasSchema()); if (hasSchema()) { result = result && getSchema().equals(other.getSchema()); } result = result && (hasRef() == other.hasRef()); if (hasRef()) { result = result && getRef().equals(other.getRef()); } result = result && (hasDescription() == other.hasDescription()); if (hasDescription()) { result = result && getDescription().equals(other.getDescription()); } result = result && (hasType() == other.hasType()); if (hasType()) { result = result && getType().equals(other.getType()); } result = result && (hasFormat() == other.hasFormat()); if (hasFormat()) { result = result && getFormat().equals(other.getFormat()); } result = result && (hasTitle() == other.hasTitle()); if (hasTitle()) { result = result && getTitle().equals(other.getTitle()); } result = result && (hasDefault() == other.hasDefault()); if (hasDefault()) { result = result && getDefault().equals(other.getDefault()); } result = result && (hasMaximum() == other.hasMaximum()); if (hasMaximum()) { result = result && (java.lang.Double.doubleToLongBits(getMaximum()) == java.lang.Double.doubleToLongBits(other.getMaximum())); } result = result && (hasExclusiveMaximum() == other.hasExclusiveMaximum()); if (hasExclusiveMaximum()) { result = result && (getExclusiveMaximum() == other.getExclusiveMaximum()); } result = result && (hasMinimum() == other.hasMinimum()); if (hasMinimum()) { result = result && (java.lang.Double.doubleToLongBits(getMinimum()) == java.lang.Double.doubleToLongBits(other.getMinimum())); } result = result && (hasExclusiveMinimum() == other.hasExclusiveMinimum()); if (hasExclusiveMinimum()) { result = result && (getExclusiveMinimum() == other.getExclusiveMinimum()); } result = result && (hasMaxLength() == other.hasMaxLength()); if (hasMaxLength()) { result = result && (getMaxLength() == other.getMaxLength()); } result = result && (hasMinLength() == other.hasMinLength()); if (hasMinLength()) { result = result && (getMinLength() == other.getMinLength()); } result = result && (hasPattern() == other.hasPattern()); if (hasPattern()) { result = result && getPattern().equals(other.getPattern()); } result = result && (hasMaxItems() == other.hasMaxItems()); if (hasMaxItems()) { result = result && (getMaxItems() == other.getMaxItems()); } result = result && (hasMinItems() == other.hasMinItems()); if (hasMinItems()) { result = result && (getMinItems() == other.getMinItems()); } result = result && (hasUniqueItems() == other.hasUniqueItems()); if (hasUniqueItems()) { result = result && (getUniqueItems() == other.getUniqueItems()); } result = result && (hasMultipleOf() == other.hasMultipleOf()); if (hasMultipleOf()) { result = result && (java.lang.Double.doubleToLongBits(getMultipleOf()) == java.lang.Double.doubleToLongBits(other.getMultipleOf())); } result = result && getEnumList().equals(other.getEnumList()); result = result && (hasMaxProperties() == other.hasMaxProperties()); if (hasMaxProperties()) { result = result && (getMaxProperties() == other.getMaxProperties()); } result = result && (hasMinProperties() == other.hasMinProperties()); if (hasMinProperties()) { result = result && (getMinProperties() == other.getMinProperties()); } result = result && getRequiredList().equals(other.getRequiredList()); result = result && (hasItems() == other.hasItems()); if (hasItems()) { result = result && getItems().equals(other.getItems()); } result = result && getAllOfList().equals(other.getAllOfList()); result = result && getOneOfList().equals(other.getOneOfList()); result = result && getAnyOfList().equals(other.getAnyOfList()); result = result && (hasNot() == other.hasNot()); if (hasNot()) { result = result && getNot().equals(other.getNot()); } result = result && internalGetProperties().equals(other.internalGetProperties()); result = result && (hasAdditionalProperties() == other.hasAdditionalProperties()); if (hasAdditionalProperties()) { result = result && getAdditionalProperties().equals(other.getAdditionalProperties()); } result = result && internalGetPatternProperties().equals(other.internalGetPatternProperties()); result = result && internalGetDependencies().equals(other.internalGetDependencies()); result = result && (hasAdditionalItems() == other.hasAdditionalItems()); if (hasAdditionalItems()) { result = result && getAdditionalItems().equals(other.getAdditionalItems()); } result = result && internalGetDefinitions().equals(other.internalGetDefinitions()); result = result && (hasExternalDocs() == other.hasExternalDocs()); if (hasExternalDocs()) { result = result && getExternalDocs().equals(other.getExternalDocs()); } result = result && (hasExample() == other.hasExample()); if (hasExample()) { result = result && getExample().equals(other.getExample()); } result = result && (hasNullable() == other.hasNullable()); if (hasNullable()) { result = result && (getNullable() == other.getNullable()); } result = result && (hasXKubernetesPreserveUnknownFields() == other.hasXKubernetesPreserveUnknownFields()); if (hasXKubernetesPreserveUnknownFields()) { result = result && (getXKubernetesPreserveUnknownFields() == other.getXKubernetesPreserveUnknownFields()); } result = result && (hasXKubernetesEmbeddedResource() == other.hasXKubernetesEmbeddedResource()); if (hasXKubernetesEmbeddedResource()) { result = result && (getXKubernetesEmbeddedResource() == other.getXKubernetesEmbeddedResource()); } result = result && (hasXKubernetesIntOrString() == other.hasXKubernetesIntOrString()); if (hasXKubernetesIntOrString()) { result = result && (getXKubernetesIntOrString() == other.getXKubernetesIntOrString()); } result = result && getXKubernetesListMapKeysList().equals(other.getXKubernetesListMapKeysList()); result = result && (hasXKubernetesListType() == other.hasXKubernetesListType()); if (hasXKubernetesListType()) { result = result && getXKubernetesListType().equals(other.getXKubernetesListType()); } result = result && (hasXKubernetesMapType() == other.hasXKubernetesMapType()); if (hasXKubernetesMapType()) { result = result && getXKubernetesMapType().equals(other.getXKubernetesMapType()); } 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 (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } if (hasSchema()) { hash = (37 * hash) + SCHEMA_FIELD_NUMBER; hash = (53 * hash) + getSchema().hashCode(); } if (hasRef()) { hash = (37 * hash) + REF_FIELD_NUMBER; hash = (53 * hash) + getRef().hashCode(); } if (hasDescription()) { hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); } if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } if (hasFormat()) { hash = (37 * hash) + FORMAT_FIELD_NUMBER; hash = (53 * hash) + getFormat().hashCode(); } if (hasTitle()) { hash = (37 * hash) + TITLE_FIELD_NUMBER; hash = (53 * hash) + getTitle().hashCode(); } if (hasDefault()) { hash = (37 * hash) + DEFAULT_FIELD_NUMBER; hash = (53 * hash) + getDefault().hashCode(); } if (hasMaximum()) { hash = (37 * hash) + MAXIMUM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMaximum())); } if (hasExclusiveMaximum()) { hash = (37 * hash) + EXCLUSIVEMAXIMUM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExclusiveMaximum()); } if (hasMinimum()) { hash = (37 * hash) + MINIMUM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMinimum())); } if (hasExclusiveMinimum()) { hash = (37 * hash) + EXCLUSIVEMINIMUM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExclusiveMinimum()); } if (hasMaxLength()) { hash = (37 * hash) + MAXLENGTH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxLength()); } if (hasMinLength()) { hash = (37 * hash) + MINLENGTH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMinLength()); } if (hasPattern()) { hash = (37 * hash) + PATTERN_FIELD_NUMBER; hash = (53 * hash) + getPattern().hashCode(); } if (hasMaxItems()) { hash = (37 * hash) + MAXITEMS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxItems()); } if (hasMinItems()) { hash = (37 * hash) + MINITEMS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMinItems()); } if (hasUniqueItems()) { hash = (37 * hash) + UNIQUEITEMS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUniqueItems()); } if (hasMultipleOf()) { hash = (37 * hash) + MULTIPLEOF_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMultipleOf())); } if (getEnumCount() > 0) { hash = (37 * hash) + ENUM_FIELD_NUMBER; hash = (53 * hash) + getEnumList().hashCode(); } if (hasMaxProperties()) { hash = (37 * hash) + MAXPROPERTIES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxProperties()); } if (hasMinProperties()) { hash = (37 * hash) + MINPROPERTIES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMinProperties()); } if (getRequiredCount() > 0) { hash = (37 * hash) + REQUIRED_FIELD_NUMBER; hash = (53 * hash) + getRequiredList().hashCode(); } if (hasItems()) { hash = (37 * hash) + ITEMS_FIELD_NUMBER; hash = (53 * hash) + getItems().hashCode(); } if (getAllOfCount() > 0) { hash = (37 * hash) + ALLOF_FIELD_NUMBER; hash = (53 * hash) + getAllOfList().hashCode(); } if (getOneOfCount() > 0) { hash = (37 * hash) + ONEOF_FIELD_NUMBER; hash = (53 * hash) + getOneOfList().hashCode(); } if (getAnyOfCount() > 0) { hash = (37 * hash) + ANYOF_FIELD_NUMBER; hash = (53 * hash) + getAnyOfList().hashCode(); } if (hasNot()) { hash = (37 * hash) + NOT_FIELD_NUMBER; hash = (53 * hash) + getNot().hashCode(); } if (!internalGetProperties().getMap().isEmpty()) { hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; hash = (53 * hash) + internalGetProperties().hashCode(); } if (hasAdditionalProperties()) { hash = (37 * hash) + ADDITIONALPROPERTIES_FIELD_NUMBER; hash = (53 * hash) + getAdditionalProperties().hashCode(); } if (!internalGetPatternProperties().getMap().isEmpty()) { hash = (37 * hash) + PATTERNPROPERTIES_FIELD_NUMBER; hash = (53 * hash) + internalGetPatternProperties().hashCode(); } if (!internalGetDependencies().getMap().isEmpty()) { hash = (37 * hash) + DEPENDENCIES_FIELD_NUMBER; hash = (53 * hash) + internalGetDependencies().hashCode(); } if (hasAdditionalItems()) { hash = (37 * hash) + ADDITIONALITEMS_FIELD_NUMBER; hash = (53 * hash) + getAdditionalItems().hashCode(); } if (!internalGetDefinitions().getMap().isEmpty()) { hash = (37 * hash) + DEFINITIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetDefinitions().hashCode(); } if (hasExternalDocs()) { hash = (37 * hash) + EXTERNALDOCS_FIELD_NUMBER; hash = (53 * hash) + getExternalDocs().hashCode(); } if (hasExample()) { hash = (37 * hash) + EXAMPLE_FIELD_NUMBER; hash = (53 * hash) + getExample().hashCode(); } if (hasNullable()) { hash = (37 * hash) + NULLABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNullable()); } if (hasXKubernetesPreserveUnknownFields()) { hash = (37 * hash) + XKUBERNETESPRESERVEUNKNOWNFIELDS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getXKubernetesPreserveUnknownFields()); } if (hasXKubernetesEmbeddedResource()) { hash = (37 * hash) + XKUBERNETESEMBEDDEDRESOURCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getXKubernetesEmbeddedResource()); } if (hasXKubernetesIntOrString()) { hash = (37 * hash) + XKUBERNETESINTORSTRING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getXKubernetesIntOrString()); } if (getXKubernetesListMapKeysCount() > 0) { hash = (37 * hash) + XKUBERNETESLISTMAPKEYS_FIELD_NUMBER; hash = (53 * hash) + getXKubernetesListMapKeysList().hashCode(); } if (hasXKubernetesListType()) { hash = (37 * hash) + XKUBERNETESLISTTYPE_FIELD_NUMBER; hash = (53 * hash) + getXKubernetesListType().hashCode(); } if (hasXKubernetesMapType()) { hash = (37 * hash) + XKUBERNETESMAPTYPE_FIELD_NUMBER; hash = (53 * hash) + getXKubernetesMapType().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps 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.JSONSchemaProps parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps 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.JSONSchemaProps parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps 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.JSONSchemaProps parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps 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.JSONSchemaProps parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps 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.JSONSchemaProps 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.JSONSchemaProps 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.JSONSchemaProps 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; } /** * * *
     * JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/).
     * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps} */ 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.JSONSchemaProps) io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder { 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_JSONSchemaProps_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 29: return internalGetProperties(); case 31: return internalGetPatternProperties(); case 32: return internalGetDependencies(); case 34: return internalGetDefinitions(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 29: return internalGetMutableProperties(); case 31: return internalGetMutablePatternProperties(); case 32: return internalGetMutableDependencies(); case 34: return internalGetMutableDefinitions(); default: throw new RuntimeException("Invalid map field number: " + number); } } @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_JSONSchemaProps_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.class, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder.class); } // Construct using // io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getDefaultFieldBuilder(); getEnumFieldBuilder(); getItemsFieldBuilder(); getAllOfFieldBuilder(); getOneOfFieldBuilder(); getAnyOfFieldBuilder(); getNotFieldBuilder(); getAdditionalPropertiesFieldBuilder(); getAdditionalItemsFieldBuilder(); getExternalDocsFieldBuilder(); getExampleFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; bitField0_ = (bitField0_ & ~0x00000001); schema_ = ""; bitField0_ = (bitField0_ & ~0x00000002); ref_ = ""; bitField0_ = (bitField0_ & ~0x00000004); description_ = ""; bitField0_ = (bitField0_ & ~0x00000008); type_ = ""; bitField0_ = (bitField0_ & ~0x00000010); format_ = ""; bitField0_ = (bitField0_ & ~0x00000020); title_ = ""; bitField0_ = (bitField0_ & ~0x00000040); if (defaultBuilder_ == null) { default_ = null; } else { defaultBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); maximum_ = 0D; bitField0_ = (bitField0_ & ~0x00000100); exclusiveMaximum_ = false; bitField0_ = (bitField0_ & ~0x00000200); minimum_ = 0D; bitField0_ = (bitField0_ & ~0x00000400); exclusiveMinimum_ = false; bitField0_ = (bitField0_ & ~0x00000800); maxLength_ = 0L; bitField0_ = (bitField0_ & ~0x00001000); minLength_ = 0L; bitField0_ = (bitField0_ & ~0x00002000); pattern_ = ""; bitField0_ = (bitField0_ & ~0x00004000); maxItems_ = 0L; bitField0_ = (bitField0_ & ~0x00008000); minItems_ = 0L; bitField0_ = (bitField0_ & ~0x00010000); uniqueItems_ = false; bitField0_ = (bitField0_ & ~0x00020000); multipleOf_ = 0D; bitField0_ = (bitField0_ & ~0x00040000); if (enumBuilder_ == null) { enum_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00080000); } else { enumBuilder_.clear(); } maxProperties_ = 0L; bitField0_ = (bitField0_ & ~0x00100000); minProperties_ = 0L; bitField0_ = (bitField0_ & ~0x00200000); required_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00400000); if (itemsBuilder_ == null) { items_ = null; } else { itemsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00800000); if (allOfBuilder_ == null) { allOf_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x01000000); } else { allOfBuilder_.clear(); } if (oneOfBuilder_ == null) { oneOf_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x02000000); } else { oneOfBuilder_.clear(); } if (anyOfBuilder_ == null) { anyOf_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x04000000); } else { anyOfBuilder_.clear(); } if (notBuilder_ == null) { not_ = null; } else { notBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x08000000); internalGetMutableProperties().clear(); if (additionalPropertiesBuilder_ == null) { additionalProperties_ = null; } else { additionalPropertiesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x20000000); internalGetMutablePatternProperties().clear(); internalGetMutableDependencies().clear(); if (additionalItemsBuilder_ == null) { additionalItems_ = null; } else { additionalItemsBuilder_.clear(); } bitField1_ = (bitField1_ & ~0x00000001); internalGetMutableDefinitions().clear(); if (externalDocsBuilder_ == null) { externalDocs_ = null; } else { externalDocsBuilder_.clear(); } bitField1_ = (bitField1_ & ~0x00000004); if (exampleBuilder_ == null) { example_ = null; } else { exampleBuilder_.clear(); } bitField1_ = (bitField1_ & ~0x00000008); nullable_ = false; bitField1_ = (bitField1_ & ~0x00000010); xKubernetesPreserveUnknownFields_ = false; bitField1_ = (bitField1_ & ~0x00000020); xKubernetesEmbeddedResource_ = false; bitField1_ = (bitField1_ & ~0x00000040); xKubernetesIntOrString_ = false; bitField1_ = (bitField1_ & ~0x00000080); xKubernetesListMapKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField1_ = (bitField1_ & ~0x00000100); xKubernetesListType_ = ""; bitField1_ = (bitField1_ & ~0x00000200); xKubernetesMapType_ = ""; bitField1_ = (bitField1_ & ~0x00000400); 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_JSONSchemaProps_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps build() { io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps buildPartial() { io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps result = new io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps(this); int from_bitField0_ = bitField0_; int from_bitField1_ = bitField1_; int to_bitField0_ = 0; int to_bitField1_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.id_ = id_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.schema_ = schema_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.ref_ = ref_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.description_ = description_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.type_ = type_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.format_ = format_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.title_ = title_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } if (defaultBuilder_ == null) { result.default_ = default_; } else { result.default_ = defaultBuilder_.build(); } if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.maximum_ = maximum_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.exclusiveMaximum_ = exclusiveMaximum_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.minimum_ = minimum_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } result.exclusiveMinimum_ = exclusiveMinimum_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00001000; } result.maxLength_ = maxLength_; if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00002000; } result.minLength_ = minLength_; if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00004000; } result.pattern_ = pattern_; if (((from_bitField0_ & 0x00008000) == 0x00008000)) { to_bitField0_ |= 0x00008000; } result.maxItems_ = maxItems_; if (((from_bitField0_ & 0x00010000) == 0x00010000)) { to_bitField0_ |= 0x00010000; } result.minItems_ = minItems_; if (((from_bitField0_ & 0x00020000) == 0x00020000)) { to_bitField0_ |= 0x00020000; } result.uniqueItems_ = uniqueItems_; if (((from_bitField0_ & 0x00040000) == 0x00040000)) { to_bitField0_ |= 0x00040000; } result.multipleOf_ = multipleOf_; if (enumBuilder_ == null) { if (((bitField0_ & 0x00080000) == 0x00080000)) { enum_ = java.util.Collections.unmodifiableList(enum_); bitField0_ = (bitField0_ & ~0x00080000); } result.enum_ = enum_; } else { result.enum_ = enumBuilder_.build(); } if (((from_bitField0_ & 0x00100000) == 0x00100000)) { to_bitField0_ |= 0x00080000; } result.maxProperties_ = maxProperties_; if (((from_bitField0_ & 0x00200000) == 0x00200000)) { to_bitField0_ |= 0x00100000; } result.minProperties_ = minProperties_; if (((bitField0_ & 0x00400000) == 0x00400000)) { required_ = required_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00400000); } result.required_ = required_; if (((from_bitField0_ & 0x00800000) == 0x00800000)) { to_bitField0_ |= 0x00200000; } if (itemsBuilder_ == null) { result.items_ = items_; } else { result.items_ = itemsBuilder_.build(); } if (allOfBuilder_ == null) { if (((bitField0_ & 0x01000000) == 0x01000000)) { allOf_ = java.util.Collections.unmodifiableList(allOf_); bitField0_ = (bitField0_ & ~0x01000000); } result.allOf_ = allOf_; } else { result.allOf_ = allOfBuilder_.build(); } if (oneOfBuilder_ == null) { if (((bitField0_ & 0x02000000) == 0x02000000)) { oneOf_ = java.util.Collections.unmodifiableList(oneOf_); bitField0_ = (bitField0_ & ~0x02000000); } result.oneOf_ = oneOf_; } else { result.oneOf_ = oneOfBuilder_.build(); } if (anyOfBuilder_ == null) { if (((bitField0_ & 0x04000000) == 0x04000000)) { anyOf_ = java.util.Collections.unmodifiableList(anyOf_); bitField0_ = (bitField0_ & ~0x04000000); } result.anyOf_ = anyOf_; } else { result.anyOf_ = anyOfBuilder_.build(); } if (((from_bitField0_ & 0x08000000) == 0x08000000)) { to_bitField0_ |= 0x00400000; } if (notBuilder_ == null) { result.not_ = not_; } else { result.not_ = notBuilder_.build(); } result.properties_ = internalGetProperties(); result.properties_.makeImmutable(); if (((from_bitField0_ & 0x20000000) == 0x20000000)) { to_bitField0_ |= 0x00800000; } if (additionalPropertiesBuilder_ == null) { result.additionalProperties_ = additionalProperties_; } else { result.additionalProperties_ = additionalPropertiesBuilder_.build(); } result.patternProperties_ = internalGetPatternProperties(); result.patternProperties_.makeImmutable(); result.dependencies_ = internalGetDependencies(); result.dependencies_.makeImmutable(); if (((from_bitField1_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x01000000; } if (additionalItemsBuilder_ == null) { result.additionalItems_ = additionalItems_; } else { result.additionalItems_ = additionalItemsBuilder_.build(); } result.definitions_ = internalGetDefinitions(); result.definitions_.makeImmutable(); if (((from_bitField1_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x02000000; } if (externalDocsBuilder_ == null) { result.externalDocs_ = externalDocs_; } else { result.externalDocs_ = externalDocsBuilder_.build(); } if (((from_bitField1_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x04000000; } if (exampleBuilder_ == null) { result.example_ = example_; } else { result.example_ = exampleBuilder_.build(); } if (((from_bitField1_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x08000000; } result.nullable_ = nullable_; if (((from_bitField1_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x10000000; } result.xKubernetesPreserveUnknownFields_ = xKubernetesPreserveUnknownFields_; if (((from_bitField1_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x20000000; } result.xKubernetesEmbeddedResource_ = xKubernetesEmbeddedResource_; if (((from_bitField1_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x40000000; } result.xKubernetesIntOrString_ = xKubernetesIntOrString_; if (((bitField1_ & 0x00000100) == 0x00000100)) { xKubernetesListMapKeys_ = xKubernetesListMapKeys_.getUnmodifiableView(); bitField1_ = (bitField1_ & ~0x00000100); } result.xKubernetesListMapKeys_ = xKubernetesListMapKeys_; if (((from_bitField1_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x80000000; } result.xKubernetesListType_ = xKubernetesListType_; if (((from_bitField1_ & 0x00000400) == 0x00000400)) { to_bitField1_ |= 0x00000001; } result.xKubernetesMapType_ = xKubernetesMapType_; result.bitField0_ = to_bitField0_; result.bitField1_ = to_bitField1_; 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.JSONSchemaProps) { return mergeFrom((io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps other) { if (other == io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.getDefaultInstance()) return this; if (other.hasId()) { bitField0_ |= 0x00000001; id_ = other.id_; onChanged(); } if (other.hasSchema()) { bitField0_ |= 0x00000002; schema_ = other.schema_; onChanged(); } if (other.hasRef()) { bitField0_ |= 0x00000004; ref_ = other.ref_; onChanged(); } if (other.hasDescription()) { bitField0_ |= 0x00000008; description_ = other.description_; onChanged(); } if (other.hasType()) { bitField0_ |= 0x00000010; type_ = other.type_; onChanged(); } if (other.hasFormat()) { bitField0_ |= 0x00000020; format_ = other.format_; onChanged(); } if (other.hasTitle()) { bitField0_ |= 0x00000040; title_ = other.title_; onChanged(); } if (other.hasDefault()) { mergeDefault(other.getDefault()); } if (other.hasMaximum()) { setMaximum(other.getMaximum()); } if (other.hasExclusiveMaximum()) { setExclusiveMaximum(other.getExclusiveMaximum()); } if (other.hasMinimum()) { setMinimum(other.getMinimum()); } if (other.hasExclusiveMinimum()) { setExclusiveMinimum(other.getExclusiveMinimum()); } if (other.hasMaxLength()) { setMaxLength(other.getMaxLength()); } if (other.hasMinLength()) { setMinLength(other.getMinLength()); } if (other.hasPattern()) { bitField0_ |= 0x00004000; pattern_ = other.pattern_; onChanged(); } if (other.hasMaxItems()) { setMaxItems(other.getMaxItems()); } if (other.hasMinItems()) { setMinItems(other.getMinItems()); } if (other.hasUniqueItems()) { setUniqueItems(other.getUniqueItems()); } if (other.hasMultipleOf()) { setMultipleOf(other.getMultipleOf()); } if (enumBuilder_ == null) { if (!other.enum_.isEmpty()) { if (enum_.isEmpty()) { enum_ = other.enum_; bitField0_ = (bitField0_ & ~0x00080000); } else { ensureEnumIsMutable(); enum_.addAll(other.enum_); } onChanged(); } } else { if (!other.enum_.isEmpty()) { if (enumBuilder_.isEmpty()) { enumBuilder_.dispose(); enumBuilder_ = null; enum_ = other.enum_; bitField0_ = (bitField0_ & ~0x00080000); enumBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEnumFieldBuilder() : null; } else { enumBuilder_.addAllMessages(other.enum_); } } } if (other.hasMaxProperties()) { setMaxProperties(other.getMaxProperties()); } if (other.hasMinProperties()) { setMinProperties(other.getMinProperties()); } if (!other.required_.isEmpty()) { if (required_.isEmpty()) { required_ = other.required_; bitField0_ = (bitField0_ & ~0x00400000); } else { ensureRequiredIsMutable(); required_.addAll(other.required_); } onChanged(); } if (other.hasItems()) { mergeItems(other.getItems()); } if (allOfBuilder_ == null) { if (!other.allOf_.isEmpty()) { if (allOf_.isEmpty()) { allOf_ = other.allOf_; bitField0_ = (bitField0_ & ~0x01000000); } else { ensureAllOfIsMutable(); allOf_.addAll(other.allOf_); } onChanged(); } } else { if (!other.allOf_.isEmpty()) { if (allOfBuilder_.isEmpty()) { allOfBuilder_.dispose(); allOfBuilder_ = null; allOf_ = other.allOf_; bitField0_ = (bitField0_ & ~0x01000000); allOfBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAllOfFieldBuilder() : null; } else { allOfBuilder_.addAllMessages(other.allOf_); } } } if (oneOfBuilder_ == null) { if (!other.oneOf_.isEmpty()) { if (oneOf_.isEmpty()) { oneOf_ = other.oneOf_; bitField0_ = (bitField0_ & ~0x02000000); } else { ensureOneOfIsMutable(); oneOf_.addAll(other.oneOf_); } onChanged(); } } else { if (!other.oneOf_.isEmpty()) { if (oneOfBuilder_.isEmpty()) { oneOfBuilder_.dispose(); oneOfBuilder_ = null; oneOf_ = other.oneOf_; bitField0_ = (bitField0_ & ~0x02000000); oneOfBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOneOfFieldBuilder() : null; } else { oneOfBuilder_.addAllMessages(other.oneOf_); } } } if (anyOfBuilder_ == null) { if (!other.anyOf_.isEmpty()) { if (anyOf_.isEmpty()) { anyOf_ = other.anyOf_; bitField0_ = (bitField0_ & ~0x04000000); } else { ensureAnyOfIsMutable(); anyOf_.addAll(other.anyOf_); } onChanged(); } } else { if (!other.anyOf_.isEmpty()) { if (anyOfBuilder_.isEmpty()) { anyOfBuilder_.dispose(); anyOfBuilder_ = null; anyOf_ = other.anyOf_; bitField0_ = (bitField0_ & ~0x04000000); anyOfBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAnyOfFieldBuilder() : null; } else { anyOfBuilder_.addAllMessages(other.anyOf_); } } } if (other.hasNot()) { mergeNot(other.getNot()); } internalGetMutableProperties().mergeFrom(other.internalGetProperties()); if (other.hasAdditionalProperties()) { mergeAdditionalProperties(other.getAdditionalProperties()); } internalGetMutablePatternProperties().mergeFrom(other.internalGetPatternProperties()); internalGetMutableDependencies().mergeFrom(other.internalGetDependencies()); if (other.hasAdditionalItems()) { mergeAdditionalItems(other.getAdditionalItems()); } internalGetMutableDefinitions().mergeFrom(other.internalGetDefinitions()); if (other.hasExternalDocs()) { mergeExternalDocs(other.getExternalDocs()); } if (other.hasExample()) { mergeExample(other.getExample()); } if (other.hasNullable()) { setNullable(other.getNullable()); } if (other.hasXKubernetesPreserveUnknownFields()) { setXKubernetesPreserveUnknownFields(other.getXKubernetesPreserveUnknownFields()); } if (other.hasXKubernetesEmbeddedResource()) { setXKubernetesEmbeddedResource(other.getXKubernetesEmbeddedResource()); } if (other.hasXKubernetesIntOrString()) { setXKubernetesIntOrString(other.getXKubernetesIntOrString()); } if (!other.xKubernetesListMapKeys_.isEmpty()) { if (xKubernetesListMapKeys_.isEmpty()) { xKubernetesListMapKeys_ = other.xKubernetesListMapKeys_; bitField1_ = (bitField1_ & ~0x00000100); } else { ensureXKubernetesListMapKeysIsMutable(); xKubernetesListMapKeys_.addAll(other.xKubernetesListMapKeys_); } onChanged(); } if (other.hasXKubernetesListType()) { bitField1_ |= 0x00000200; xKubernetesListType_ = other.xKubernetesListType_; onChanged(); } if (other.hasXKubernetesMapType()) { bitField1_ |= 0x00000400; xKubernetesMapType_ = other.xKubernetesMapType_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int bitField1_; private java.lang.Object id_ = ""; /** optional string id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** optional string id = 1; */ public java.lang.String getId() { java.lang.Object ref = id_; 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()) { id_ = s; } return s; } else { return (java.lang.String) ref; } } /** optional string id = 1; */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** optional string id = 1; */ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** optional string id = 1; */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = getDefaultInstance().getId(); onChanged(); return this; } /** optional string id = 1; */ public Builder setIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } private java.lang.Object schema_ = ""; /** optional string schema = 2; */ public boolean hasSchema() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** optional string schema = 2; */ public java.lang.String getSchema() { java.lang.Object ref = schema_; 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()) { schema_ = s; } return s; } else { return (java.lang.String) ref; } } /** optional string schema = 2; */ public com.google.protobuf.ByteString getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schema_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** optional string schema = 2; */ public Builder setSchema(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; schema_ = value; onChanged(); return this; } /** optional string schema = 2; */ public Builder clearSchema() { bitField0_ = (bitField0_ & ~0x00000002); schema_ = getDefaultInstance().getSchema(); onChanged(); return this; } /** optional string schema = 2; */ public Builder setSchemaBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; schema_ = value; onChanged(); return this; } private java.lang.Object ref_ = ""; /** optional string ref = 3; */ public boolean hasRef() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** optional string ref = 3; */ public java.lang.String getRef() { java.lang.Object ref = ref_; 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()) { ref_ = s; } return s; } else { return (java.lang.String) ref; } } /** optional string ref = 3; */ public com.google.protobuf.ByteString getRefBytes() { java.lang.Object ref = ref_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ref_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** optional string ref = 3; */ public Builder setRef(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; ref_ = value; onChanged(); return this; } /** optional string ref = 3; */ public Builder clearRef() { bitField0_ = (bitField0_ & ~0x00000004); ref_ = getDefaultInstance().getRef(); onChanged(); return this; } /** optional string ref = 3; */ public Builder setRefBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; ref_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** optional string description = 4; */ public boolean hasDescription() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** optional string description = 4; */ public java.lang.String getDescription() { java.lang.Object ref = description_; 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()) { description_ = s; } return s; } else { return (java.lang.String) ref; } } /** optional string description = 4; */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof 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; } } /** optional string description = 4; */ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; description_ = value; onChanged(); return this; } /** optional string description = 4; */ public Builder clearDescription() { bitField0_ = (bitField0_ & ~0x00000008); description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** 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 java.lang.Object type_ = ""; /** optional string type = 5; */ public boolean hasType() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** optional string type = 5; */ 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; } } /** optional string type = 5; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof 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; } } /** optional string type = 5; */ public Builder setType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; type_ = value; onChanged(); return this; } /** optional string type = 5; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000010); type_ = getDefaultInstance().getType(); onChanged(); return this; } /** optional string type = 5; */ public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; type_ = value; onChanged(); return this; } private java.lang.Object format_ = ""; /** * * *
       * format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated:
       * - bsonobjectid: a bson object ID, i.e. a 24 characters hex string
       * - uri: an URI as parsed by Golang net/url.ParseRequestURI
       * - email: an email address as parsed by Golang net/mail.ParseAddress
       * - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034].
       * - ipv4: an IPv4 IP as parsed by Golang net.ParseIP
       * - ipv6: an IPv6 IP as parsed by Golang net.ParseIP
       * - cidr: a CIDR as parsed by Golang net.ParseCIDR
       * - mac: a MAC address as parsed by Golang net.ParseMAC
       * - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$
       * - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$
       * - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$
       * - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$
       * - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041"
       * - isbn10: an ISBN10 number string like "0321751043"
       * - isbn13: an ISBN13 number string like "978-0321751041"
       * - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\\d{3})\\d{11})$ with any non digit characters mixed in
       * - ssn: a U.S. social security number following the regex ^\\d{3}[- ]?\\d{2}[- ]?\\d{4}$
       * - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
       * - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559"
       * - byte: base64 encoded binary data
       * - password: any kind of string
       * - date: a date string like "2006-01-02" as defined by full-date in RFC3339
       * - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format
       * - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339.
       * 
* * optional string format = 6; */ public boolean hasFormat() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated:
       * - bsonobjectid: a bson object ID, i.e. a 24 characters hex string
       * - uri: an URI as parsed by Golang net/url.ParseRequestURI
       * - email: an email address as parsed by Golang net/mail.ParseAddress
       * - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034].
       * - ipv4: an IPv4 IP as parsed by Golang net.ParseIP
       * - ipv6: an IPv6 IP as parsed by Golang net.ParseIP
       * - cidr: a CIDR as parsed by Golang net.ParseCIDR
       * - mac: a MAC address as parsed by Golang net.ParseMAC
       * - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$
       * - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$
       * - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$
       * - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$
       * - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041"
       * - isbn10: an ISBN10 number string like "0321751043"
       * - isbn13: an ISBN13 number string like "978-0321751041"
       * - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\\d{3})\\d{11})$ with any non digit characters mixed in
       * - ssn: a U.S. social security number following the regex ^\\d{3}[- ]?\\d{2}[- ]?\\d{4}$
       * - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
       * - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559"
       * - byte: base64 encoded binary data
       * - password: any kind of string
       * - date: a date string like "2006-01-02" as defined by full-date in RFC3339
       * - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format
       * - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339.
       * 
* * optional string format = 6; */ 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 OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated:
       * - bsonobjectid: a bson object ID, i.e. a 24 characters hex string
       * - uri: an URI as parsed by Golang net/url.ParseRequestURI
       * - email: an email address as parsed by Golang net/mail.ParseAddress
       * - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034].
       * - ipv4: an IPv4 IP as parsed by Golang net.ParseIP
       * - ipv6: an IPv6 IP as parsed by Golang net.ParseIP
       * - cidr: a CIDR as parsed by Golang net.ParseCIDR
       * - mac: a MAC address as parsed by Golang net.ParseMAC
       * - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$
       * - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$
       * - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$
       * - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$
       * - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041"
       * - isbn10: an ISBN10 number string like "0321751043"
       * - isbn13: an ISBN13 number string like "978-0321751041"
       * - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\\d{3})\\d{11})$ with any non digit characters mixed in
       * - ssn: a U.S. social security number following the regex ^\\d{3}[- ]?\\d{2}[- ]?\\d{4}$
       * - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
       * - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559"
       * - byte: base64 encoded binary data
       * - password: any kind of string
       * - date: a date string like "2006-01-02" as defined by full-date in RFC3339
       * - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format
       * - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339.
       * 
* * optional string format = 6; */ public com.google.protobuf.ByteString getFormatBytes() { java.lang.Object ref = format_; if (ref instanceof 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; } } /** * * *
       * format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated:
       * - bsonobjectid: a bson object ID, i.e. a 24 characters hex string
       * - uri: an URI as parsed by Golang net/url.ParseRequestURI
       * - email: an email address as parsed by Golang net/mail.ParseAddress
       * - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034].
       * - ipv4: an IPv4 IP as parsed by Golang net.ParseIP
       * - ipv6: an IPv6 IP as parsed by Golang net.ParseIP
       * - cidr: a CIDR as parsed by Golang net.ParseCIDR
       * - mac: a MAC address as parsed by Golang net.ParseMAC
       * - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$
       * - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$
       * - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$
       * - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$
       * - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041"
       * - isbn10: an ISBN10 number string like "0321751043"
       * - isbn13: an ISBN13 number string like "978-0321751041"
       * - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\\d{3})\\d{11})$ with any non digit characters mixed in
       * - ssn: a U.S. social security number following the regex ^\\d{3}[- ]?\\d{2}[- ]?\\d{4}$
       * - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
       * - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559"
       * - byte: base64 encoded binary data
       * - password: any kind of string
       * - date: a date string like "2006-01-02" as defined by full-date in RFC3339
       * - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format
       * - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339.
       * 
* * optional string format = 6; */ public Builder setFormat(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; format_ = value; onChanged(); return this; } /** * * *
       * format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated:
       * - bsonobjectid: a bson object ID, i.e. a 24 characters hex string
       * - uri: an URI as parsed by Golang net/url.ParseRequestURI
       * - email: an email address as parsed by Golang net/mail.ParseAddress
       * - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034].
       * - ipv4: an IPv4 IP as parsed by Golang net.ParseIP
       * - ipv6: an IPv6 IP as parsed by Golang net.ParseIP
       * - cidr: a CIDR as parsed by Golang net.ParseCIDR
       * - mac: a MAC address as parsed by Golang net.ParseMAC
       * - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$
       * - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$
       * - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$
       * - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$
       * - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041"
       * - isbn10: an ISBN10 number string like "0321751043"
       * - isbn13: an ISBN13 number string like "978-0321751041"
       * - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\\d{3})\\d{11})$ with any non digit characters mixed in
       * - ssn: a U.S. social security number following the regex ^\\d{3}[- ]?\\d{2}[- ]?\\d{4}$
       * - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
       * - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559"
       * - byte: base64 encoded binary data
       * - password: any kind of string
       * - date: a date string like "2006-01-02" as defined by full-date in RFC3339
       * - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format
       * - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339.
       * 
* * optional string format = 6; */ public Builder clearFormat() { bitField0_ = (bitField0_ & ~0x00000020); format_ = getDefaultInstance().getFormat(); onChanged(); return this; } /** * * *
       * format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated:
       * - bsonobjectid: a bson object ID, i.e. a 24 characters hex string
       * - uri: an URI as parsed by Golang net/url.ParseRequestURI
       * - email: an email address as parsed by Golang net/mail.ParseAddress
       * - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034].
       * - ipv4: an IPv4 IP as parsed by Golang net.ParseIP
       * - ipv6: an IPv6 IP as parsed by Golang net.ParseIP
       * - cidr: a CIDR as parsed by Golang net.ParseCIDR
       * - mac: a MAC address as parsed by Golang net.ParseMAC
       * - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$
       * - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$
       * - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$
       * - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$
       * - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041"
       * - isbn10: an ISBN10 number string like "0321751043"
       * - isbn13: an ISBN13 number string like "978-0321751041"
       * - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\\d{3})\\d{11})$ with any non digit characters mixed in
       * - ssn: a U.S. social security number following the regex ^\\d{3}[- ]?\\d{2}[- ]?\\d{4}$
       * - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
       * - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559"
       * - byte: base64 encoded binary data
       * - password: any kind of string
       * - date: a date string like "2006-01-02" as defined by full-date in RFC3339
       * - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format
       * - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339.
       * 
* * optional string format = 6; */ public Builder setFormatBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; format_ = value; onChanged(); return this; } private java.lang.Object title_ = ""; /** optional string title = 7; */ public boolean hasTitle() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** optional string title = 7; */ public java.lang.String getTitle() { java.lang.Object ref = title_; 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()) { title_ = s; } return s; } else { return (java.lang.String) ref; } } /** optional string title = 7; */ public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); title_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** optional string title = 7; */ public Builder setTitle(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; title_ = value; onChanged(); return this; } /** optional string title = 7; */ public Builder clearTitle() { bitField0_ = (bitField0_ & ~0x00000040); title_ = getDefaultInstance().getTitle(); onChanged(); return this; } /** optional string title = 7; */ public Builder setTitleBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; title_ = value; onChanged(); return this; } private io.kubernetes.client.proto.V1beta1Apiextensions.JSON default_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSON, io.kubernetes.client.proto.V1beta1Apiextensions.JSON.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONOrBuilder> defaultBuilder_; /** * * *
       * default is a default value for undefined object fields.
       * Defaulting is a beta feature under the CustomResourceDefaulting feature gate.
       * CustomResourceDefinitions with defaults must be created using the v1 (or newer) CustomResourceDefinition API.
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON default = 8; * */ public boolean hasDefault() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
       * default is a default value for undefined object fields.
       * Defaulting is a beta feature under the CustomResourceDefaulting feature gate.
       * CustomResourceDefinitions with defaults must be created using the v1 (or newer) CustomResourceDefinition API.
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON default = 8; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSON getDefault() { if (defaultBuilder_ == null) { return default_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSON.getDefaultInstance() : default_; } else { return defaultBuilder_.getMessage(); } } /** * * *
       * default is a default value for undefined object fields.
       * Defaulting is a beta feature under the CustomResourceDefaulting feature gate.
       * CustomResourceDefinitions with defaults must be created using the v1 (or newer) CustomResourceDefinition API.
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON default = 8; * */ public Builder setDefault(io.kubernetes.client.proto.V1beta1Apiextensions.JSON value) { if (defaultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } default_ = value; onChanged(); } else { defaultBuilder_.setMessage(value); } bitField0_ |= 0x00000080; return this; } /** * * *
       * default is a default value for undefined object fields.
       * Defaulting is a beta feature under the CustomResourceDefaulting feature gate.
       * CustomResourceDefinitions with defaults must be created using the v1 (or newer) CustomResourceDefinition API.
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON default = 8; * */ public Builder setDefault( io.kubernetes.client.proto.V1beta1Apiextensions.JSON.Builder builderForValue) { if (defaultBuilder_ == null) { default_ = builderForValue.build(); onChanged(); } else { defaultBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; return this; } /** * * *
       * default is a default value for undefined object fields.
       * Defaulting is a beta feature under the CustomResourceDefaulting feature gate.
       * CustomResourceDefinitions with defaults must be created using the v1 (or newer) CustomResourceDefinition API.
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON default = 8; * */ public Builder mergeDefault(io.kubernetes.client.proto.V1beta1Apiextensions.JSON value) { if (defaultBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080) && default_ != null && default_ != io.kubernetes.client.proto.V1beta1Apiextensions.JSON.getDefaultInstance()) { default_ = io.kubernetes.client.proto.V1beta1Apiextensions.JSON .newBuilder(default_) .mergeFrom(value) .buildPartial(); } else { default_ = value; } onChanged(); } else { defaultBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; return this; } /** * * *
       * default is a default value for undefined object fields.
       * Defaulting is a beta feature under the CustomResourceDefaulting feature gate.
       * CustomResourceDefinitions with defaults must be created using the v1 (or newer) CustomResourceDefinition API.
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON default = 8; * */ public Builder clearDefault() { if (defaultBuilder_ == null) { default_ = null; onChanged(); } else { defaultBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } /** * * *
       * default is a default value for undefined object fields.
       * Defaulting is a beta feature under the CustomResourceDefaulting feature gate.
       * CustomResourceDefinitions with defaults must be created using the v1 (or newer) CustomResourceDefinition API.
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON default = 8; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSON.Builder getDefaultBuilder() { bitField0_ |= 0x00000080; onChanged(); return getDefaultFieldBuilder().getBuilder(); } /** * * *
       * default is a default value for undefined object fields.
       * Defaulting is a beta feature under the CustomResourceDefaulting feature gate.
       * CustomResourceDefinitions with defaults must be created using the v1 (or newer) CustomResourceDefinition API.
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON default = 8; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONOrBuilder getDefaultOrBuilder() { if (defaultBuilder_ != null) { return defaultBuilder_.getMessageOrBuilder(); } else { return default_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSON.getDefaultInstance() : default_; } } /** * * *
       * default is a default value for undefined object fields.
       * Defaulting is a beta feature under the CustomResourceDefaulting feature gate.
       * CustomResourceDefinitions with defaults must be created using the v1 (or newer) CustomResourceDefinition API.
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON default = 8; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSON, io.kubernetes.client.proto.V1beta1Apiextensions.JSON.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONOrBuilder> getDefaultFieldBuilder() { if (defaultBuilder_ == null) { defaultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSON, io.kubernetes.client.proto.V1beta1Apiextensions.JSON.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONOrBuilder>( getDefault(), getParentForChildren(), isClean()); default_ = null; } return defaultBuilder_; } private double maximum_; /** optional double maximum = 9; */ public boolean hasMaximum() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** optional double maximum = 9; */ public double getMaximum() { return maximum_; } /** optional double maximum = 9; */ public Builder setMaximum(double value) { bitField0_ |= 0x00000100; maximum_ = value; onChanged(); return this; } /** optional double maximum = 9; */ public Builder clearMaximum() { bitField0_ = (bitField0_ & ~0x00000100); maximum_ = 0D; onChanged(); return this; } private boolean exclusiveMaximum_; /** optional bool exclusiveMaximum = 10; */ public boolean hasExclusiveMaximum() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** optional bool exclusiveMaximum = 10; */ public boolean getExclusiveMaximum() { return exclusiveMaximum_; } /** optional bool exclusiveMaximum = 10; */ public Builder setExclusiveMaximum(boolean value) { bitField0_ |= 0x00000200; exclusiveMaximum_ = value; onChanged(); return this; } /** optional bool exclusiveMaximum = 10; */ public Builder clearExclusiveMaximum() { bitField0_ = (bitField0_ & ~0x00000200); exclusiveMaximum_ = false; onChanged(); return this; } private double minimum_; /** optional double minimum = 11; */ public boolean hasMinimum() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** optional double minimum = 11; */ public double getMinimum() { return minimum_; } /** optional double minimum = 11; */ public Builder setMinimum(double value) { bitField0_ |= 0x00000400; minimum_ = value; onChanged(); return this; } /** optional double minimum = 11; */ public Builder clearMinimum() { bitField0_ = (bitField0_ & ~0x00000400); minimum_ = 0D; onChanged(); return this; } private boolean exclusiveMinimum_; /** optional bool exclusiveMinimum = 12; */ public boolean hasExclusiveMinimum() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** optional bool exclusiveMinimum = 12; */ public boolean getExclusiveMinimum() { return exclusiveMinimum_; } /** optional bool exclusiveMinimum = 12; */ public Builder setExclusiveMinimum(boolean value) { bitField0_ |= 0x00000800; exclusiveMinimum_ = value; onChanged(); return this; } /** optional bool exclusiveMinimum = 12; */ public Builder clearExclusiveMinimum() { bitField0_ = (bitField0_ & ~0x00000800); exclusiveMinimum_ = false; onChanged(); return this; } private long maxLength_; /** optional int64 maxLength = 13; */ public boolean hasMaxLength() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** optional int64 maxLength = 13; */ public long getMaxLength() { return maxLength_; } /** optional int64 maxLength = 13; */ public Builder setMaxLength(long value) { bitField0_ |= 0x00001000; maxLength_ = value; onChanged(); return this; } /** optional int64 maxLength = 13; */ public Builder clearMaxLength() { bitField0_ = (bitField0_ & ~0x00001000); maxLength_ = 0L; onChanged(); return this; } private long minLength_; /** optional int64 minLength = 14; */ public boolean hasMinLength() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** optional int64 minLength = 14; */ public long getMinLength() { return minLength_; } /** optional int64 minLength = 14; */ public Builder setMinLength(long value) { bitField0_ |= 0x00002000; minLength_ = value; onChanged(); return this; } /** optional int64 minLength = 14; */ public Builder clearMinLength() { bitField0_ = (bitField0_ & ~0x00002000); minLength_ = 0L; onChanged(); return this; } private java.lang.Object pattern_ = ""; /** optional string pattern = 15; */ public boolean hasPattern() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** optional string pattern = 15; */ public java.lang.String getPattern() { java.lang.Object ref = pattern_; 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()) { pattern_ = s; } return s; } else { return (java.lang.String) ref; } } /** optional string pattern = 15; */ public com.google.protobuf.ByteString getPatternBytes() { java.lang.Object ref = pattern_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pattern_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** optional string pattern = 15; */ public Builder setPattern(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00004000; pattern_ = value; onChanged(); return this; } /** optional string pattern = 15; */ public Builder clearPattern() { bitField0_ = (bitField0_ & ~0x00004000); pattern_ = getDefaultInstance().getPattern(); onChanged(); return this; } /** optional string pattern = 15; */ public Builder setPatternBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00004000; pattern_ = value; onChanged(); return this; } private long maxItems_; /** optional int64 maxItems = 16; */ public boolean hasMaxItems() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** optional int64 maxItems = 16; */ public long getMaxItems() { return maxItems_; } /** optional int64 maxItems = 16; */ public Builder setMaxItems(long value) { bitField0_ |= 0x00008000; maxItems_ = value; onChanged(); return this; } /** optional int64 maxItems = 16; */ public Builder clearMaxItems() { bitField0_ = (bitField0_ & ~0x00008000); maxItems_ = 0L; onChanged(); return this; } private long minItems_; /** optional int64 minItems = 17; */ public boolean hasMinItems() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** optional int64 minItems = 17; */ public long getMinItems() { return minItems_; } /** optional int64 minItems = 17; */ public Builder setMinItems(long value) { bitField0_ |= 0x00010000; minItems_ = value; onChanged(); return this; } /** optional int64 minItems = 17; */ public Builder clearMinItems() { bitField0_ = (bitField0_ & ~0x00010000); minItems_ = 0L; onChanged(); return this; } private boolean uniqueItems_; /** optional bool uniqueItems = 18; */ public boolean hasUniqueItems() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** optional bool uniqueItems = 18; */ public boolean getUniqueItems() { return uniqueItems_; } /** optional bool uniqueItems = 18; */ public Builder setUniqueItems(boolean value) { bitField0_ |= 0x00020000; uniqueItems_ = value; onChanged(); return this; } /** optional bool uniqueItems = 18; */ public Builder clearUniqueItems() { bitField0_ = (bitField0_ & ~0x00020000); uniqueItems_ = false; onChanged(); return this; } private double multipleOf_; /** optional double multipleOf = 19; */ public boolean hasMultipleOf() { return ((bitField0_ & 0x00040000) == 0x00040000); } /** optional double multipleOf = 19; */ public double getMultipleOf() { return multipleOf_; } /** optional double multipleOf = 19; */ public Builder setMultipleOf(double value) { bitField0_ |= 0x00040000; multipleOf_ = value; onChanged(); return this; } /** optional double multipleOf = 19; */ public Builder clearMultipleOf() { bitField0_ = (bitField0_ & ~0x00040000); multipleOf_ = 0D; onChanged(); return this; } private java.util.List enum_ = java.util.Collections.emptyList(); private void ensureEnumIsMutable() { if (!((bitField0_ & 0x00080000) == 0x00080000)) { enum_ = new java.util.ArrayList(enum_); bitField0_ |= 0x00080000; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSON, io.kubernetes.client.proto.V1beta1Apiextensions.JSON.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONOrBuilder> enumBuilder_; /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON enum = 20; * */ public java.util.List getEnumList() { if (enumBuilder_ == null) { return java.util.Collections.unmodifiableList(enum_); } else { return enumBuilder_.getMessageList(); } } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON enum = 20; * */ public int getEnumCount() { if (enumBuilder_ == null) { return enum_.size(); } else { return enumBuilder_.getCount(); } } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON enum = 20; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSON getEnum(int index) { if (enumBuilder_ == null) { return enum_.get(index); } else { return enumBuilder_.getMessage(index); } } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON enum = 20; * */ public Builder setEnum( int index, io.kubernetes.client.proto.V1beta1Apiextensions.JSON value) { if (enumBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEnumIsMutable(); enum_.set(index, value); onChanged(); } else { enumBuilder_.setMessage(index, value); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON enum = 20; * */ public Builder setEnum( int index, io.kubernetes.client.proto.V1beta1Apiextensions.JSON.Builder builderForValue) { if (enumBuilder_ == null) { ensureEnumIsMutable(); enum_.set(index, builderForValue.build()); onChanged(); } else { enumBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON enum = 20; * */ public Builder addEnum(io.kubernetes.client.proto.V1beta1Apiextensions.JSON value) { if (enumBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEnumIsMutable(); enum_.add(value); onChanged(); } else { enumBuilder_.addMessage(value); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON enum = 20; * */ public Builder addEnum( int index, io.kubernetes.client.proto.V1beta1Apiextensions.JSON value) { if (enumBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEnumIsMutable(); enum_.add(index, value); onChanged(); } else { enumBuilder_.addMessage(index, value); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON enum = 20; * */ public Builder addEnum( io.kubernetes.client.proto.V1beta1Apiextensions.JSON.Builder builderForValue) { if (enumBuilder_ == null) { ensureEnumIsMutable(); enum_.add(builderForValue.build()); onChanged(); } else { enumBuilder_.addMessage(builderForValue.build()); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON enum = 20; * */ public Builder addEnum( int index, io.kubernetes.client.proto.V1beta1Apiextensions.JSON.Builder builderForValue) { if (enumBuilder_ == null) { ensureEnumIsMutable(); enum_.add(index, builderForValue.build()); onChanged(); } else { enumBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON enum = 20; * */ public Builder addAllEnum( java.lang.Iterable values) { if (enumBuilder_ == null) { ensureEnumIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, enum_); onChanged(); } else { enumBuilder_.addAllMessages(values); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON enum = 20; * */ public Builder clearEnum() { if (enumBuilder_ == null) { enum_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00080000); onChanged(); } else { enumBuilder_.clear(); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON enum = 20; * */ public Builder removeEnum(int index) { if (enumBuilder_ == null) { ensureEnumIsMutable(); enum_.remove(index); onChanged(); } else { enumBuilder_.remove(index); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON enum = 20; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSON.Builder getEnumBuilder( int index) { return getEnumFieldBuilder().getBuilder(index); } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON enum = 20; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONOrBuilder getEnumOrBuilder( int index) { if (enumBuilder_ == null) { return enum_.get(index); } else { return enumBuilder_.getMessageOrBuilder(index); } } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON enum = 20; * */ public java.util.List getEnumOrBuilderList() { if (enumBuilder_ != null) { return enumBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(enum_); } } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON enum = 20; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSON.Builder addEnumBuilder() { return getEnumFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1beta1Apiextensions.JSON.getDefaultInstance()); } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON enum = 20; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSON.Builder addEnumBuilder( int index) { return getEnumFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1beta1Apiextensions.JSON.getDefaultInstance()); } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON enum = 20; * */ public java.util.List getEnumBuilderList() { return getEnumFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSON, io.kubernetes.client.proto.V1beta1Apiextensions.JSON.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONOrBuilder> getEnumFieldBuilder() { if (enumBuilder_ == null) { enumBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSON, io.kubernetes.client.proto.V1beta1Apiextensions.JSON.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONOrBuilder>( enum_, ((bitField0_ & 0x00080000) == 0x00080000), getParentForChildren(), isClean()); enum_ = null; } return enumBuilder_; } private long maxProperties_; /** optional int64 maxProperties = 21; */ public boolean hasMaxProperties() { return ((bitField0_ & 0x00100000) == 0x00100000); } /** optional int64 maxProperties = 21; */ public long getMaxProperties() { return maxProperties_; } /** optional int64 maxProperties = 21; */ public Builder setMaxProperties(long value) { bitField0_ |= 0x00100000; maxProperties_ = value; onChanged(); return this; } /** optional int64 maxProperties = 21; */ public Builder clearMaxProperties() { bitField0_ = (bitField0_ & ~0x00100000); maxProperties_ = 0L; onChanged(); return this; } private long minProperties_; /** optional int64 minProperties = 22; */ public boolean hasMinProperties() { return ((bitField0_ & 0x00200000) == 0x00200000); } /** optional int64 minProperties = 22; */ public long getMinProperties() { return minProperties_; } /** optional int64 minProperties = 22; */ public Builder setMinProperties(long value) { bitField0_ |= 0x00200000; minProperties_ = value; onChanged(); return this; } /** optional int64 minProperties = 22; */ public Builder clearMinProperties() { bitField0_ = (bitField0_ & ~0x00200000); minProperties_ = 0L; onChanged(); return this; } private com.google.protobuf.LazyStringList required_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRequiredIsMutable() { if (!((bitField0_ & 0x00400000) == 0x00400000)) { required_ = new com.google.protobuf.LazyStringArrayList(required_); bitField0_ |= 0x00400000; } } /** repeated string required = 23; */ public com.google.protobuf.ProtocolStringList getRequiredList() { return required_.getUnmodifiableView(); } /** repeated string required = 23; */ public int getRequiredCount() { return required_.size(); } /** repeated string required = 23; */ public java.lang.String getRequired(int index) { return required_.get(index); } /** repeated string required = 23; */ public com.google.protobuf.ByteString getRequiredBytes(int index) { return required_.getByteString(index); } /** repeated string required = 23; */ public Builder setRequired(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRequiredIsMutable(); required_.set(index, value); onChanged(); return this; } /** repeated string required = 23; */ public Builder addRequired(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRequiredIsMutable(); required_.add(value); onChanged(); return this; } /** repeated string required = 23; */ public Builder addAllRequired(java.lang.Iterable values) { ensureRequiredIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, required_); onChanged(); return this; } /** repeated string required = 23; */ public Builder clearRequired() { required_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00400000); onChanged(); return this; } /** repeated string required = 23; */ public Builder addRequiredBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureRequiredIsMutable(); required_.add(value); onChanged(); return this; } private io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray items_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArrayOrBuilder> itemsBuilder_; /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrArray items = 24; * */ public boolean hasItems() { return ((bitField0_ & 0x00800000) == 0x00800000); } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrArray items = 24; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray getItems() { if (itemsBuilder_ == null) { return items_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray .getDefaultInstance() : items_; } else { return itemsBuilder_.getMessage(); } } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrArray items = 24; * */ public Builder setItems( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } items_ = value; onChanged(); } else { itemsBuilder_.setMessage(value); } bitField0_ |= 0x00800000; return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrArray items = 24; * */ public Builder setItems( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray.Builder builderForValue) { if (itemsBuilder_ == null) { items_ = builderForValue.build(); onChanged(); } else { itemsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00800000; return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrArray items = 24; * */ public Builder mergeItems( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray value) { if (itemsBuilder_ == null) { if (((bitField0_ & 0x00800000) == 0x00800000) && items_ != null && items_ != io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray .getDefaultInstance()) { items_ = io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray.newBuilder( items_) .mergeFrom(value) .buildPartial(); } else { items_ = value; } onChanged(); } else { itemsBuilder_.mergeFrom(value); } bitField0_ |= 0x00800000; return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrArray items = 24; * */ public Builder clearItems() { if (itemsBuilder_ == null) { items_ = null; onChanged(); } else { itemsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00800000); return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrArray items = 24; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray.Builder getItemsBuilder() { bitField0_ |= 0x00800000; onChanged(); return getItemsFieldBuilder().getBuilder(); } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrArray items = 24; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArrayOrBuilder getItemsOrBuilder() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilder(); } else { return items_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray .getDefaultInstance() : items_; } } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrArray items = 24; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArrayOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArrayOrBuilder>( getItems(), getParentForChildren(), isClean()); items_ = null; } return itemsBuilder_; } private java.util.List allOf_ = java.util.Collections.emptyList(); private void ensureAllOfIsMutable() { if (!((bitField0_ & 0x01000000) == 0x01000000)) { allOf_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps>(allOf_); bitField0_ |= 0x01000000; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder> allOfBuilder_; /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps allOf = 25; * */ public java.util.List getAllOfList() { if (allOfBuilder_ == null) { return java.util.Collections.unmodifiableList(allOf_); } else { return allOfBuilder_.getMessageList(); } } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps allOf = 25; * */ public int getAllOfCount() { if (allOfBuilder_ == null) { return allOf_.size(); } else { return allOfBuilder_.getCount(); } } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps allOf = 25; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getAllOf(int index) { if (allOfBuilder_ == null) { return allOf_.get(index); } else { return allOfBuilder_.getMessage(index); } } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps allOf = 25; * */ public Builder setAllOf( int index, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps value) { if (allOfBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAllOfIsMutable(); allOf_.set(index, value); onChanged(); } else { allOfBuilder_.setMessage(index, value); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps allOf = 25; * */ public Builder setAllOf( int index, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder builderForValue) { if (allOfBuilder_ == null) { ensureAllOfIsMutable(); allOf_.set(index, builderForValue.build()); onChanged(); } else { allOfBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps allOf = 25; * */ public Builder addAllOf( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps value) { if (allOfBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAllOfIsMutable(); allOf_.add(value); onChanged(); } else { allOfBuilder_.addMessage(value); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps allOf = 25; * */ public Builder addAllOf( int index, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps value) { if (allOfBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAllOfIsMutable(); allOf_.add(index, value); onChanged(); } else { allOfBuilder_.addMessage(index, value); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps allOf = 25; * */ public Builder addAllOf( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder builderForValue) { if (allOfBuilder_ == null) { ensureAllOfIsMutable(); allOf_.add(builderForValue.build()); onChanged(); } else { allOfBuilder_.addMessage(builderForValue.build()); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps allOf = 25; * */ public Builder addAllOf( int index, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder builderForValue) { if (allOfBuilder_ == null) { ensureAllOfIsMutable(); allOf_.add(index, builderForValue.build()); onChanged(); } else { allOfBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps allOf = 25; * */ public Builder addAllAllOf( java.lang.Iterable< ? extends io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> values) { if (allOfBuilder_ == null) { ensureAllOfIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allOf_); onChanged(); } else { allOfBuilder_.addAllMessages(values); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps allOf = 25; * */ public Builder clearAllOf() { if (allOfBuilder_ == null) { allOf_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x01000000); onChanged(); } else { allOfBuilder_.clear(); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps allOf = 25; * */ public Builder removeAllOf(int index) { if (allOfBuilder_ == null) { ensureAllOfIsMutable(); allOf_.remove(index); onChanged(); } else { allOfBuilder_.remove(index); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps allOf = 25; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder getAllOfBuilder(int index) { return getAllOfFieldBuilder().getBuilder(index); } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps allOf = 25; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder getAllOfOrBuilder(int index) { if (allOfBuilder_ == null) { return allOf_.get(index); } else { return allOfBuilder_.getMessageOrBuilder(index); } } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps allOf = 25; * */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder> getAllOfOrBuilderList() { if (allOfBuilder_ != null) { return allOfBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(allOf_); } } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps allOf = 25; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder addAllOfBuilder() { return getAllOfFieldBuilder() .addBuilder( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps .getDefaultInstance()); } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps allOf = 25; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder addAllOfBuilder(int index) { return getAllOfFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps .getDefaultInstance()); } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps allOf = 25; * */ public java.util.List getAllOfBuilderList() { return getAllOfFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder> getAllOfFieldBuilder() { if (allOfBuilder_ == null) { allOfBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder>( allOf_, ((bitField0_ & 0x01000000) == 0x01000000), getParentForChildren(), isClean()); allOf_ = null; } return allOfBuilder_; } private java.util.List oneOf_ = java.util.Collections.emptyList(); private void ensureOneOfIsMutable() { if (!((bitField0_ & 0x02000000) == 0x02000000)) { oneOf_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps>(oneOf_); bitField0_ |= 0x02000000; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder> oneOfBuilder_; /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps oneOf = 26; * */ public java.util.List getOneOfList() { if (oneOfBuilder_ == null) { return java.util.Collections.unmodifiableList(oneOf_); } else { return oneOfBuilder_.getMessageList(); } } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps oneOf = 26; * */ public int getOneOfCount() { if (oneOfBuilder_ == null) { return oneOf_.size(); } else { return oneOfBuilder_.getCount(); } } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps oneOf = 26; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getOneOf(int index) { if (oneOfBuilder_ == null) { return oneOf_.get(index); } else { return oneOfBuilder_.getMessage(index); } } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps oneOf = 26; * */ public Builder setOneOf( int index, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps value) { if (oneOfBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOneOfIsMutable(); oneOf_.set(index, value); onChanged(); } else { oneOfBuilder_.setMessage(index, value); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps oneOf = 26; * */ public Builder setOneOf( int index, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder builderForValue) { if (oneOfBuilder_ == null) { ensureOneOfIsMutable(); oneOf_.set(index, builderForValue.build()); onChanged(); } else { oneOfBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps oneOf = 26; * */ public Builder addOneOf( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps value) { if (oneOfBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOneOfIsMutable(); oneOf_.add(value); onChanged(); } else { oneOfBuilder_.addMessage(value); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps oneOf = 26; * */ public Builder addOneOf( int index, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps value) { if (oneOfBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOneOfIsMutable(); oneOf_.add(index, value); onChanged(); } else { oneOfBuilder_.addMessage(index, value); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps oneOf = 26; * */ public Builder addOneOf( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder builderForValue) { if (oneOfBuilder_ == null) { ensureOneOfIsMutable(); oneOf_.add(builderForValue.build()); onChanged(); } else { oneOfBuilder_.addMessage(builderForValue.build()); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps oneOf = 26; * */ public Builder addOneOf( int index, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder builderForValue) { if (oneOfBuilder_ == null) { ensureOneOfIsMutable(); oneOf_.add(index, builderForValue.build()); onChanged(); } else { oneOfBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps oneOf = 26; * */ public Builder addAllOneOf( java.lang.Iterable< ? extends io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> values) { if (oneOfBuilder_ == null) { ensureOneOfIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, oneOf_); onChanged(); } else { oneOfBuilder_.addAllMessages(values); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps oneOf = 26; * */ public Builder clearOneOf() { if (oneOfBuilder_ == null) { oneOf_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x02000000); onChanged(); } else { oneOfBuilder_.clear(); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps oneOf = 26; * */ public Builder removeOneOf(int index) { if (oneOfBuilder_ == null) { ensureOneOfIsMutable(); oneOf_.remove(index); onChanged(); } else { oneOfBuilder_.remove(index); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps oneOf = 26; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder getOneOfBuilder(int index) { return getOneOfFieldBuilder().getBuilder(index); } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps oneOf = 26; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder getOneOfOrBuilder(int index) { if (oneOfBuilder_ == null) { return oneOf_.get(index); } else { return oneOfBuilder_.getMessageOrBuilder(index); } } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps oneOf = 26; * */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder> getOneOfOrBuilderList() { if (oneOfBuilder_ != null) { return oneOfBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(oneOf_); } } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps oneOf = 26; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder addOneOfBuilder() { return getOneOfFieldBuilder() .addBuilder( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps .getDefaultInstance()); } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps oneOf = 26; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder addOneOfBuilder(int index) { return getOneOfFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps .getDefaultInstance()); } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps oneOf = 26; * */ public java.util.List getOneOfBuilderList() { return getOneOfFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder> getOneOfFieldBuilder() { if (oneOfBuilder_ == null) { oneOfBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder>( oneOf_, ((bitField0_ & 0x02000000) == 0x02000000), getParentForChildren(), isClean()); oneOf_ = null; } return oneOfBuilder_; } private java.util.List anyOf_ = java.util.Collections.emptyList(); private void ensureAnyOfIsMutable() { if (!((bitField0_ & 0x04000000) == 0x04000000)) { anyOf_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps>(anyOf_); bitField0_ |= 0x04000000; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder> anyOfBuilder_; /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps anyOf = 27; * */ public java.util.List getAnyOfList() { if (anyOfBuilder_ == null) { return java.util.Collections.unmodifiableList(anyOf_); } else { return anyOfBuilder_.getMessageList(); } } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps anyOf = 27; * */ public int getAnyOfCount() { if (anyOfBuilder_ == null) { return anyOf_.size(); } else { return anyOfBuilder_.getCount(); } } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps anyOf = 27; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getAnyOf(int index) { if (anyOfBuilder_ == null) { return anyOf_.get(index); } else { return anyOfBuilder_.getMessage(index); } } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps anyOf = 27; * */ public Builder setAnyOf( int index, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps value) { if (anyOfBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAnyOfIsMutable(); anyOf_.set(index, value); onChanged(); } else { anyOfBuilder_.setMessage(index, value); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps anyOf = 27; * */ public Builder setAnyOf( int index, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder builderForValue) { if (anyOfBuilder_ == null) { ensureAnyOfIsMutable(); anyOf_.set(index, builderForValue.build()); onChanged(); } else { anyOfBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps anyOf = 27; * */ public Builder addAnyOf( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps value) { if (anyOfBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAnyOfIsMutable(); anyOf_.add(value); onChanged(); } else { anyOfBuilder_.addMessage(value); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps anyOf = 27; * */ public Builder addAnyOf( int index, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps value) { if (anyOfBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAnyOfIsMutable(); anyOf_.add(index, value); onChanged(); } else { anyOfBuilder_.addMessage(index, value); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps anyOf = 27; * */ public Builder addAnyOf( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder builderForValue) { if (anyOfBuilder_ == null) { ensureAnyOfIsMutable(); anyOf_.add(builderForValue.build()); onChanged(); } else { anyOfBuilder_.addMessage(builderForValue.build()); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps anyOf = 27; * */ public Builder addAnyOf( int index, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder builderForValue) { if (anyOfBuilder_ == null) { ensureAnyOfIsMutable(); anyOf_.add(index, builderForValue.build()); onChanged(); } else { anyOfBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps anyOf = 27; * */ public Builder addAllAnyOf( java.lang.Iterable< ? extends io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> values) { if (anyOfBuilder_ == null) { ensureAnyOfIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, anyOf_); onChanged(); } else { anyOfBuilder_.addAllMessages(values); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps anyOf = 27; * */ public Builder clearAnyOf() { if (anyOfBuilder_ == null) { anyOf_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x04000000); onChanged(); } else { anyOfBuilder_.clear(); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps anyOf = 27; * */ public Builder removeAnyOf(int index) { if (anyOfBuilder_ == null) { ensureAnyOfIsMutable(); anyOf_.remove(index); onChanged(); } else { anyOfBuilder_.remove(index); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps anyOf = 27; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder getAnyOfBuilder(int index) { return getAnyOfFieldBuilder().getBuilder(index); } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps anyOf = 27; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder getAnyOfOrBuilder(int index) { if (anyOfBuilder_ == null) { return anyOf_.get(index); } else { return anyOfBuilder_.getMessageOrBuilder(index); } } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps anyOf = 27; * */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder> getAnyOfOrBuilderList() { if (anyOfBuilder_ != null) { return anyOfBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(anyOf_); } } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps anyOf = 27; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder addAnyOfBuilder() { return getAnyOfFieldBuilder() .addBuilder( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps .getDefaultInstance()); } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps anyOf = 27; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder addAnyOfBuilder(int index) { return getAnyOfFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps .getDefaultInstance()); } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps anyOf = 27; * */ public java.util.List getAnyOfBuilderList() { return getAnyOfFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder> getAnyOfFieldBuilder() { if (anyOfBuilder_ == null) { anyOfBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder>( anyOf_, ((bitField0_ & 0x04000000) == 0x04000000), getParentForChildren(), isClean()); anyOf_ = null; } return anyOfBuilder_; } private io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps not_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder> notBuilder_; /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps not = 28; * */ public boolean hasNot() { return ((bitField0_ & 0x08000000) == 0x08000000); } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps not = 28; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getNot() { if (notBuilder_ == null) { return not_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.getDefaultInstance() : not_; } else { return notBuilder_.getMessage(); } } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps not = 28; * */ public Builder setNot(io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps value) { if (notBuilder_ == null) { if (value == null) { throw new NullPointerException(); } not_ = value; onChanged(); } else { notBuilder_.setMessage(value); } bitField0_ |= 0x08000000; return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps not = 28; * */ public Builder setNot( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder builderForValue) { if (notBuilder_ == null) { not_ = builderForValue.build(); onChanged(); } else { notBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x08000000; return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps not = 28; * */ public Builder mergeNot( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps value) { if (notBuilder_ == null) { if (((bitField0_ & 0x08000000) == 0x08000000) && not_ != null && not_ != io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps .getDefaultInstance()) { not_ = io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.newBuilder(not_) .mergeFrom(value) .buildPartial(); } else { not_ = value; } onChanged(); } else { notBuilder_.mergeFrom(value); } bitField0_ |= 0x08000000; return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps not = 28; * */ public Builder clearNot() { if (notBuilder_ == null) { not_ = null; onChanged(); } else { notBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x08000000); return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps not = 28; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder getNotBuilder() { bitField0_ |= 0x08000000; onChanged(); return getNotFieldBuilder().getBuilder(); } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps not = 28; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder getNotOrBuilder() { if (notBuilder_ != null) { return notBuilder_.getMessageOrBuilder(); } else { return not_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.getDefaultInstance() : not_; } } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps not = 28; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder> getNotFieldBuilder() { if (notBuilder_ == null) { notBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder>( getNot(), getParentForChildren(), isClean()); not_ = null; } return notBuilder_; } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> properties_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> internalGetProperties() { if (properties_ == null) { return com.google.protobuf.MapField.emptyMapField( PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> internalGetMutableProperties() { onChanged(); ; if (properties_ == null) { properties_ = com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); } if (!properties_.isMutable()) { properties_ = properties_.copy(); } return properties_; } public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> properties = 29; * */ public boolean containsProperties(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetProperties().getMap().containsKey(key); } /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Deprecated public java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> getProperties() { return getPropertiesMap(); } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> properties = 29; * */ public java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> getPropertiesMap() { return internalGetProperties().getMap(); } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> properties = 29; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getPropertiesOrDefault( java.lang.String key, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> properties = 29; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getPropertiesOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> map = internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearProperties() { internalGetMutableProperties().getMutableMap().clear(); return this; } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> properties = 29; * */ public Builder removeProperties(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableProperties().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> getMutableProperties() { return internalGetMutableProperties().getMutableMap(); } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> properties = 29; * */ public Builder putProperties( java.lang.String key, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableProperties().getMutableMap().put(key, value); return this; } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> properties = 29; * */ public Builder putAllProperties( java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> values) { internalGetMutableProperties().getMutableMap().putAll(values); return this; } private io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool additionalProperties_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBoolOrBuilder> additionalPropertiesBuilder_; /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool additionalProperties = 30; * */ public boolean hasAdditionalProperties() { return ((bitField0_ & 0x20000000) == 0x20000000); } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool additionalProperties = 30; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool getAdditionalProperties() { if (additionalPropertiesBuilder_ == null) { return additionalProperties_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool .getDefaultInstance() : additionalProperties_; } else { return additionalPropertiesBuilder_.getMessage(); } } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool additionalProperties = 30; * */ public Builder setAdditionalProperties( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool value) { if (additionalPropertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } additionalProperties_ = value; onChanged(); } else { additionalPropertiesBuilder_.setMessage(value); } bitField0_ |= 0x20000000; return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool additionalProperties = 30; * */ public Builder setAdditionalProperties( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool.Builder builderForValue) { if (additionalPropertiesBuilder_ == null) { additionalProperties_ = builderForValue.build(); onChanged(); } else { additionalPropertiesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x20000000; return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool additionalProperties = 30; * */ public Builder mergeAdditionalProperties( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool value) { if (additionalPropertiesBuilder_ == null) { if (((bitField0_ & 0x20000000) == 0x20000000) && additionalProperties_ != null && additionalProperties_ != io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool .getDefaultInstance()) { additionalProperties_ = io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool.newBuilder( additionalProperties_) .mergeFrom(value) .buildPartial(); } else { additionalProperties_ = value; } onChanged(); } else { additionalPropertiesBuilder_.mergeFrom(value); } bitField0_ |= 0x20000000; return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool additionalProperties = 30; * */ public Builder clearAdditionalProperties() { if (additionalPropertiesBuilder_ == null) { additionalProperties_ = null; onChanged(); } else { additionalPropertiesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x20000000); return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool additionalProperties = 30; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool.Builder getAdditionalPropertiesBuilder() { bitField0_ |= 0x20000000; onChanged(); return getAdditionalPropertiesFieldBuilder().getBuilder(); } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool additionalProperties = 30; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBoolOrBuilder getAdditionalPropertiesOrBuilder() { if (additionalPropertiesBuilder_ != null) { return additionalPropertiesBuilder_.getMessageOrBuilder(); } else { return additionalProperties_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool .getDefaultInstance() : additionalProperties_; } } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool additionalProperties = 30; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBoolOrBuilder> getAdditionalPropertiesFieldBuilder() { if (additionalPropertiesBuilder_ == null) { additionalPropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBoolOrBuilder>( getAdditionalProperties(), getParentForChildren(), isClean()); additionalProperties_ = null; } return additionalPropertiesBuilder_; } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> patternProperties_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> internalGetPatternProperties() { if (patternProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( PatternPropertiesDefaultEntryHolder.defaultEntry); } return patternProperties_; } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> internalGetMutablePatternProperties() { onChanged(); ; if (patternProperties_ == null) { patternProperties_ = com.google.protobuf.MapField.newMapField( PatternPropertiesDefaultEntryHolder.defaultEntry); } if (!patternProperties_.isMutable()) { patternProperties_ = patternProperties_.copy(); } return patternProperties_; } public int getPatternPropertiesCount() { return internalGetPatternProperties().getMap().size(); } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> patternProperties = 31; * */ public boolean containsPatternProperties(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetPatternProperties().getMap().containsKey(key); } /** Use {@link #getPatternPropertiesMap()} instead. */ @java.lang.Deprecated public java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> getPatternProperties() { return getPatternPropertiesMap(); } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> patternProperties = 31; * */ public java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> getPatternPropertiesMap() { return internalGetPatternProperties().getMap(); } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> patternProperties = 31; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getPatternPropertiesOrDefault( java.lang.String key, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> map = internalGetPatternProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> patternProperties = 31; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getPatternPropertiesOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> map = internalGetPatternProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearPatternProperties() { internalGetMutablePatternProperties().getMutableMap().clear(); return this; } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> patternProperties = 31; * */ public Builder removePatternProperties(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutablePatternProperties().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> getMutablePatternProperties() { return internalGetMutablePatternProperties().getMutableMap(); } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> patternProperties = 31; * */ public Builder putPatternProperties( java.lang.String key, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutablePatternProperties().getMutableMap().put(key, value); return this; } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> patternProperties = 31; * */ public Builder putAllPatternProperties( java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> values) { internalGetMutablePatternProperties().getMutableMap().putAll(values); return this; } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray> dependencies_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray> internalGetDependencies() { if (dependencies_ == null) { return com.google.protobuf.MapField.emptyMapField( DependenciesDefaultEntryHolder.defaultEntry); } return dependencies_; } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray> internalGetMutableDependencies() { onChanged(); ; if (dependencies_ == null) { dependencies_ = com.google.protobuf.MapField.newMapField(DependenciesDefaultEntryHolder.defaultEntry); } if (!dependencies_.isMutable()) { dependencies_ = dependencies_.copy(); } return dependencies_; } public int getDependenciesCount() { return internalGetDependencies().getMap().size(); } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrStringArray> dependencies = 32; * */ public boolean containsDependencies(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetDependencies().getMap().containsKey(key); } /** Use {@link #getDependenciesMap()} instead. */ @java.lang.Deprecated public java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray> getDependencies() { return getDependenciesMap(); } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrStringArray> dependencies = 32; * */ public java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray> getDependenciesMap() { return internalGetDependencies().getMap(); } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrStringArray> dependencies = 32; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray getDependenciesOrDefault( java.lang.String key, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray> map = internalGetDependencies().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrStringArray> dependencies = 32; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray getDependenciesOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray> map = internalGetDependencies().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearDependencies() { internalGetMutableDependencies().getMutableMap().clear(); return this; } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrStringArray> dependencies = 32; * */ public Builder removeDependencies(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableDependencies().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray> getMutableDependencies() { return internalGetMutableDependencies().getMutableMap(); } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrStringArray> dependencies = 32; * */ public Builder putDependencies( java.lang.String key, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableDependencies().getMutableMap().put(key, value); return this; } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrStringArray> dependencies = 32; * */ public Builder putAllDependencies( java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray> values) { internalGetMutableDependencies().getMutableMap().putAll(values); return this; } private io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool additionalItems_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBoolOrBuilder> additionalItemsBuilder_; /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool additionalItems = 33; * */ public boolean hasAdditionalItems() { return ((bitField1_ & 0x00000001) == 0x00000001); } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool additionalItems = 33; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool getAdditionalItems() { if (additionalItemsBuilder_ == null) { return additionalItems_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool .getDefaultInstance() : additionalItems_; } else { return additionalItemsBuilder_.getMessage(); } } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool additionalItems = 33; * */ public Builder setAdditionalItems( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool value) { if (additionalItemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } additionalItems_ = value; onChanged(); } else { additionalItemsBuilder_.setMessage(value); } bitField1_ |= 0x00000001; return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool additionalItems = 33; * */ public Builder setAdditionalItems( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool.Builder builderForValue) { if (additionalItemsBuilder_ == null) { additionalItems_ = builderForValue.build(); onChanged(); } else { additionalItemsBuilder_.setMessage(builderForValue.build()); } bitField1_ |= 0x00000001; return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool additionalItems = 33; * */ public Builder mergeAdditionalItems( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool value) { if (additionalItemsBuilder_ == null) { if (((bitField1_ & 0x00000001) == 0x00000001) && additionalItems_ != null && additionalItems_ != io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool .getDefaultInstance()) { additionalItems_ = io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool.newBuilder( additionalItems_) .mergeFrom(value) .buildPartial(); } else { additionalItems_ = value; } onChanged(); } else { additionalItemsBuilder_.mergeFrom(value); } bitField1_ |= 0x00000001; return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool additionalItems = 33; * */ public Builder clearAdditionalItems() { if (additionalItemsBuilder_ == null) { additionalItems_ = null; onChanged(); } else { additionalItemsBuilder_.clear(); } bitField1_ = (bitField1_ & ~0x00000001); return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool additionalItems = 33; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool.Builder getAdditionalItemsBuilder() { bitField1_ |= 0x00000001; onChanged(); return getAdditionalItemsFieldBuilder().getBuilder(); } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool additionalItems = 33; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBoolOrBuilder getAdditionalItemsOrBuilder() { if (additionalItemsBuilder_ != null) { return additionalItemsBuilder_.getMessageOrBuilder(); } else { return additionalItems_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool .getDefaultInstance() : additionalItems_; } } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool additionalItems = 33; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBoolOrBuilder> getAdditionalItemsFieldBuilder() { if (additionalItemsBuilder_ == null) { additionalItemsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBoolOrBuilder>( getAdditionalItems(), getParentForChildren(), isClean()); additionalItems_ = null; } return additionalItemsBuilder_; } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> definitions_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> internalGetDefinitions() { if (definitions_ == null) { return com.google.protobuf.MapField.emptyMapField( DefinitionsDefaultEntryHolder.defaultEntry); } return definitions_; } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> internalGetMutableDefinitions() { onChanged(); ; if (definitions_ == null) { definitions_ = com.google.protobuf.MapField.newMapField(DefinitionsDefaultEntryHolder.defaultEntry); } if (!definitions_.isMutable()) { definitions_ = definitions_.copy(); } return definitions_; } public int getDefinitionsCount() { return internalGetDefinitions().getMap().size(); } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> definitions = 34; * */ public boolean containsDefinitions(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetDefinitions().getMap().containsKey(key); } /** Use {@link #getDefinitionsMap()} instead. */ @java.lang.Deprecated public java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> getDefinitions() { return getDefinitionsMap(); } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> definitions = 34; * */ public java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> getDefinitionsMap() { return internalGetDefinitions().getMap(); } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> definitions = 34; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getDefinitionsOrDefault( java.lang.String key, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> map = internalGetDefinitions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> definitions = 34; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getDefinitionsOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> map = internalGetDefinitions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearDefinitions() { internalGetMutableDefinitions().getMutableMap().clear(); return this; } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> definitions = 34; * */ public Builder removeDefinitions(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableDefinitions().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> getMutableDefinitions() { return internalGetMutableDefinitions().getMutableMap(); } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> definitions = 34; * */ public Builder putDefinitions( java.lang.String key, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableDefinitions().getMutableMap().put(key, value); return this; } /** * * map<string, .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps> definitions = 34; * */ public Builder putAllDefinitions( java.util.Map< java.lang.String, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> values) { internalGetMutableDefinitions().getMutableMap().putAll(values); return this; } private io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation externalDocs_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation, io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentationOrBuilder> externalDocsBuilder_; /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ExternalDocumentation externalDocs = 35; * */ public boolean hasExternalDocs() { return ((bitField1_ & 0x00000004) == 0x00000004); } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ExternalDocumentation externalDocs = 35; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation getExternalDocs() { if (externalDocsBuilder_ == null) { return externalDocs_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation .getDefaultInstance() : externalDocs_; } else { return externalDocsBuilder_.getMessage(); } } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ExternalDocumentation externalDocs = 35; * */ public Builder setExternalDocs( io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation value) { if (externalDocsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } externalDocs_ = value; onChanged(); } else { externalDocsBuilder_.setMessage(value); } bitField1_ |= 0x00000004; return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ExternalDocumentation externalDocs = 35; * */ public Builder setExternalDocs( io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation.Builder builderForValue) { if (externalDocsBuilder_ == null) { externalDocs_ = builderForValue.build(); onChanged(); } else { externalDocsBuilder_.setMessage(builderForValue.build()); } bitField1_ |= 0x00000004; return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ExternalDocumentation externalDocs = 35; * */ public Builder mergeExternalDocs( io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation value) { if (externalDocsBuilder_ == null) { if (((bitField1_ & 0x00000004) == 0x00000004) && externalDocs_ != null && externalDocs_ != io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation .getDefaultInstance()) { externalDocs_ = io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation.newBuilder( externalDocs_) .mergeFrom(value) .buildPartial(); } else { externalDocs_ = value; } onChanged(); } else { externalDocsBuilder_.mergeFrom(value); } bitField1_ |= 0x00000004; return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ExternalDocumentation externalDocs = 35; * */ public Builder clearExternalDocs() { if (externalDocsBuilder_ == null) { externalDocs_ = null; onChanged(); } else { externalDocsBuilder_.clear(); } bitField1_ = (bitField1_ & ~0x00000004); return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ExternalDocumentation externalDocs = 35; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation.Builder getExternalDocsBuilder() { bitField1_ |= 0x00000004; onChanged(); return getExternalDocsFieldBuilder().getBuilder(); } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ExternalDocumentation externalDocs = 35; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentationOrBuilder getExternalDocsOrBuilder() { if (externalDocsBuilder_ != null) { return externalDocsBuilder_.getMessageOrBuilder(); } else { return externalDocs_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation .getDefaultInstance() : externalDocs_; } } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ExternalDocumentation externalDocs = 35; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation, io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentationOrBuilder> getExternalDocsFieldBuilder() { if (externalDocsBuilder_ == null) { externalDocsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation, io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentation.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.ExternalDocumentationOrBuilder>( getExternalDocs(), getParentForChildren(), isClean()); externalDocs_ = null; } return externalDocsBuilder_; } private io.kubernetes.client.proto.V1beta1Apiextensions.JSON example_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSON, io.kubernetes.client.proto.V1beta1Apiextensions.JSON.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONOrBuilder> exampleBuilder_; /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON example = 36; * */ public boolean hasExample() { return ((bitField1_ & 0x00000008) == 0x00000008); } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON example = 36; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSON getExample() { if (exampleBuilder_ == null) { return example_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSON.getDefaultInstance() : example_; } else { return exampleBuilder_.getMessage(); } } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON example = 36; * */ public Builder setExample(io.kubernetes.client.proto.V1beta1Apiextensions.JSON value) { if (exampleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } example_ = value; onChanged(); } else { exampleBuilder_.setMessage(value); } bitField1_ |= 0x00000008; return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON example = 36; * */ public Builder setExample( io.kubernetes.client.proto.V1beta1Apiextensions.JSON.Builder builderForValue) { if (exampleBuilder_ == null) { example_ = builderForValue.build(); onChanged(); } else { exampleBuilder_.setMessage(builderForValue.build()); } bitField1_ |= 0x00000008; return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON example = 36; * */ public Builder mergeExample(io.kubernetes.client.proto.V1beta1Apiextensions.JSON value) { if (exampleBuilder_ == null) { if (((bitField1_ & 0x00000008) == 0x00000008) && example_ != null && example_ != io.kubernetes.client.proto.V1beta1Apiextensions.JSON.getDefaultInstance()) { example_ = io.kubernetes.client.proto.V1beta1Apiextensions.JSON .newBuilder(example_) .mergeFrom(value) .buildPartial(); } else { example_ = value; } onChanged(); } else { exampleBuilder_.mergeFrom(value); } bitField1_ |= 0x00000008; return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON example = 36; * */ public Builder clearExample() { if (exampleBuilder_ == null) { example_ = null; onChanged(); } else { exampleBuilder_.clear(); } bitField1_ = (bitField1_ & ~0x00000008); return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON example = 36; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSON.Builder getExampleBuilder() { bitField1_ |= 0x00000008; onChanged(); return getExampleFieldBuilder().getBuilder(); } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON example = 36; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONOrBuilder getExampleOrBuilder() { if (exampleBuilder_ != null) { return exampleBuilder_.getMessageOrBuilder(); } else { return example_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSON.getDefaultInstance() : example_; } } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON example = 36; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSON, io.kubernetes.client.proto.V1beta1Apiextensions.JSON.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONOrBuilder> getExampleFieldBuilder() { if (exampleBuilder_ == null) { exampleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSON, io.kubernetes.client.proto.V1beta1Apiextensions.JSON.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONOrBuilder>( getExample(), getParentForChildren(), isClean()); example_ = null; } return exampleBuilder_; } private boolean nullable_; /** optional bool nullable = 37; */ public boolean hasNullable() { return ((bitField1_ & 0x00000010) == 0x00000010); } /** optional bool nullable = 37; */ public boolean getNullable() { return nullable_; } /** optional bool nullable = 37; */ public Builder setNullable(boolean value) { bitField1_ |= 0x00000010; nullable_ = value; onChanged(); return this; } /** optional bool nullable = 37; */ public Builder clearNullable() { bitField1_ = (bitField1_ & ~0x00000010); nullable_ = false; onChanged(); return this; } private boolean xKubernetesPreserveUnknownFields_; /** * * *
       * x-kubernetes-preserve-unknown-fields stops the API server
       * decoding step from pruning fields which are not specified
       * in the validation schema. This affects fields recursively,
       * but switches back to normal pruning behaviour if nested
       * properties or additionalProperties are specified in the schema.
       * This can either be true or undefined. False is forbidden.
       * 
* * optional bool xKubernetesPreserveUnknownFields = 38; */ public boolean hasXKubernetesPreserveUnknownFields() { return ((bitField1_ & 0x00000020) == 0x00000020); } /** * * *
       * x-kubernetes-preserve-unknown-fields stops the API server
       * decoding step from pruning fields which are not specified
       * in the validation schema. This affects fields recursively,
       * but switches back to normal pruning behaviour if nested
       * properties or additionalProperties are specified in the schema.
       * This can either be true or undefined. False is forbidden.
       * 
* * optional bool xKubernetesPreserveUnknownFields = 38; */ public boolean getXKubernetesPreserveUnknownFields() { return xKubernetesPreserveUnknownFields_; } /** * * *
       * x-kubernetes-preserve-unknown-fields stops the API server
       * decoding step from pruning fields which are not specified
       * in the validation schema. This affects fields recursively,
       * but switches back to normal pruning behaviour if nested
       * properties or additionalProperties are specified in the schema.
       * This can either be true or undefined. False is forbidden.
       * 
* * optional bool xKubernetesPreserveUnknownFields = 38; */ public Builder setXKubernetesPreserveUnknownFields(boolean value) { bitField1_ |= 0x00000020; xKubernetesPreserveUnknownFields_ = value; onChanged(); return this; } /** * * *
       * x-kubernetes-preserve-unknown-fields stops the API server
       * decoding step from pruning fields which are not specified
       * in the validation schema. This affects fields recursively,
       * but switches back to normal pruning behaviour if nested
       * properties or additionalProperties are specified in the schema.
       * This can either be true or undefined. False is forbidden.
       * 
* * optional bool xKubernetesPreserveUnknownFields = 38; */ public Builder clearXKubernetesPreserveUnknownFields() { bitField1_ = (bitField1_ & ~0x00000020); xKubernetesPreserveUnknownFields_ = false; onChanged(); return this; } private boolean xKubernetesEmbeddedResource_; /** * * *
       * x-kubernetes-embedded-resource defines that the value is an
       * embedded Kubernetes runtime.Object, with TypeMeta and
       * ObjectMeta. The type must be object. It is allowed to further
       * restrict the embedded object. kind, apiVersion and metadata
       * are validated automatically. x-kubernetes-preserve-unknown-fields
       * is allowed to be true, but does not have to be if the object
       * is fully specified (up to kind, apiVersion, metadata).
       * 
* * optional bool xKubernetesEmbeddedResource = 39; */ public boolean hasXKubernetesEmbeddedResource() { return ((bitField1_ & 0x00000040) == 0x00000040); } /** * * *
       * x-kubernetes-embedded-resource defines that the value is an
       * embedded Kubernetes runtime.Object, with TypeMeta and
       * ObjectMeta. The type must be object. It is allowed to further
       * restrict the embedded object. kind, apiVersion and metadata
       * are validated automatically. x-kubernetes-preserve-unknown-fields
       * is allowed to be true, but does not have to be if the object
       * is fully specified (up to kind, apiVersion, metadata).
       * 
* * optional bool xKubernetesEmbeddedResource = 39; */ public boolean getXKubernetesEmbeddedResource() { return xKubernetesEmbeddedResource_; } /** * * *
       * x-kubernetes-embedded-resource defines that the value is an
       * embedded Kubernetes runtime.Object, with TypeMeta and
       * ObjectMeta. The type must be object. It is allowed to further
       * restrict the embedded object. kind, apiVersion and metadata
       * are validated automatically. x-kubernetes-preserve-unknown-fields
       * is allowed to be true, but does not have to be if the object
       * is fully specified (up to kind, apiVersion, metadata).
       * 
* * optional bool xKubernetesEmbeddedResource = 39; */ public Builder setXKubernetesEmbeddedResource(boolean value) { bitField1_ |= 0x00000040; xKubernetesEmbeddedResource_ = value; onChanged(); return this; } /** * * *
       * x-kubernetes-embedded-resource defines that the value is an
       * embedded Kubernetes runtime.Object, with TypeMeta and
       * ObjectMeta. The type must be object. It is allowed to further
       * restrict the embedded object. kind, apiVersion and metadata
       * are validated automatically. x-kubernetes-preserve-unknown-fields
       * is allowed to be true, but does not have to be if the object
       * is fully specified (up to kind, apiVersion, metadata).
       * 
* * optional bool xKubernetesEmbeddedResource = 39; */ public Builder clearXKubernetesEmbeddedResource() { bitField1_ = (bitField1_ & ~0x00000040); xKubernetesEmbeddedResource_ = false; onChanged(); return this; } private boolean xKubernetesIntOrString_; /** * * *
       * x-kubernetes-int-or-string specifies that this value is
       * either an integer or a string. If this is true, an empty
       * type is allowed and type as child of anyOf is permitted
       * if following one of the following patterns:
       * 1) anyOf:
       *    - type: integer
       *    - type: string
       * 2) allOf:
       *    - anyOf:
       *      - type: integer
       *      - type: string
       *    - ... zero or more
       * 
* * optional bool xKubernetesIntOrString = 40; */ public boolean hasXKubernetesIntOrString() { return ((bitField1_ & 0x00000080) == 0x00000080); } /** * * *
       * x-kubernetes-int-or-string specifies that this value is
       * either an integer or a string. If this is true, an empty
       * type is allowed and type as child of anyOf is permitted
       * if following one of the following patterns:
       * 1) anyOf:
       *    - type: integer
       *    - type: string
       * 2) allOf:
       *    - anyOf:
       *      - type: integer
       *      - type: string
       *    - ... zero or more
       * 
* * optional bool xKubernetesIntOrString = 40; */ public boolean getXKubernetesIntOrString() { return xKubernetesIntOrString_; } /** * * *
       * x-kubernetes-int-or-string specifies that this value is
       * either an integer or a string. If this is true, an empty
       * type is allowed and type as child of anyOf is permitted
       * if following one of the following patterns:
       * 1) anyOf:
       *    - type: integer
       *    - type: string
       * 2) allOf:
       *    - anyOf:
       *      - type: integer
       *      - type: string
       *    - ... zero or more
       * 
* * optional bool xKubernetesIntOrString = 40; */ public Builder setXKubernetesIntOrString(boolean value) { bitField1_ |= 0x00000080; xKubernetesIntOrString_ = value; onChanged(); return this; } /** * * *
       * x-kubernetes-int-or-string specifies that this value is
       * either an integer or a string. If this is true, an empty
       * type is allowed and type as child of anyOf is permitted
       * if following one of the following patterns:
       * 1) anyOf:
       *    - type: integer
       *    - type: string
       * 2) allOf:
       *    - anyOf:
       *      - type: integer
       *      - type: string
       *    - ... zero or more
       * 
* * optional bool xKubernetesIntOrString = 40; */ public Builder clearXKubernetesIntOrString() { bitField1_ = (bitField1_ & ~0x00000080); xKubernetesIntOrString_ = false; onChanged(); return this; } private com.google.protobuf.LazyStringList xKubernetesListMapKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureXKubernetesListMapKeysIsMutable() { if (!((bitField1_ & 0x00000100) == 0x00000100)) { xKubernetesListMapKeys_ = new com.google.protobuf.LazyStringArrayList(xKubernetesListMapKeys_); bitField1_ |= 0x00000100; } } /** * * *
       * x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used
       * as the index of the map.
       * This tag MUST only be used on lists that have the "x-kubernetes-list-type"
       * extension set to "map". Also, the values specified for this attribute must
       * be a scalar typed field of the child structure (no nesting is supported).
       * The properties specified must either be required or have a default value,
       * to ensure those properties are present for all list items.
       * +optional
       * 
* * repeated string xKubernetesListMapKeys = 41; */ public com.google.protobuf.ProtocolStringList getXKubernetesListMapKeysList() { return xKubernetesListMapKeys_.getUnmodifiableView(); } /** * * *
       * x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used
       * as the index of the map.
       * This tag MUST only be used on lists that have the "x-kubernetes-list-type"
       * extension set to "map". Also, the values specified for this attribute must
       * be a scalar typed field of the child structure (no nesting is supported).
       * The properties specified must either be required or have a default value,
       * to ensure those properties are present for all list items.
       * +optional
       * 
* * repeated string xKubernetesListMapKeys = 41; */ public int getXKubernetesListMapKeysCount() { return xKubernetesListMapKeys_.size(); } /** * * *
       * x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used
       * as the index of the map.
       * This tag MUST only be used on lists that have the "x-kubernetes-list-type"
       * extension set to "map". Also, the values specified for this attribute must
       * be a scalar typed field of the child structure (no nesting is supported).
       * The properties specified must either be required or have a default value,
       * to ensure those properties are present for all list items.
       * +optional
       * 
* * repeated string xKubernetesListMapKeys = 41; */ public java.lang.String getXKubernetesListMapKeys(int index) { return xKubernetesListMapKeys_.get(index); } /** * * *
       * x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used
       * as the index of the map.
       * This tag MUST only be used on lists that have the "x-kubernetes-list-type"
       * extension set to "map". Also, the values specified for this attribute must
       * be a scalar typed field of the child structure (no nesting is supported).
       * The properties specified must either be required or have a default value,
       * to ensure those properties are present for all list items.
       * +optional
       * 
* * repeated string xKubernetesListMapKeys = 41; */ public com.google.protobuf.ByteString getXKubernetesListMapKeysBytes(int index) { return xKubernetesListMapKeys_.getByteString(index); } /** * * *
       * x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used
       * as the index of the map.
       * This tag MUST only be used on lists that have the "x-kubernetes-list-type"
       * extension set to "map". Also, the values specified for this attribute must
       * be a scalar typed field of the child structure (no nesting is supported).
       * The properties specified must either be required or have a default value,
       * to ensure those properties are present for all list items.
       * +optional
       * 
* * repeated string xKubernetesListMapKeys = 41; */ public Builder setXKubernetesListMapKeys(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureXKubernetesListMapKeysIsMutable(); xKubernetesListMapKeys_.set(index, value); onChanged(); return this; } /** * * *
       * x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used
       * as the index of the map.
       * This tag MUST only be used on lists that have the "x-kubernetes-list-type"
       * extension set to "map". Also, the values specified for this attribute must
       * be a scalar typed field of the child structure (no nesting is supported).
       * The properties specified must either be required or have a default value,
       * to ensure those properties are present for all list items.
       * +optional
       * 
* * repeated string xKubernetesListMapKeys = 41; */ public Builder addXKubernetesListMapKeys(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureXKubernetesListMapKeysIsMutable(); xKubernetesListMapKeys_.add(value); onChanged(); return this; } /** * * *
       * x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used
       * as the index of the map.
       * This tag MUST only be used on lists that have the "x-kubernetes-list-type"
       * extension set to "map". Also, the values specified for this attribute must
       * be a scalar typed field of the child structure (no nesting is supported).
       * The properties specified must either be required or have a default value,
       * to ensure those properties are present for all list items.
       * +optional
       * 
* * repeated string xKubernetesListMapKeys = 41; */ public Builder addAllXKubernetesListMapKeys(java.lang.Iterable values) { ensureXKubernetesListMapKeysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, xKubernetesListMapKeys_); onChanged(); return this; } /** * * *
       * x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used
       * as the index of the map.
       * This tag MUST only be used on lists that have the "x-kubernetes-list-type"
       * extension set to "map". Also, the values specified for this attribute must
       * be a scalar typed field of the child structure (no nesting is supported).
       * The properties specified must either be required or have a default value,
       * to ensure those properties are present for all list items.
       * +optional
       * 
* * repeated string xKubernetesListMapKeys = 41; */ public Builder clearXKubernetesListMapKeys() { xKubernetesListMapKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField1_ = (bitField1_ & ~0x00000100); onChanged(); return this; } /** * * *
       * x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used
       * as the index of the map.
       * This tag MUST only be used on lists that have the "x-kubernetes-list-type"
       * extension set to "map". Also, the values specified for this attribute must
       * be a scalar typed field of the child structure (no nesting is supported).
       * The properties specified must either be required or have a default value,
       * to ensure those properties are present for all list items.
       * +optional
       * 
* * repeated string xKubernetesListMapKeys = 41; */ public Builder addXKubernetesListMapKeysBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureXKubernetesListMapKeysIsMutable(); xKubernetesListMapKeys_.add(value); onChanged(); return this; } private java.lang.Object xKubernetesListType_ = ""; /** * * *
       * x-kubernetes-list-type annotates an array to further describe its topology.
       * This extension must only be used on lists and may have 3 possible values:
       * 1) `atomic`: the list is treated as a single entity, like a scalar.
       *      Atomic lists will be entirely replaced when updated. This extension
       *      may be used on any type of list (struct, scalar, ...).
       * 2) `set`:
       *      Sets are lists that must not have multiple items with the same value. Each
       *      value must be a scalar, an object with x-kubernetes-map-type `atomic` or an
       *      array with x-kubernetes-list-type `atomic`.
       * 3) `map`:
       *      These lists are like maps in that their elements have a non-index key
       *      used to identify them. Order is preserved upon merge. The map tag
       *      must only be used on a list with elements of type object.
       * Defaults to atomic for arrays.
       * +optional
       * 
* * optional string xKubernetesListType = 42; */ public boolean hasXKubernetesListType() { return ((bitField1_ & 0x00000200) == 0x00000200); } /** * * *
       * x-kubernetes-list-type annotates an array to further describe its topology.
       * This extension must only be used on lists and may have 3 possible values:
       * 1) `atomic`: the list is treated as a single entity, like a scalar.
       *      Atomic lists will be entirely replaced when updated. This extension
       *      may be used on any type of list (struct, scalar, ...).
       * 2) `set`:
       *      Sets are lists that must not have multiple items with the same value. Each
       *      value must be a scalar, an object with x-kubernetes-map-type `atomic` or an
       *      array with x-kubernetes-list-type `atomic`.
       * 3) `map`:
       *      These lists are like maps in that their elements have a non-index key
       *      used to identify them. Order is preserved upon merge. The map tag
       *      must only be used on a list with elements of type object.
       * Defaults to atomic for arrays.
       * +optional
       * 
* * optional string xKubernetesListType = 42; */ public java.lang.String getXKubernetesListType() { java.lang.Object ref = xKubernetesListType_; 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()) { xKubernetesListType_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * x-kubernetes-list-type annotates an array to further describe its topology.
       * This extension must only be used on lists and may have 3 possible values:
       * 1) `atomic`: the list is treated as a single entity, like a scalar.
       *      Atomic lists will be entirely replaced when updated. This extension
       *      may be used on any type of list (struct, scalar, ...).
       * 2) `set`:
       *      Sets are lists that must not have multiple items with the same value. Each
       *      value must be a scalar, an object with x-kubernetes-map-type `atomic` or an
       *      array with x-kubernetes-list-type `atomic`.
       * 3) `map`:
       *      These lists are like maps in that their elements have a non-index key
       *      used to identify them. Order is preserved upon merge. The map tag
       *      must only be used on a list with elements of type object.
       * Defaults to atomic for arrays.
       * +optional
       * 
* * optional string xKubernetesListType = 42; */ public com.google.protobuf.ByteString getXKubernetesListTypeBytes() { java.lang.Object ref = xKubernetesListType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); xKubernetesListType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * x-kubernetes-list-type annotates an array to further describe its topology.
       * This extension must only be used on lists and may have 3 possible values:
       * 1) `atomic`: the list is treated as a single entity, like a scalar.
       *      Atomic lists will be entirely replaced when updated. This extension
       *      may be used on any type of list (struct, scalar, ...).
       * 2) `set`:
       *      Sets are lists that must not have multiple items with the same value. Each
       *      value must be a scalar, an object with x-kubernetes-map-type `atomic` or an
       *      array with x-kubernetes-list-type `atomic`.
       * 3) `map`:
       *      These lists are like maps in that their elements have a non-index key
       *      used to identify them. Order is preserved upon merge. The map tag
       *      must only be used on a list with elements of type object.
       * Defaults to atomic for arrays.
       * +optional
       * 
* * optional string xKubernetesListType = 42; */ public Builder setXKubernetesListType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField1_ |= 0x00000200; xKubernetesListType_ = value; onChanged(); return this; } /** * * *
       * x-kubernetes-list-type annotates an array to further describe its topology.
       * This extension must only be used on lists and may have 3 possible values:
       * 1) `atomic`: the list is treated as a single entity, like a scalar.
       *      Atomic lists will be entirely replaced when updated. This extension
       *      may be used on any type of list (struct, scalar, ...).
       * 2) `set`:
       *      Sets are lists that must not have multiple items with the same value. Each
       *      value must be a scalar, an object with x-kubernetes-map-type `atomic` or an
       *      array with x-kubernetes-list-type `atomic`.
       * 3) `map`:
       *      These lists are like maps in that their elements have a non-index key
       *      used to identify them. Order is preserved upon merge. The map tag
       *      must only be used on a list with elements of type object.
       * Defaults to atomic for arrays.
       * +optional
       * 
* * optional string xKubernetesListType = 42; */ public Builder clearXKubernetesListType() { bitField1_ = (bitField1_ & ~0x00000200); xKubernetesListType_ = getDefaultInstance().getXKubernetesListType(); onChanged(); return this; } /** * * *
       * x-kubernetes-list-type annotates an array to further describe its topology.
       * This extension must only be used on lists and may have 3 possible values:
       * 1) `atomic`: the list is treated as a single entity, like a scalar.
       *      Atomic lists will be entirely replaced when updated. This extension
       *      may be used on any type of list (struct, scalar, ...).
       * 2) `set`:
       *      Sets are lists that must not have multiple items with the same value. Each
       *      value must be a scalar, an object with x-kubernetes-map-type `atomic` or an
       *      array with x-kubernetes-list-type `atomic`.
       * 3) `map`:
       *      These lists are like maps in that their elements have a non-index key
       *      used to identify them. Order is preserved upon merge. The map tag
       *      must only be used on a list with elements of type object.
       * Defaults to atomic for arrays.
       * +optional
       * 
* * optional string xKubernetesListType = 42; */ public Builder setXKubernetesListTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField1_ |= 0x00000200; xKubernetesListType_ = value; onChanged(); return this; } private java.lang.Object xKubernetesMapType_ = ""; /** * * *
       * x-kubernetes-map-type annotates an object to further describe its topology.
       * This extension must only be used when type is object and may have 2 possible values:
       * 1) `granular`:
       *      These maps are actual maps (key-value pairs) and each fields are independent
       *      from each other (they can each be manipulated by separate actors). This is
       *      the default behaviour for all maps.
       * 2) `atomic`: the list is treated as a single entity, like a scalar.
       *      Atomic maps will be entirely replaced when updated.
       * +optional
       * 
* * optional string xKubernetesMapType = 43; */ public boolean hasXKubernetesMapType() { return ((bitField1_ & 0x00000400) == 0x00000400); } /** * * *
       * x-kubernetes-map-type annotates an object to further describe its topology.
       * This extension must only be used when type is object and may have 2 possible values:
       * 1) `granular`:
       *      These maps are actual maps (key-value pairs) and each fields are independent
       *      from each other (they can each be manipulated by separate actors). This is
       *      the default behaviour for all maps.
       * 2) `atomic`: the list is treated as a single entity, like a scalar.
       *      Atomic maps will be entirely replaced when updated.
       * +optional
       * 
* * optional string xKubernetesMapType = 43; */ public java.lang.String getXKubernetesMapType() { java.lang.Object ref = xKubernetesMapType_; 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()) { xKubernetesMapType_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * x-kubernetes-map-type annotates an object to further describe its topology.
       * This extension must only be used when type is object and may have 2 possible values:
       * 1) `granular`:
       *      These maps are actual maps (key-value pairs) and each fields are independent
       *      from each other (they can each be manipulated by separate actors). This is
       *      the default behaviour for all maps.
       * 2) `atomic`: the list is treated as a single entity, like a scalar.
       *      Atomic maps will be entirely replaced when updated.
       * +optional
       * 
* * optional string xKubernetesMapType = 43; */ public com.google.protobuf.ByteString getXKubernetesMapTypeBytes() { java.lang.Object ref = xKubernetesMapType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); xKubernetesMapType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * x-kubernetes-map-type annotates an object to further describe its topology.
       * This extension must only be used when type is object and may have 2 possible values:
       * 1) `granular`:
       *      These maps are actual maps (key-value pairs) and each fields are independent
       *      from each other (they can each be manipulated by separate actors). This is
       *      the default behaviour for all maps.
       * 2) `atomic`: the list is treated as a single entity, like a scalar.
       *      Atomic maps will be entirely replaced when updated.
       * +optional
       * 
* * optional string xKubernetesMapType = 43; */ public Builder setXKubernetesMapType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField1_ |= 0x00000400; xKubernetesMapType_ = value; onChanged(); return this; } /** * * *
       * x-kubernetes-map-type annotates an object to further describe its topology.
       * This extension must only be used when type is object and may have 2 possible values:
       * 1) `granular`:
       *      These maps are actual maps (key-value pairs) and each fields are independent
       *      from each other (they can each be manipulated by separate actors). This is
       *      the default behaviour for all maps.
       * 2) `atomic`: the list is treated as a single entity, like a scalar.
       *      Atomic maps will be entirely replaced when updated.
       * +optional
       * 
* * optional string xKubernetesMapType = 43; */ public Builder clearXKubernetesMapType() { bitField1_ = (bitField1_ & ~0x00000400); xKubernetesMapType_ = getDefaultInstance().getXKubernetesMapType(); onChanged(); return this; } /** * * *
       * x-kubernetes-map-type annotates an object to further describe its topology.
       * This extension must only be used when type is object and may have 2 possible values:
       * 1) `granular`:
       *      These maps are actual maps (key-value pairs) and each fields are independent
       *      from each other (they can each be manipulated by separate actors). This is
       *      the default behaviour for all maps.
       * 2) `atomic`: the list is treated as a single entity, like a scalar.
       *      Atomic maps will be entirely replaced when updated.
       * +optional
       * 
* * optional string xKubernetesMapType = 43; */ public Builder setXKubernetesMapTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField1_ |= 0x00000400; xKubernetesMapType_ = 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.JSONSchemaProps) } // @@protoc_insertion_point(class_scope:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps) private static final io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps(); } public static io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public JSONSchemaProps parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new JSONSchemaProps(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.JSONSchemaProps getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface JSONSchemaPropsOrArrayOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrArray) com.google.protobuf.MessageOrBuilder { /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 1; * */ boolean hasSchema(); /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 1; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getSchema(); /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 1; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder getSchemaOrBuilder(); /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps jSONSchemas = 2; * */ java.util.List getJSONSchemasList(); /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps jSONSchemas = 2; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getJSONSchemas(int index); /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps jSONSchemas = 2; * */ int getJSONSchemasCount(); /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps jSONSchemas = 2; * */ java.util.List< ? extends io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder> getJSONSchemasOrBuilderList(); /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps jSONSchemas = 2; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder getJSONSchemasOrBuilder(int index); } /** * * *
   * JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps
   * or an array of JSONSchemaProps. Mainly here for serialization purposes.
   * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrArray} */ public static final class JSONSchemaPropsOrArray extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrArray) JSONSchemaPropsOrArrayOrBuilder { private static final long serialVersionUID = 0L; // Use JSONSchemaPropsOrArray.newBuilder() to construct. private JSONSchemaPropsOrArray(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private JSONSchemaPropsOrArray() { jSONSchemas_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private JSONSchemaPropsOrArray( 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.V1beta1Apiextensions.JSONSchemaProps.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = schema_.toBuilder(); } schema_ = input.readMessage( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(schema_); schema_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { jSONSchemas_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps>(); mutable_bitField0_ |= 0x00000002; } jSONSchemas_.add( input.readMessage( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.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_ & 0x00000002) == 0x00000002)) { jSONSchemas_ = java.util.Collections.unmodifiableList(jSONSchemas_); } 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_JSONSchemaPropsOrArray_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_JSONSchemaPropsOrArray_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray.class, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray.Builder.class); } private int bitField0_; public static final int SCHEMA_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps schema_; /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 1; * */ public boolean hasSchema() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getSchema() { return schema_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.getDefaultInstance() : schema_; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder getSchemaOrBuilder() { return schema_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.getDefaultInstance() : schema_; } public static final int JSONSCHEMAS_FIELD_NUMBER = 2; private java.util.List jSONSchemas_; /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps jSONSchemas = 2; * */ public java.util.List getJSONSchemasList() { return jSONSchemas_; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps jSONSchemas = 2; * */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder> getJSONSchemasOrBuilderList() { return jSONSchemas_; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps jSONSchemas = 2; * */ public int getJSONSchemasCount() { return jSONSchemas_.size(); } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps jSONSchemas = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getJSONSchemas( int index) { return jSONSchemas_.get(index); } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps jSONSchemas = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder getJSONSchemasOrBuilder(int index) { return jSONSchemas_.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)) { output.writeMessage(1, getSchema()); } for (int i = 0; i < jSONSchemas_.size(); i++) { output.writeMessage(2, jSONSchemas_.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.CodedOutputStream.computeMessageSize(1, getSchema()); } for (int i = 0; i < jSONSchemas_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, jSONSchemas_.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.JSONSchemaPropsOrArray)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray other = (io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray) obj; boolean result = true; result = result && (hasSchema() == other.hasSchema()); if (hasSchema()) { result = result && getSchema().equals(other.getSchema()); } result = result && getJSONSchemasList().equals(other.getJSONSchemasList()); 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 (hasSchema()) { hash = (37 * hash) + SCHEMA_FIELD_NUMBER; hash = (53 * hash) + getSchema().hashCode(); } if (getJSONSchemasCount() > 0) { hash = (37 * hash) + JSONSCHEMAS_FIELD_NUMBER; hash = (53 * hash) + getJSONSchemasList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray 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.JSONSchemaPropsOrArray parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray 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.JSONSchemaPropsOrArray parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray 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.JSONSchemaPropsOrArray parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray 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.JSONSchemaPropsOrArray parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray 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.JSONSchemaPropsOrArray 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.JSONSchemaPropsOrArray 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.JSONSchemaPropsOrArray 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; } /** * * *
     * JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps
     * or an array of JSONSchemaProps. Mainly here for serialization purposes.
     * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrArray} */ 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.JSONSchemaPropsOrArray) io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArrayOrBuilder { 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_JSONSchemaPropsOrArray_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_JSONSchemaPropsOrArray_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray.class, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray.Builder .class); } // Construct using // io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSchemaFieldBuilder(); getJSONSchemasFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (schemaBuilder_ == null) { schema_ = null; } else { schemaBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (jSONSchemasBuilder_ == null) { jSONSchemas_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { jSONSchemasBuilder_.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_JSONSchemaPropsOrArray_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray build() { io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray buildPartial() { io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray result = new io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (schemaBuilder_ == null) { result.schema_ = schema_; } else { result.schema_ = schemaBuilder_.build(); } if (jSONSchemasBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { jSONSchemas_ = java.util.Collections.unmodifiableList(jSONSchemas_); bitField0_ = (bitField0_ & ~0x00000002); } result.jSONSchemas_ = jSONSchemas_; } else { result.jSONSchemas_ = jSONSchemasBuilder_.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.JSONSchemaPropsOrArray) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray other) { if (other == io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray .getDefaultInstance()) return this; if (other.hasSchema()) { mergeSchema(other.getSchema()); } if (jSONSchemasBuilder_ == null) { if (!other.jSONSchemas_.isEmpty()) { if (jSONSchemas_.isEmpty()) { jSONSchemas_ = other.jSONSchemas_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureJSONSchemasIsMutable(); jSONSchemas_.addAll(other.jSONSchemas_); } onChanged(); } } else { if (!other.jSONSchemas_.isEmpty()) { if (jSONSchemasBuilder_.isEmpty()) { jSONSchemasBuilder_.dispose(); jSONSchemasBuilder_ = null; jSONSchemas_ = other.jSONSchemas_; bitField0_ = (bitField0_ & ~0x00000002); jSONSchemasBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getJSONSchemasFieldBuilder() : null; } else { jSONSchemasBuilder_.addAllMessages(other.jSONSchemas_); } } } 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.JSONSchemaPropsOrArray parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps schema_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder> schemaBuilder_; /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 1; * */ public boolean hasSchema() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getSchema() { if (schemaBuilder_ == null) { return schema_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.getDefaultInstance() : schema_; } else { return schemaBuilder_.getMessage(); } } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 1; * */ public Builder setSchema( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps value) { if (schemaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } schema_ = value; onChanged(); } else { schemaBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 1; * */ public Builder setSchema( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder builderForValue) { if (schemaBuilder_ == null) { schema_ = builderForValue.build(); onChanged(); } else { schemaBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 1; * */ public Builder mergeSchema( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps value) { if (schemaBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && schema_ != null && schema_ != io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps .getDefaultInstance()) { schema_ = io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.newBuilder(schema_) .mergeFrom(value) .buildPartial(); } else { schema_ = value; } onChanged(); } else { schemaBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 1; * */ public Builder clearSchema() { if (schemaBuilder_ == null) { schema_ = null; onChanged(); } else { schemaBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder getSchemaBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSchemaFieldBuilder().getBuilder(); } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder getSchemaOrBuilder() { if (schemaBuilder_ != null) { return schemaBuilder_.getMessageOrBuilder(); } else { return schema_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.getDefaultInstance() : schema_; } } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 1; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder> getSchemaFieldBuilder() { if (schemaBuilder_ == null) { schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder>( getSchema(), getParentForChildren(), isClean()); schema_ = null; } return schemaBuilder_; } private java.util.List jSONSchemas_ = java.util.Collections.emptyList(); private void ensureJSONSchemasIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { jSONSchemas_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps>(jSONSchemas_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder> jSONSchemasBuilder_; /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps jSONSchemas = 2; * */ public java.util.List getJSONSchemasList() { if (jSONSchemasBuilder_ == null) { return java.util.Collections.unmodifiableList(jSONSchemas_); } else { return jSONSchemasBuilder_.getMessageList(); } } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps jSONSchemas = 2; * */ public int getJSONSchemasCount() { if (jSONSchemasBuilder_ == null) { return jSONSchemas_.size(); } else { return jSONSchemasBuilder_.getCount(); } } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps jSONSchemas = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getJSONSchemas( int index) { if (jSONSchemasBuilder_ == null) { return jSONSchemas_.get(index); } else { return jSONSchemasBuilder_.getMessage(index); } } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps jSONSchemas = 2; * */ public Builder setJSONSchemas( int index, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps value) { if (jSONSchemasBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureJSONSchemasIsMutable(); jSONSchemas_.set(index, value); onChanged(); } else { jSONSchemasBuilder_.setMessage(index, value); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps jSONSchemas = 2; * */ public Builder setJSONSchemas( int index, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder builderForValue) { if (jSONSchemasBuilder_ == null) { ensureJSONSchemasIsMutable(); jSONSchemas_.set(index, builderForValue.build()); onChanged(); } else { jSONSchemasBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps jSONSchemas = 2; * */ public Builder addJSONSchemas( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps value) { if (jSONSchemasBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureJSONSchemasIsMutable(); jSONSchemas_.add(value); onChanged(); } else { jSONSchemasBuilder_.addMessage(value); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps jSONSchemas = 2; * */ public Builder addJSONSchemas( int index, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps value) { if (jSONSchemasBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureJSONSchemasIsMutable(); jSONSchemas_.add(index, value); onChanged(); } else { jSONSchemasBuilder_.addMessage(index, value); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps jSONSchemas = 2; * */ public Builder addJSONSchemas( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder builderForValue) { if (jSONSchemasBuilder_ == null) { ensureJSONSchemasIsMutable(); jSONSchemas_.add(builderForValue.build()); onChanged(); } else { jSONSchemasBuilder_.addMessage(builderForValue.build()); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps jSONSchemas = 2; * */ public Builder addJSONSchemas( int index, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder builderForValue) { if (jSONSchemasBuilder_ == null) { ensureJSONSchemasIsMutable(); jSONSchemas_.add(index, builderForValue.build()); onChanged(); } else { jSONSchemasBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps jSONSchemas = 2; * */ public Builder addAllJSONSchemas( java.lang.Iterable< ? extends io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps> values) { if (jSONSchemasBuilder_ == null) { ensureJSONSchemasIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jSONSchemas_); onChanged(); } else { jSONSchemasBuilder_.addAllMessages(values); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps jSONSchemas = 2; * */ public Builder clearJSONSchemas() { if (jSONSchemasBuilder_ == null) { jSONSchemas_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { jSONSchemasBuilder_.clear(); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps jSONSchemas = 2; * */ public Builder removeJSONSchemas(int index) { if (jSONSchemasBuilder_ == null) { ensureJSONSchemasIsMutable(); jSONSchemas_.remove(index); onChanged(); } else { jSONSchemasBuilder_.remove(index); } return this; } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps jSONSchemas = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder getJSONSchemasBuilder(int index) { return getJSONSchemasFieldBuilder().getBuilder(index); } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps jSONSchemas = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder getJSONSchemasOrBuilder(int index) { if (jSONSchemasBuilder_ == null) { return jSONSchemas_.get(index); } else { return jSONSchemasBuilder_.getMessageOrBuilder(index); } } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps jSONSchemas = 2; * */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder> getJSONSchemasOrBuilderList() { if (jSONSchemasBuilder_ != null) { return jSONSchemasBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(jSONSchemas_); } } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps jSONSchemas = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder addJSONSchemasBuilder() { return getJSONSchemasFieldBuilder() .addBuilder( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps .getDefaultInstance()); } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps jSONSchemas = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder addJSONSchemasBuilder(int index) { return getJSONSchemasFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps .getDefaultInstance()); } /** * * repeated .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps jSONSchemas = 2; * */ public java.util.List getJSONSchemasBuilderList() { return getJSONSchemasFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder> getJSONSchemasFieldBuilder() { if (jSONSchemasBuilder_ == null) { jSONSchemasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder>( jSONSchemas_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); jSONSchemas_ = null; } return jSONSchemasBuilder_; } @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.JSONSchemaPropsOrArray) } // @@protoc_insertion_point(class_scope:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrArray) private static final io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray(); } public static io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrArray getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public JSONSchemaPropsOrArray parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new JSONSchemaPropsOrArray(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.JSONSchemaPropsOrArray getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface JSONSchemaPropsOrBoolOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool) com.google.protobuf.MessageOrBuilder { /** optional bool allows = 1; */ boolean hasAllows(); /** optional bool allows = 1; */ boolean getAllows(); /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 2; * */ boolean hasSchema(); /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 2; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getSchema(); /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 2; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder getSchemaOrBuilder(); } /** * * *
   * JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value.
   * Defaults to true for the boolean property.
   * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool} */ public static final class JSONSchemaPropsOrBool extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool) JSONSchemaPropsOrBoolOrBuilder { private static final long serialVersionUID = 0L; // Use JSONSchemaPropsOrBool.newBuilder() to construct. private JSONSchemaPropsOrBool(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private JSONSchemaPropsOrBool() { allows_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private JSONSchemaPropsOrBool( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { bitField0_ |= 0x00000001; allows_ = input.readBool(); break; } case 18: { io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = schema_.toBuilder(); } schema_ = input.readMessage( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(schema_); schema_ = 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_JSONSchemaPropsOrBool_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_JSONSchemaPropsOrBool_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool.class, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool.Builder.class); } private int bitField0_; public static final int ALLOWS_FIELD_NUMBER = 1; private boolean allows_; /** optional bool allows = 1; */ public boolean hasAllows() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** optional bool allows = 1; */ public boolean getAllows() { return allows_; } public static final int SCHEMA_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps schema_; /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 2; * */ public boolean hasSchema() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getSchema() { return schema_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.getDefaultInstance() : schema_; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder getSchemaOrBuilder() { return schema_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.getDefaultInstance() : schema_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBool(1, allows_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getSchema()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, allows_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSchema()); } 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.JSONSchemaPropsOrBool)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool other = (io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool) obj; boolean result = true; result = result && (hasAllows() == other.hasAllows()); if (hasAllows()) { result = result && (getAllows() == other.getAllows()); } result = result && (hasSchema() == other.hasSchema()); if (hasSchema()) { result = result && getSchema().equals(other.getSchema()); } 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 (hasAllows()) { hash = (37 * hash) + ALLOWS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllows()); } if (hasSchema()) { hash = (37 * hash) + SCHEMA_FIELD_NUMBER; hash = (53 * hash) + getSchema().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool 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.JSONSchemaPropsOrBool parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool 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.JSONSchemaPropsOrBool parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool 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.JSONSchemaPropsOrBool parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool 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.JSONSchemaPropsOrBool parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool 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.JSONSchemaPropsOrBool 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.JSONSchemaPropsOrBool 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.JSONSchemaPropsOrBool 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; } /** * * *
     * JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value.
     * Defaults to true for the boolean property.
     * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool} */ 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.JSONSchemaPropsOrBool) io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBoolOrBuilder { 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_JSONSchemaPropsOrBool_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_JSONSchemaPropsOrBool_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool.class, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool.Builder .class); } // Construct using // io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSchemaFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); allows_ = false; bitField0_ = (bitField0_ & ~0x00000001); if (schemaBuilder_ == null) { schema_ = null; } else { schemaBuilder_.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_JSONSchemaPropsOrBool_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool build() { io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool buildPartial() { io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool result = new io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.allows_ = allows_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (schemaBuilder_ == null) { result.schema_ = schema_; } else { result.schema_ = schemaBuilder_.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.JSONSchemaPropsOrBool) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool other) { if (other == io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool .getDefaultInstance()) return this; if (other.hasAllows()) { setAllows(other.getAllows()); } if (other.hasSchema()) { mergeSchema(other.getSchema()); } 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.JSONSchemaPropsOrBool parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private boolean allows_; /** optional bool allows = 1; */ public boolean hasAllows() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** optional bool allows = 1; */ public boolean getAllows() { return allows_; } /** optional bool allows = 1; */ public Builder setAllows(boolean value) { bitField0_ |= 0x00000001; allows_ = value; onChanged(); return this; } /** optional bool allows = 1; */ public Builder clearAllows() { bitField0_ = (bitField0_ & ~0x00000001); allows_ = false; onChanged(); return this; } private io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps schema_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder> schemaBuilder_; /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 2; * */ public boolean hasSchema() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getSchema() { if (schemaBuilder_ == null) { return schema_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.getDefaultInstance() : schema_; } else { return schemaBuilder_.getMessage(); } } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 2; * */ public Builder setSchema( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps value) { if (schemaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } schema_ = value; onChanged(); } else { schemaBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 2; * */ public Builder setSchema( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder builderForValue) { if (schemaBuilder_ == null) { schema_ = builderForValue.build(); onChanged(); } else { schemaBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 2; * */ public Builder mergeSchema( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps value) { if (schemaBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && schema_ != null && schema_ != io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps .getDefaultInstance()) { schema_ = io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.newBuilder(schema_) .mergeFrom(value) .buildPartial(); } else { schema_ = value; } onChanged(); } else { schemaBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 2; * */ public Builder clearSchema() { if (schemaBuilder_ == null) { schema_ = null; onChanged(); } else { schemaBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder getSchemaBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSchemaFieldBuilder().getBuilder(); } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 2; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder getSchemaOrBuilder() { if (schemaBuilder_ != null) { return schemaBuilder_.getMessageOrBuilder(); } else { return schema_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.getDefaultInstance() : schema_; } } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 2; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder> getSchemaFieldBuilder() { if (schemaBuilder_ == null) { schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder>( getSchema(), getParentForChildren(), isClean()); schema_ = null; } return schemaBuilder_; } @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.JSONSchemaPropsOrBool) } // @@protoc_insertion_point(class_scope:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool) private static final io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool(); } public static io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBool getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public JSONSchemaPropsOrBool parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new JSONSchemaPropsOrBool(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.JSONSchemaPropsOrBool getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface JSONSchemaPropsOrStringArrayOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrStringArray) com.google.protobuf.MessageOrBuilder { /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 1; * */ boolean hasSchema(); /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 1; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getSchema(); /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 1; * */ io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder getSchemaOrBuilder(); /** repeated string property = 2; */ java.util.List getPropertyList(); /** repeated string property = 2; */ int getPropertyCount(); /** repeated string property = 2; */ java.lang.String getProperty(int index); /** repeated string property = 2; */ com.google.protobuf.ByteString getPropertyBytes(int index); } /** * * *
   * JSONSchemaPropsOrStringArray represents a JSONSchemaProps or a string array.
   * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrStringArray} */ public static final class JSONSchemaPropsOrStringArray extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrStringArray) JSONSchemaPropsOrStringArrayOrBuilder { private static final long serialVersionUID = 0L; // Use JSONSchemaPropsOrStringArray.newBuilder() to construct. private JSONSchemaPropsOrStringArray( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private JSONSchemaPropsOrStringArray() { property_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private JSONSchemaPropsOrStringArray( 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.V1beta1Apiextensions.JSONSchemaProps.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = schema_.toBuilder(); } schema_ = input.readMessage( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(schema_); schema_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { property_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } property_.add(bs); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { property_ = property_.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_JSONSchemaPropsOrStringArray_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_JSONSchemaPropsOrStringArray_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray.class, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray.Builder .class); } private int bitField0_; public static final int SCHEMA_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps schema_; /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 1; * */ public boolean hasSchema() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getSchema() { return schema_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.getDefaultInstance() : schema_; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder getSchemaOrBuilder() { return schema_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.getDefaultInstance() : schema_; } public static final int PROPERTY_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList property_; /** repeated string property = 2; */ public com.google.protobuf.ProtocolStringList getPropertyList() { return property_; } /** repeated string property = 2; */ public int getPropertyCount() { return property_.size(); } /** repeated string property = 2; */ public java.lang.String getProperty(int index) { return property_.get(index); } /** repeated string property = 2; */ public com.google.protobuf.ByteString getPropertyBytes(int index) { return property_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getSchema()); } for (int i = 0; i < property_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, property_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSchema()); } { int dataSize = 0; for (int i = 0; i < property_.size(); i++) { dataSize += computeStringSizeNoTag(property_.getRaw(i)); } size += dataSize; size += 1 * getPropertyList().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.JSONSchemaPropsOrStringArray)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray other = (io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray) obj; boolean result = true; result = result && (hasSchema() == other.hasSchema()); if (hasSchema()) { result = result && getSchema().equals(other.getSchema()); } result = result && getPropertyList().equals(other.getPropertyList()); 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 (hasSchema()) { hash = (37 * hash) + SCHEMA_FIELD_NUMBER; hash = (53 * hash) + getSchema().hashCode(); } if (getPropertyCount() > 0) { hash = (37 * hash) + PROPERTY_FIELD_NUMBER; hash = (53 * hash) + getPropertyList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray 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.JSONSchemaPropsOrStringArray parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray 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.JSONSchemaPropsOrStringArray parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray 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.JSONSchemaPropsOrStringArray parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray 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.JSONSchemaPropsOrStringArray parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray 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.JSONSchemaPropsOrStringArray 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.JSONSchemaPropsOrStringArray 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.JSONSchemaPropsOrStringArray 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; } /** * * *
     * JSONSchemaPropsOrStringArray represents a JSONSchemaProps or a string array.
     * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrStringArray} */ 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.JSONSchemaPropsOrStringArray) io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArrayOrBuilder { 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_JSONSchemaPropsOrStringArray_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_JSONSchemaPropsOrStringArray_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray.class, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray.Builder .class); } // Construct using // io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSchemaFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (schemaBuilder_ == null) { schema_ = null; } else { schemaBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); property_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Apiextensions .internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaPropsOrStringArray_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray build() { io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray buildPartial() { io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray result = new io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (schemaBuilder_ == null) { result.schema_ = schema_; } else { result.schema_ = schemaBuilder_.build(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { property_ = property_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.property_ = property_; 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.JSONSchemaPropsOrStringArray) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray other) { if (other == io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray .getDefaultInstance()) return this; if (other.hasSchema()) { mergeSchema(other.getSchema()); } if (!other.property_.isEmpty()) { if (property_.isEmpty()) { property_ = other.property_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePropertyIsMutable(); property_.addAll(other.property_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps schema_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder> schemaBuilder_; /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 1; * */ public boolean hasSchema() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps getSchema() { if (schemaBuilder_ == null) { return schema_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.getDefaultInstance() : schema_; } else { return schemaBuilder_.getMessage(); } } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 1; * */ public Builder setSchema( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps value) { if (schemaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } schema_ = value; onChanged(); } else { schemaBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 1; * */ public Builder setSchema( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder builderForValue) { if (schemaBuilder_ == null) { schema_ = builderForValue.build(); onChanged(); } else { schemaBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 1; * */ public Builder mergeSchema( io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps value) { if (schemaBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && schema_ != null && schema_ != io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps .getDefaultInstance()) { schema_ = io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.newBuilder(schema_) .mergeFrom(value) .buildPartial(); } else { schema_ = value; } onChanged(); } else { schemaBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 1; * */ public Builder clearSchema() { if (schemaBuilder_ == null) { schema_ = null; onChanged(); } else { schemaBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder getSchemaBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSchemaFieldBuilder().getBuilder(); } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder getSchemaOrBuilder() { if (schemaBuilder_ != null) { return schemaBuilder_.getMessageOrBuilder(); } else { return schema_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.getDefaultInstance() : schema_; } } /** * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps schema = 1; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder> getSchemaFieldBuilder() { if (schemaBuilder_ == null) { schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaProps.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrBuilder>( getSchema(), getParentForChildren(), isClean()); schema_ = null; } return schemaBuilder_; } private com.google.protobuf.LazyStringList property_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePropertyIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { property_ = new com.google.protobuf.LazyStringArrayList(property_); bitField0_ |= 0x00000002; } } /** repeated string property = 2; */ public com.google.protobuf.ProtocolStringList getPropertyList() { return property_.getUnmodifiableView(); } /** repeated string property = 2; */ public int getPropertyCount() { return property_.size(); } /** repeated string property = 2; */ public java.lang.String getProperty(int index) { return property_.get(index); } /** repeated string property = 2; */ public com.google.protobuf.ByteString getPropertyBytes(int index) { return property_.getByteString(index); } /** repeated string property = 2; */ public Builder setProperty(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePropertyIsMutable(); property_.set(index, value); onChanged(); return this; } /** repeated string property = 2; */ public Builder addProperty(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePropertyIsMutable(); property_.add(value); onChanged(); return this; } /** repeated string property = 2; */ public Builder addAllProperty(java.lang.Iterable values) { ensurePropertyIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, property_); onChanged(); return this; } /** repeated string property = 2; */ public Builder clearProperty() { property_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** repeated string property = 2; */ public Builder addPropertyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensurePropertyIsMutable(); property_.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.JSONSchemaPropsOrStringArray) } // @@protoc_insertion_point(class_scope:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrStringArray) private static final io.kubernetes.client.proto.V1beta1Apiextensions .JSONSchemaPropsOrStringArray DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray(); } public static io.kubernetes.client.proto.V1beta1Apiextensions.JSONSchemaPropsOrStringArray getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public JSONSchemaPropsOrStringArray parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new JSONSchemaPropsOrStringArray(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.JSONSchemaPropsOrStringArray getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ServiceReferenceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ServiceReference) com.google.protobuf.MessageOrBuilder { /** * * *
     * namespace is the namespace of the service.
     * Required
     * 
* * optional string namespace = 1; */ boolean hasNamespace(); /** * * *
     * namespace is the namespace of the service.
     * Required
     * 
* * optional string namespace = 1; */ java.lang.String getNamespace(); /** * * *
     * namespace is the namespace of the service.
     * Required
     * 
* * optional string namespace = 1; */ com.google.protobuf.ByteString getNamespaceBytes(); /** * * *
     * name is the name of the service.
     * Required
     * 
* * optional string name = 2; */ boolean hasName(); /** * * *
     * name is the name of the service.
     * Required
     * 
* * optional string name = 2; */ java.lang.String getName(); /** * * *
     * name is the name of the service.
     * Required
     * 
* * optional string name = 2; */ com.google.protobuf.ByteString getNameBytes(); /** * * *
     * path is an optional URL path at which the webhook will be contacted.
     * +optional
     * 
* * optional string path = 3; */ boolean hasPath(); /** * * *
     * path is an optional URL path at which the webhook will be contacted.
     * +optional
     * 
* * optional string path = 3; */ java.lang.String getPath(); /** * * *
     * path is an optional URL path at which the webhook will be contacted.
     * +optional
     * 
* * optional string path = 3; */ com.google.protobuf.ByteString getPathBytes(); /** * * *
     * port is an optional service port at which the webhook will be contacted.
     * `port` should be a valid port number (1-65535, inclusive).
     * Defaults to 443 for backward compatibility.
     * +optional
     * 
* * optional int32 port = 4; */ boolean hasPort(); /** * * *
     * port is an optional service port at which the webhook will be contacted.
     * `port` should be a valid port number (1-65535, inclusive).
     * Defaults to 443 for backward compatibility.
     * +optional
     * 
* * optional int32 port = 4; */ int getPort(); } /** * * *
   * ServiceReference holds a reference to Service.legacy.k8s.io
   * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ServiceReference} */ public static final class ServiceReference extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ServiceReference) ServiceReferenceOrBuilder { private static final long serialVersionUID = 0L; // Use ServiceReference.newBuilder() to construct. private ServiceReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ServiceReference() { namespace_ = ""; name_ = ""; path_ = ""; port_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ServiceReference( 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; namespace_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; name_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; path_ = bs; break; } case 32: { bitField0_ |= 0x00000008; port_ = input.readInt32(); 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_ServiceReference_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_ServiceReference_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference.class, io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference.Builder.class); } private int bitField0_; public static final int NAMESPACE_FIELD_NUMBER = 1; private volatile java.lang.Object namespace_; /** * * *
     * namespace is the namespace of the service.
     * Required
     * 
* * optional string namespace = 1; */ public boolean hasNamespace() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * namespace is the namespace of the service.
     * Required
     * 
* * optional string namespace = 1; */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; 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()) { namespace_ = s; } return s; } } /** * * *
     * namespace is the namespace of the service.
     * Required
     * 
* * optional string namespace = 1; */ public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** * * *
     * name is the name of the service.
     * Required
     * 
* * optional string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * name is the name of the service.
     * Required
     * 
* * optional string name = 2; */ 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 the name of the service.
     * Required
     * 
* * optional string name = 2; */ 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 PATH_FIELD_NUMBER = 3; private volatile java.lang.Object path_; /** * * *
     * path is an optional URL path at which the webhook will be contacted.
     * +optional
     * 
* * optional string path = 3; */ public boolean hasPath() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * path is an optional URL path at which the webhook will be contacted.
     * +optional
     * 
* * optional string path = 3; */ public java.lang.String getPath() { java.lang.Object ref = path_; 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()) { path_ = s; } return s; } } /** * * *
     * path is an optional URL path at which the webhook will be contacted.
     * +optional
     * 
* * optional string path = 3; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PORT_FIELD_NUMBER = 4; private int port_; /** * * *
     * port is an optional service port at which the webhook will be contacted.
     * `port` should be a valid port number (1-65535, inclusive).
     * Defaults to 443 for backward compatibility.
     * +optional
     * 
* * optional int32 port = 4; */ public boolean hasPort() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * port is an optional service port at which the webhook will be contacted.
     * `port` should be a valid port number (1-65535, inclusive).
     * Defaults to 443 for backward compatibility.
     * +optional
     * 
* * optional int32 port = 4; */ public int getPort() { return port_; } 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, namespace_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, path_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt32(4, port_); } 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, namespace_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, path_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, port_); } 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.ServiceReference)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference other = (io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference) obj; boolean result = true; result = result && (hasNamespace() == other.hasNamespace()); if (hasNamespace()) { result = result && getNamespace().equals(other.getNamespace()); } result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName().equals(other.getName()); } result = result && (hasPath() == other.hasPath()); if (hasPath()) { result = result && getPath().equals(other.getPath()); } result = result && (hasPort() == other.hasPort()); if (hasPort()) { result = result && (getPort() == other.getPort()); } 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 (hasNamespace()) { hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().hashCode(); } if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasPath()) { hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); } if (hasPort()) { hash = (37 * hash) + PORT_FIELD_NUMBER; hash = (53 * hash) + getPort(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference 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.ServiceReference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference 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.ServiceReference parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference 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.ServiceReference parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference 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.ServiceReference parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference 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.ServiceReference 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.ServiceReference 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.ServiceReference 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; } /** * * *
     * ServiceReference holds a reference to Service.legacy.k8s.io
     * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ServiceReference} */ 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.ServiceReference) io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReferenceOrBuilder { 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_ServiceReference_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_ServiceReference_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference.class, io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference.Builder.class); } // Construct using // io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference.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(); namespace_ = ""; bitField0_ = (bitField0_ & ~0x00000001); name_ = ""; bitField0_ = (bitField0_ & ~0x00000002); path_ = ""; bitField0_ = (bitField0_ & ~0x00000004); port_ = 0; bitField0_ = (bitField0_ & ~0x00000008); 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_ServiceReference_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference build() { io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference buildPartial() { io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference result = new io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.namespace_ = namespace_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.name_ = name_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.path_ = path_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.port_ = port_; 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.ServiceReference) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference other) { if (other == io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference .getDefaultInstance()) return this; if (other.hasNamespace()) { bitField0_ |= 0x00000001; namespace_ = other.namespace_; onChanged(); } if (other.hasName()) { bitField0_ |= 0x00000002; name_ = other.name_; onChanged(); } if (other.hasPath()) { bitField0_ |= 0x00000004; path_ = other.path_; onChanged(); } if (other.hasPort()) { setPort(other.getPort()); } 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.ServiceReference parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object namespace_ = ""; /** * * *
       * namespace is the namespace of the service.
       * Required
       * 
* * optional string namespace = 1; */ public boolean hasNamespace() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * namespace is the namespace of the service.
       * Required
       * 
* * optional string namespace = 1; */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; 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()) { namespace_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * namespace is the namespace of the service.
       * Required
       * 
* * optional string namespace = 1; */ public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * namespace is the namespace of the service.
       * Required
       * 
* * optional string namespace = 1; */ public Builder setNamespace(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; namespace_ = value; onChanged(); return this; } /** * * *
       * namespace is the namespace of the service.
       * Required
       * 
* * optional string namespace = 1; */ public Builder clearNamespace() { bitField0_ = (bitField0_ & ~0x00000001); namespace_ = getDefaultInstance().getNamespace(); onChanged(); return this; } /** * * *
       * namespace is the namespace of the service.
       * Required
       * 
* * optional string namespace = 1; */ public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; namespace_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** * * *
       * name is the name of the service.
       * Required
       * 
* * optional string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * name is the name of the service.
       * Required
       * 
* * optional string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * name is the name of the service.
       * Required
       * 
* * optional string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * name is the name of the service.
       * Required
       * 
* * optional string name = 2; */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } /** * * *
       * name is the name of the service.
       * Required
       * 
* * optional string name = 2; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * * *
       * name is the name of the service.
       * Required
       * 
* * optional string name = 2; */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } private java.lang.Object path_ = ""; /** * * *
       * path is an optional URL path at which the webhook will be contacted.
       * +optional
       * 
* * optional string path = 3; */ public boolean hasPath() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * path is an optional URL path at which the webhook will be contacted.
       * +optional
       * 
* * optional string path = 3; */ public java.lang.String getPath() { java.lang.Object ref = path_; 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()) { path_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * path is an optional URL path at which the webhook will be contacted.
       * +optional
       * 
* * optional string path = 3; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * path is an optional URL path at which the webhook will be contacted.
       * +optional
       * 
* * optional string path = 3; */ public Builder setPath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; path_ = value; onChanged(); return this; } /** * * *
       * path is an optional URL path at which the webhook will be contacted.
       * +optional
       * 
* * optional string path = 3; */ public Builder clearPath() { bitField0_ = (bitField0_ & ~0x00000004); path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** * * *
       * path is an optional URL path at which the webhook will be contacted.
       * +optional
       * 
* * optional string path = 3; */ public Builder setPathBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; path_ = value; onChanged(); return this; } private int port_; /** * * *
       * port is an optional service port at which the webhook will be contacted.
       * `port` should be a valid port number (1-65535, inclusive).
       * Defaults to 443 for backward compatibility.
       * +optional
       * 
* * optional int32 port = 4; */ public boolean hasPort() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * port is an optional service port at which the webhook will be contacted.
       * `port` should be a valid port number (1-65535, inclusive).
       * Defaults to 443 for backward compatibility.
       * +optional
       * 
* * optional int32 port = 4; */ public int getPort() { return port_; } /** * * *
       * port is an optional service port at which the webhook will be contacted.
       * `port` should be a valid port number (1-65535, inclusive).
       * Defaults to 443 for backward compatibility.
       * +optional
       * 
* * optional int32 port = 4; */ public Builder setPort(int value) { bitField0_ |= 0x00000008; port_ = value; onChanged(); return this; } /** * * *
       * port is an optional service port at which the webhook will be contacted.
       * `port` should be a valid port number (1-65535, inclusive).
       * Defaults to 443 for backward compatibility.
       * +optional
       * 
* * optional int32 port = 4; */ public Builder clearPort() { bitField0_ = (bitField0_ & ~0x00000008); port_ = 0; 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.ServiceReference) } // @@protoc_insertion_point(class_scope:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ServiceReference) private static final io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference(); } public static io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ServiceReference parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ServiceReference(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.ServiceReference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface WebhookClientConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.WebhookClientConfig) com.google.protobuf.MessageOrBuilder { /** * * *
     * url gives the location of the webhook, in standard URL form
     * (`scheme://host:port/path`). Exactly one of `url` or `service`
     * must be specified.
     * The `host` should not refer to a service running in the cluster; use
     * the `service` field instead. The host might be resolved via external
     * DNS in some apiservers (e.g., `kube-apiserver` cannot resolve
     * in-cluster DNS as that would be a layering violation). `host` may
     * also be an IP address.
     * Please note that using `localhost` or `127.0.0.1` as a `host` is
     * risky unless you take great care to run this webhook on all hosts
     * which run an apiserver which might need to make calls to this
     * webhook. Such installs are likely to be non-portable, i.e., not easy
     * to turn up in a new cluster.
     * The scheme must be "https"; the URL must begin with "https://".
     * A path is optional, and if present may be any string permissible in
     * a URL. You may use the path to pass an arbitrary string to the
     * webhook, for example, a cluster identifier.
     * Attempting to use a user or basic auth e.g. "user:password@" is not
     * allowed. Fragments ("#...") and query parameters ("?...") are not
     * allowed, either.
     * +optional
     * 
* * optional string url = 3; */ boolean hasUrl(); /** * * *
     * url gives the location of the webhook, in standard URL form
     * (`scheme://host:port/path`). Exactly one of `url` or `service`
     * must be specified.
     * The `host` should not refer to a service running in the cluster; use
     * the `service` field instead. The host might be resolved via external
     * DNS in some apiservers (e.g., `kube-apiserver` cannot resolve
     * in-cluster DNS as that would be a layering violation). `host` may
     * also be an IP address.
     * Please note that using `localhost` or `127.0.0.1` as a `host` is
     * risky unless you take great care to run this webhook on all hosts
     * which run an apiserver which might need to make calls to this
     * webhook. Such installs are likely to be non-portable, i.e., not easy
     * to turn up in a new cluster.
     * The scheme must be "https"; the URL must begin with "https://".
     * A path is optional, and if present may be any string permissible in
     * a URL. You may use the path to pass an arbitrary string to the
     * webhook, for example, a cluster identifier.
     * Attempting to use a user or basic auth e.g. "user:password@" is not
     * allowed. Fragments ("#...") and query parameters ("?...") are not
     * allowed, either.
     * +optional
     * 
* * optional string url = 3; */ java.lang.String getUrl(); /** * * *
     * url gives the location of the webhook, in standard URL form
     * (`scheme://host:port/path`). Exactly one of `url` or `service`
     * must be specified.
     * The `host` should not refer to a service running in the cluster; use
     * the `service` field instead. The host might be resolved via external
     * DNS in some apiservers (e.g., `kube-apiserver` cannot resolve
     * in-cluster DNS as that would be a layering violation). `host` may
     * also be an IP address.
     * Please note that using `localhost` or `127.0.0.1` as a `host` is
     * risky unless you take great care to run this webhook on all hosts
     * which run an apiserver which might need to make calls to this
     * webhook. Such installs are likely to be non-portable, i.e., not easy
     * to turn up in a new cluster.
     * The scheme must be "https"; the URL must begin with "https://".
     * A path is optional, and if present may be any string permissible in
     * a URL. You may use the path to pass an arbitrary string to the
     * webhook, for example, a cluster identifier.
     * Attempting to use a user or basic auth e.g. "user:password@" is not
     * allowed. Fragments ("#...") and query parameters ("?...") are not
     * allowed, either.
     * +optional
     * 
* * optional string url = 3; */ com.google.protobuf.ByteString getUrlBytes(); /** * * *
     * service is a reference to the service for this webhook. Either
     * service or url must be specified.
     * If the webhook is running within the cluster, then you should use `service`.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ServiceReference service = 1; * */ boolean hasService(); /** * * *
     * service is a reference to the service for this webhook. Either
     * service or url must be specified.
     * If the webhook is running within the cluster, then you should use `service`.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ServiceReference service = 1; * */ io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference getService(); /** * * *
     * service is a reference to the service for this webhook. Either
     * service or url must be specified.
     * If the webhook is running within the cluster, then you should use `service`.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ServiceReference service = 1; * */ io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReferenceOrBuilder getServiceOrBuilder(); /** * * *
     * caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
     * If unspecified, system trust roots on the apiserver are used.
     * +optional
     * 
* * optional bytes caBundle = 2; */ boolean hasCaBundle(); /** * * *
     * caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
     * If unspecified, system trust roots on the apiserver are used.
     * +optional
     * 
* * optional bytes caBundle = 2; */ com.google.protobuf.ByteString getCaBundle(); } /** * * *
   * WebhookClientConfig contains the information to make a TLS connection with the webhook.
   * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.WebhookClientConfig} */ public static final class WebhookClientConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.WebhookClientConfig) WebhookClientConfigOrBuilder { private static final long serialVersionUID = 0L; // Use WebhookClientConfig.newBuilder() to construct. private WebhookClientConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WebhookClientConfig() { url_ = ""; caBundle_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WebhookClientConfig( 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.V1beta1Apiextensions.ServiceReference.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = service_.toBuilder(); } service_ = input.readMessage( io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(service_); service_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 18: { bitField0_ |= 0x00000004; caBundle_ = input.readBytes(); break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; url_ = 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_WebhookClientConfig_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_WebhookClientConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig.class, io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig.Builder.class); } private int bitField0_; public static final int URL_FIELD_NUMBER = 3; private volatile java.lang.Object url_; /** * * *
     * url gives the location of the webhook, in standard URL form
     * (`scheme://host:port/path`). Exactly one of `url` or `service`
     * must be specified.
     * The `host` should not refer to a service running in the cluster; use
     * the `service` field instead. The host might be resolved via external
     * DNS in some apiservers (e.g., `kube-apiserver` cannot resolve
     * in-cluster DNS as that would be a layering violation). `host` may
     * also be an IP address.
     * Please note that using `localhost` or `127.0.0.1` as a `host` is
     * risky unless you take great care to run this webhook on all hosts
     * which run an apiserver which might need to make calls to this
     * webhook. Such installs are likely to be non-portable, i.e., not easy
     * to turn up in a new cluster.
     * The scheme must be "https"; the URL must begin with "https://".
     * A path is optional, and if present may be any string permissible in
     * a URL. You may use the path to pass an arbitrary string to the
     * webhook, for example, a cluster identifier.
     * Attempting to use a user or basic auth e.g. "user:password@" is not
     * allowed. Fragments ("#...") and query parameters ("?...") are not
     * allowed, either.
     * +optional
     * 
* * optional string url = 3; */ public boolean hasUrl() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * url gives the location of the webhook, in standard URL form
     * (`scheme://host:port/path`). Exactly one of `url` or `service`
     * must be specified.
     * The `host` should not refer to a service running in the cluster; use
     * the `service` field instead. The host might be resolved via external
     * DNS in some apiservers (e.g., `kube-apiserver` cannot resolve
     * in-cluster DNS as that would be a layering violation). `host` may
     * also be an IP address.
     * Please note that using `localhost` or `127.0.0.1` as a `host` is
     * risky unless you take great care to run this webhook on all hosts
     * which run an apiserver which might need to make calls to this
     * webhook. Such installs are likely to be non-portable, i.e., not easy
     * to turn up in a new cluster.
     * The scheme must be "https"; the URL must begin with "https://".
     * A path is optional, and if present may be any string permissible in
     * a URL. You may use the path to pass an arbitrary string to the
     * webhook, for example, a cluster identifier.
     * Attempting to use a user or basic auth e.g. "user:password@" is not
     * allowed. Fragments ("#...") and query parameters ("?...") are not
     * allowed, either.
     * +optional
     * 
* * optional string url = 3; */ public java.lang.String getUrl() { java.lang.Object ref = url_; 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()) { url_ = s; } return s; } } /** * * *
     * url gives the location of the webhook, in standard URL form
     * (`scheme://host:port/path`). Exactly one of `url` or `service`
     * must be specified.
     * The `host` should not refer to a service running in the cluster; use
     * the `service` field instead. The host might be resolved via external
     * DNS in some apiservers (e.g., `kube-apiserver` cannot resolve
     * in-cluster DNS as that would be a layering violation). `host` may
     * also be an IP address.
     * Please note that using `localhost` or `127.0.0.1` as a `host` is
     * risky unless you take great care to run this webhook on all hosts
     * which run an apiserver which might need to make calls to this
     * webhook. Such installs are likely to be non-portable, i.e., not easy
     * to turn up in a new cluster.
     * The scheme must be "https"; the URL must begin with "https://".
     * A path is optional, and if present may be any string permissible in
     * a URL. You may use the path to pass an arbitrary string to the
     * webhook, for example, a cluster identifier.
     * Attempting to use a user or basic auth e.g. "user:password@" is not
     * allowed. Fragments ("#...") and query parameters ("?...") are not
     * allowed, either.
     * +optional
     * 
* * optional string url = 3; */ public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SERVICE_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference service_; /** * * *
     * service is a reference to the service for this webhook. Either
     * service or url must be specified.
     * If the webhook is running within the cluster, then you should use `service`.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ServiceReference service = 1; * */ public boolean hasService() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * service is a reference to the service for this webhook. Either
     * service or url must be specified.
     * If the webhook is running within the cluster, then you should use `service`.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ServiceReference service = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference getService() { return service_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference.getDefaultInstance() : service_; } /** * * *
     * service is a reference to the service for this webhook. Either
     * service or url must be specified.
     * If the webhook is running within the cluster, then you should use `service`.
     * +optional
     * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ServiceReference service = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReferenceOrBuilder getServiceOrBuilder() { return service_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference.getDefaultInstance() : service_; } public static final int CABUNDLE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString caBundle_; /** * * *
     * caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
     * If unspecified, system trust roots on the apiserver are used.
     * +optional
     * 
* * optional bytes caBundle = 2; */ public boolean hasCaBundle() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
     * If unspecified, system trust roots on the apiserver are used.
     * +optional
     * 
* * optional bytes caBundle = 2; */ public com.google.protobuf.ByteString getCaBundle() { return caBundle_; } 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_ & 0x00000002) == 0x00000002)) { output.writeMessage(1, getService()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(2, caBundle_); } if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, url_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getService()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, caBundle_); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, url_); } 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.WebhookClientConfig)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig other = (io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig) obj; boolean result = true; result = result && (hasUrl() == other.hasUrl()); if (hasUrl()) { result = result && getUrl().equals(other.getUrl()); } result = result && (hasService() == other.hasService()); if (hasService()) { result = result && getService().equals(other.getService()); } result = result && (hasCaBundle() == other.hasCaBundle()); if (hasCaBundle()) { result = result && getCaBundle().equals(other.getCaBundle()); } 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 (hasUrl()) { hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); } if (hasService()) { hash = (37 * hash) + SERVICE_FIELD_NUMBER; hash = (53 * hash) + getService().hashCode(); } if (hasCaBundle()) { hash = (37 * hash) + CABUNDLE_FIELD_NUMBER; hash = (53 * hash) + getCaBundle().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig 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.WebhookClientConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig 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.WebhookClientConfig parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig 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.WebhookClientConfig parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig 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.WebhookClientConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig 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.WebhookClientConfig 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.WebhookClientConfig 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.WebhookClientConfig 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; } /** * * *
     * WebhookClientConfig contains the information to make a TLS connection with the webhook.
     * 
* * Protobuf type {@code * k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.WebhookClientConfig} */ 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.WebhookClientConfig) io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfigOrBuilder { 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_WebhookClientConfig_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_WebhookClientConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig.class, io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig.Builder.class); } // Construct using // io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getServiceFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); url_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (serviceBuilder_ == null) { service_ = null; } else { serviceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); caBundle_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); 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_WebhookClientConfig_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig build() { io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig buildPartial() { io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig result = new io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.url_ = url_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (serviceBuilder_ == null) { result.service_ = service_; } else { result.service_ = serviceBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.caBundle_ = caBundle_; 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.WebhookClientConfig) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig other) { if (other == io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig .getDefaultInstance()) return this; if (other.hasUrl()) { bitField0_ |= 0x00000001; url_ = other.url_; onChanged(); } if (other.hasService()) { mergeService(other.getService()); } if (other.hasCaBundle()) { setCaBundle(other.getCaBundle()); } 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.WebhookClientConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object url_ = ""; /** * * *
       * url gives the location of the webhook, in standard URL form
       * (`scheme://host:port/path`). Exactly one of `url` or `service`
       * must be specified.
       * The `host` should not refer to a service running in the cluster; use
       * the `service` field instead. The host might be resolved via external
       * DNS in some apiservers (e.g., `kube-apiserver` cannot resolve
       * in-cluster DNS as that would be a layering violation). `host` may
       * also be an IP address.
       * Please note that using `localhost` or `127.0.0.1` as a `host` is
       * risky unless you take great care to run this webhook on all hosts
       * which run an apiserver which might need to make calls to this
       * webhook. Such installs are likely to be non-portable, i.e., not easy
       * to turn up in a new cluster.
       * The scheme must be "https"; the URL must begin with "https://".
       * A path is optional, and if present may be any string permissible in
       * a URL. You may use the path to pass an arbitrary string to the
       * webhook, for example, a cluster identifier.
       * Attempting to use a user or basic auth e.g. "user:password@" is not
       * allowed. Fragments ("#...") and query parameters ("?...") are not
       * allowed, either.
       * +optional
       * 
* * optional string url = 3; */ public boolean hasUrl() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * url gives the location of the webhook, in standard URL form
       * (`scheme://host:port/path`). Exactly one of `url` or `service`
       * must be specified.
       * The `host` should not refer to a service running in the cluster; use
       * the `service` field instead. The host might be resolved via external
       * DNS in some apiservers (e.g., `kube-apiserver` cannot resolve
       * in-cluster DNS as that would be a layering violation). `host` may
       * also be an IP address.
       * Please note that using `localhost` or `127.0.0.1` as a `host` is
       * risky unless you take great care to run this webhook on all hosts
       * which run an apiserver which might need to make calls to this
       * webhook. Such installs are likely to be non-portable, i.e., not easy
       * to turn up in a new cluster.
       * The scheme must be "https"; the URL must begin with "https://".
       * A path is optional, and if present may be any string permissible in
       * a URL. You may use the path to pass an arbitrary string to the
       * webhook, for example, a cluster identifier.
       * Attempting to use a user or basic auth e.g. "user:password@" is not
       * allowed. Fragments ("#...") and query parameters ("?...") are not
       * allowed, either.
       * +optional
       * 
* * optional string url = 3; */ public java.lang.String getUrl() { java.lang.Object ref = url_; 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()) { url_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * url gives the location of the webhook, in standard URL form
       * (`scheme://host:port/path`). Exactly one of `url` or `service`
       * must be specified.
       * The `host` should not refer to a service running in the cluster; use
       * the `service` field instead. The host might be resolved via external
       * DNS in some apiservers (e.g., `kube-apiserver` cannot resolve
       * in-cluster DNS as that would be a layering violation). `host` may
       * also be an IP address.
       * Please note that using `localhost` or `127.0.0.1` as a `host` is
       * risky unless you take great care to run this webhook on all hosts
       * which run an apiserver which might need to make calls to this
       * webhook. Such installs are likely to be non-portable, i.e., not easy
       * to turn up in a new cluster.
       * The scheme must be "https"; the URL must begin with "https://".
       * A path is optional, and if present may be any string permissible in
       * a URL. You may use the path to pass an arbitrary string to the
       * webhook, for example, a cluster identifier.
       * Attempting to use a user or basic auth e.g. "user:password@" is not
       * allowed. Fragments ("#...") and query parameters ("?...") are not
       * allowed, either.
       * +optional
       * 
* * optional string url = 3; */ public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * url gives the location of the webhook, in standard URL form
       * (`scheme://host:port/path`). Exactly one of `url` or `service`
       * must be specified.
       * The `host` should not refer to a service running in the cluster; use
       * the `service` field instead. The host might be resolved via external
       * DNS in some apiservers (e.g., `kube-apiserver` cannot resolve
       * in-cluster DNS as that would be a layering violation). `host` may
       * also be an IP address.
       * Please note that using `localhost` or `127.0.0.1` as a `host` is
       * risky unless you take great care to run this webhook on all hosts
       * which run an apiserver which might need to make calls to this
       * webhook. Such installs are likely to be non-portable, i.e., not easy
       * to turn up in a new cluster.
       * The scheme must be "https"; the URL must begin with "https://".
       * A path is optional, and if present may be any string permissible in
       * a URL. You may use the path to pass an arbitrary string to the
       * webhook, for example, a cluster identifier.
       * Attempting to use a user or basic auth e.g. "user:password@" is not
       * allowed. Fragments ("#...") and query parameters ("?...") are not
       * allowed, either.
       * +optional
       * 
* * optional string url = 3; */ public Builder setUrl(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; url_ = value; onChanged(); return this; } /** * * *
       * url gives the location of the webhook, in standard URL form
       * (`scheme://host:port/path`). Exactly one of `url` or `service`
       * must be specified.
       * The `host` should not refer to a service running in the cluster; use
       * the `service` field instead. The host might be resolved via external
       * DNS in some apiservers (e.g., `kube-apiserver` cannot resolve
       * in-cluster DNS as that would be a layering violation). `host` may
       * also be an IP address.
       * Please note that using `localhost` or `127.0.0.1` as a `host` is
       * risky unless you take great care to run this webhook on all hosts
       * which run an apiserver which might need to make calls to this
       * webhook. Such installs are likely to be non-portable, i.e., not easy
       * to turn up in a new cluster.
       * The scheme must be "https"; the URL must begin with "https://".
       * A path is optional, and if present may be any string permissible in
       * a URL. You may use the path to pass an arbitrary string to the
       * webhook, for example, a cluster identifier.
       * Attempting to use a user or basic auth e.g. "user:password@" is not
       * allowed. Fragments ("#...") and query parameters ("?...") are not
       * allowed, either.
       * +optional
       * 
* * optional string url = 3; */ public Builder clearUrl() { bitField0_ = (bitField0_ & ~0x00000001); url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** * * *
       * url gives the location of the webhook, in standard URL form
       * (`scheme://host:port/path`). Exactly one of `url` or `service`
       * must be specified.
       * The `host` should not refer to a service running in the cluster; use
       * the `service` field instead. The host might be resolved via external
       * DNS in some apiservers (e.g., `kube-apiserver` cannot resolve
       * in-cluster DNS as that would be a layering violation). `host` may
       * also be an IP address.
       * Please note that using `localhost` or `127.0.0.1` as a `host` is
       * risky unless you take great care to run this webhook on all hosts
       * which run an apiserver which might need to make calls to this
       * webhook. Such installs are likely to be non-portable, i.e., not easy
       * to turn up in a new cluster.
       * The scheme must be "https"; the URL must begin with "https://".
       * A path is optional, and if present may be any string permissible in
       * a URL. You may use the path to pass an arbitrary string to the
       * webhook, for example, a cluster identifier.
       * Attempting to use a user or basic auth e.g. "user:password@" is not
       * allowed. Fragments ("#...") and query parameters ("?...") are not
       * allowed, either.
       * +optional
       * 
* * optional string url = 3; */ public Builder setUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; url_ = value; onChanged(); return this; } private io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference service_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference, io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReferenceOrBuilder> serviceBuilder_; /** * * *
       * service is a reference to the service for this webhook. Either
       * service or url must be specified.
       * If the webhook is running within the cluster, then you should use `service`.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ServiceReference service = 1; * */ public boolean hasService() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * service is a reference to the service for this webhook. Either
       * service or url must be specified.
       * If the webhook is running within the cluster, then you should use `service`.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ServiceReference service = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference getService() { if (serviceBuilder_ == null) { return service_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference .getDefaultInstance() : service_; } else { return serviceBuilder_.getMessage(); } } /** * * *
       * service is a reference to the service for this webhook. Either
       * service or url must be specified.
       * If the webhook is running within the cluster, then you should use `service`.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ServiceReference service = 1; * */ public Builder setService( io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference value) { if (serviceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } service_ = value; onChanged(); } else { serviceBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * service is a reference to the service for this webhook. Either
       * service or url must be specified.
       * If the webhook is running within the cluster, then you should use `service`.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ServiceReference service = 1; * */ public Builder setService( io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference.Builder builderForValue) { if (serviceBuilder_ == null) { service_ = builderForValue.build(); onChanged(); } else { serviceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * service is a reference to the service for this webhook. Either
       * service or url must be specified.
       * If the webhook is running within the cluster, then you should use `service`.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ServiceReference service = 1; * */ public Builder mergeService( io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference value) { if (serviceBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && service_ != null && service_ != io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference .getDefaultInstance()) { service_ = io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference.newBuilder( service_) .mergeFrom(value) .buildPartial(); } else { service_ = value; } onChanged(); } else { serviceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * service is a reference to the service for this webhook. Either
       * service or url must be specified.
       * If the webhook is running within the cluster, then you should use `service`.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ServiceReference service = 1; * */ public Builder clearService() { if (serviceBuilder_ == null) { service_ = null; onChanged(); } else { serviceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * service is a reference to the service for this webhook. Either
       * service or url must be specified.
       * If the webhook is running within the cluster, then you should use `service`.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ServiceReference service = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference.Builder getServiceBuilder() { bitField0_ |= 0x00000002; onChanged(); return getServiceFieldBuilder().getBuilder(); } /** * * *
       * service is a reference to the service for this webhook. Either
       * service or url must be specified.
       * If the webhook is running within the cluster, then you should use `service`.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ServiceReference service = 1; * */ public io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReferenceOrBuilder getServiceOrBuilder() { if (serviceBuilder_ != null) { return serviceBuilder_.getMessageOrBuilder(); } else { return service_ == null ? io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference .getDefaultInstance() : service_; } } /** * * *
       * service is a reference to the service for this webhook. Either
       * service or url must be specified.
       * If the webhook is running within the cluster, then you should use `service`.
       * +optional
       * 
* * * optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ServiceReference service = 1; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference, io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReferenceOrBuilder> getServiceFieldBuilder() { if (serviceBuilder_ == null) { serviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference, io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference.Builder, io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReferenceOrBuilder>( getService(), getParentForChildren(), isClean()); service_ = null; } return serviceBuilder_; } private com.google.protobuf.ByteString caBundle_ = com.google.protobuf.ByteString.EMPTY; /** * * *
       * caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
       * If unspecified, system trust roots on the apiserver are used.
       * +optional
       * 
* * optional bytes caBundle = 2; */ public boolean hasCaBundle() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
       * If unspecified, system trust roots on the apiserver are used.
       * +optional
       * 
* * optional bytes caBundle = 2; */ public com.google.protobuf.ByteString getCaBundle() { return caBundle_; } /** * * *
       * caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
       * If unspecified, system trust roots on the apiserver are used.
       * +optional
       * 
* * optional bytes caBundle = 2; */ public Builder setCaBundle(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; caBundle_ = value; onChanged(); return this; } /** * * *
       * caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
       * If unspecified, system trust roots on the apiserver are used.
       * +optional
       * 
* * optional bytes caBundle = 2; */ public Builder clearCaBundle() { bitField0_ = (bitField0_ & ~0x00000004); caBundle_ = getDefaultInstance().getCaBundle(); 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.WebhookClientConfig) } // @@protoc_insertion_point(class_scope:k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.WebhookClientConfig) private static final io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig(); } public static io.kubernetes.client.proto.V1beta1Apiextensions.WebhookClientConfig getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WebhookClientConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WebhookClientConfig(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.WebhookClientConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_ConversionRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_ConversionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_ConversionResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_ConversionResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_ConversionReview_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_ConversionReview_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceColumnDefinition_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceColumnDefinition_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceConversion_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceConversion_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinition_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinition_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionCondition_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionCondition_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionNames_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionNames_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionStatus_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionStatus_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionVersion_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionVersion_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceSubresourceScale_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceSubresourceScale_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceSubresourceStatus_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceSubresourceStatus_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceSubresources_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceSubresources_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceValidation_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceValidation_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_ExternalDocumentation_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_ExternalDocumentation_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSON_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSON_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaProps_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaProps_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaProps_PropertiesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaProps_PropertiesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaProps_PatternPropertiesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaProps_PatternPropertiesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaProps_DependenciesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaProps_DependenciesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaProps_DefinitionsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaProps_DefinitionsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaPropsOrArray_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaPropsOrArray_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaPropsOrBool_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaPropsOrBool_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaPropsOrStringArray_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaPropsOrStringArray_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_ServiceReference_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_ServiceReference_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_WebhookClientConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_WebhookClientConfig_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\nMk8s.io/apiextensions-apiserver/pkg/api" + "s/apiextensions/v1beta1/generated.proto\022" + "=k8s.io.apiextensions_apiserver.pkg.apis" + ".apiextensions.v1beta1\0324k8s.io/apimachin" + "ery/pkg/apis/meta/v1/generated.proto\032/k8" + "s.io/apimachinery/pkg/runtime/generated." + "proto\0326k8s.io/apimachinery/pkg/runtime/s" + "chema/generated.proto\"{\n\021ConversionReque" + "st\022\013\n\003uid\030\001 \001(\t\022\031\n\021desiredAPIVersion\030\002 \001" + "(\t\022>\n\007objects\030\003 \003(\0132-.k8s.io.apimachiner" + "y.pkg.runtime.RawExtension\"\250\001\n\022Conversio" + "nResponse\022\013\n\003uid\030\001 \001(\t\022G\n\020convertedObjec" + "ts\030\002 \003(\0132-.k8s.io.apimachinery.pkg.runti" + "me.RawExtension\022<\n\006result\030\003 \001(\0132,.k8s.io" + ".apimachinery.pkg.apis.meta.v1.Status\"\332\001" + "\n\020ConversionReview\022a\n\007request\030\001 \001(\0132P.k8" + "s.io.apiextensions_apiserver.pkg.apis.ap" + "iextensions.v1beta1.ConversionRequest\022c\n" + "\010response\030\002 \001(\0132Q.k8s.io.apiextensions_a" + "piserver.pkg.apis.apiextensions.v1beta1." + "ConversionResponse\"\205\001\n\036CustomResourceCol" + "umnDefinition\022\014\n\004name\030\001 \001(\t\022\014\n\004type\030\002 \001(" + "\t\022\016\n\006format\030\003 \001(\t\022\023\n\013description\030\004 \001(\t\022\020" + "\n\010priority\030\005 \001(\005\022\020\n\010JSONPath\030\006 \001(\t\"\277\001\n\030C" + "ustomResourceConversion\022\020\n\010strategy\030\001 \001(" + "\t\022o\n\023webhookClientConfig\030\002 \001(\0132R.k8s.io." + "apiextensions_apiserver.pkg.apis.apiexte" + "nsions.v1beta1.WebhookClientConfig\022 \n\030co" + "nversionReviewVersions\030\003 \003(\t\"\270\002\n\030CustomR" + "esourceDefinition\022B\n\010metadata\030\001 \001(\01320.k8" + "s.io.apimachinery.pkg.apis.meta.v1.Objec" + "tMeta\022i\n\004spec\030\002 \001(\0132[.k8s.io.apiextensio" + "ns_apiserver.pkg.apis.apiextensions.v1be" + "ta1.CustomResourceDefinitionSpec\022m\n\006stat" + "us\030\003 \001(\0132].k8s.io.apiextensions_apiserve" + "r.pkg.apis.apiextensions.v1beta1.CustomR" + "esourceDefinitionStatus\"\252\001\n!CustomResour" + "ceDefinitionCondition\022\014\n\004type\030\001 \001(\t\022\016\n\006s" + "tatus\030\002 \001(\t\022F\n\022lastTransitionTime\030\003 \001(\0132" + "*.k8s.io.apimachinery.pkg.apis.meta.v1.T" + "ime\022\016\n\006reason\030\004 \001(\t\022\017\n\007message\030\005 \001(\t\"\310\001\n" + "\034CustomResourceDefinitionList\022@\n\010metadat" + "a\030\001 \001(\0132..k8s.io.apimachinery.pkg.apis.m" + "eta.v1.ListMeta\022f\n\005items\030\002 \003(\0132W.k8s.io." + "apiextensions_apiserver.pkg.apis.apiexte" + "nsions.v1beta1.CustomResourceDefinition\"" + "\211\001\n\035CustomResourceDefinitionNames\022\016\n\006plu" + "ral\030\001 \001(\t\022\020\n\010singular\030\002 \001(\t\022\022\n\nshortName" + "s\030\003 \003(\t\022\014\n\004kind\030\004 \001(\t\022\020\n\010listKind\030\005 \001(\t\022" + "\022\n\ncategories\030\006 \003(\t\"\227\006\n\034CustomResourceDe" + "finitionSpec\022\r\n\005group\030\001 \001(\t\022\017\n\007version\030\002" + " \001(\t\022k\n\005names\030\003 \001(\0132\\.k8s.io.apiextensio" + "ns_apiserver.pkg.apis.apiextensions.v1be" + "ta1.CustomResourceDefinitionNames\022\r\n\005sco" + "pe\030\004 \001(\t\022k\n\nvalidation\030\005 \001(\0132W.k8s.io.ap" + "iextensions_apiserver.pkg.apis.apiextens" + "ions.v1beta1.CustomResourceValidation\022o\n" + "\014subresources\030\006 \001(\0132Y.k8s.io.apiextensio" + "ns_apiserver.pkg.apis.apiextensions.v1be" + "ta1.CustomResourceSubresources\022p\n\010versio" + "ns\030\007 \003(\0132^.k8s.io.apiextensions_apiserve" + "r.pkg.apis.apiextensions.v1beta1.CustomR" + "esourceDefinitionVersion\022\177\n\030additionalPr" + "interColumns\030\010 \003(\0132].k8s.io.apiextension" + "s_apiserver.pkg.apis.apiextensions.v1bet" + "a1.CustomResourceColumnDefinition\022k\n\ncon" + "version\030\t \001(\0132W.k8s.io.apiextensions_api" + "server.pkg.apis.apiextensions.v1beta1.Cu" + "stomResourceConversion\022\035\n\025preserveUnknow" + "nFields\030\n \001(\010\"\243\002\n\036CustomResourceDefiniti" + "onStatus\022t\n\nconditions\030\001 \003(\0132`.k8s.io.ap" + "iextensions_apiserver.pkg.apis.apiextens" + "ions.v1beta1.CustomResourceDefinitionCon" + "dition\022s\n\racceptedNames\030\002 \001(\0132\\.k8s.io.a" + "piextensions_apiserver.pkg.apis.apiexten" + "sions.v1beta1.CustomResourceDefinitionNa" + "mes\022\026\n\016storedVersions\030\003 \003(\t\"\333\003\n\037CustomRe" + "sourceDefinitionVersion\022\014\n\004name\030\001 \001(\t\022\016\n" + "\006served\030\002 \001(\010\022\017\n\007storage\030\003 \001(\010\022\022\n\ndeprec" + "ated\030\007 \001(\010\022\032\n\022deprecationWarning\030\010 \001(\t\022g" + "\n\006schema\030\004 \001(\0132W.k8s.io.apiextensions_ap" + "iserver.pkg.apis.apiextensions.v1beta1.C" + "ustomResourceValidation\022o\n\014subresources\030" + "\005 \001(\0132Y.k8s.io.apiextensions_apiserver.p" + "kg.apis.apiextensions.v1beta1.CustomReso" + "urceSubresources\022\177\n\030additionalPrinterCol" + "umns\030\006 \003(\0132].k8s.io.apiextensions_apiser" + "ver.pkg.apis.apiextensions.v1beta1.Custo" + "mResourceColumnDefinition\"q\n\036CustomResou" + "rceSubresourceScale\022\030\n\020specReplicasPath\030" + "\001 \001(\t\022\032\n\022statusReplicasPath\030\002 \001(\t\022\031\n\021lab" + "elSelectorPath\030\003 \001(\t\"!\n\037CustomResourceSu" + "bresourceStatus\"\372\001\n\032CustomResourceSubres" + "ources\022n\n\006status\030\001 \001(\0132^.k8s.io.apiexten" + "sions_apiserver.pkg.apis.apiextensions.v" + "1beta1.CustomResourceSubresourceStatus\022l" + "\n\005scale\030\002 \001(\0132].k8s.io.apiextensions_api" + "server.pkg.apis.apiextensions.v1beta1.Cu" + "stomResourceSubresourceScale\"\203\001\n\030CustomR" + "esourceValidation\022g\n\017openAPIV3Schema\030\001 \001" + "(\0132N.k8s.io.apiextensions_apiserver.pkg." + "apis.apiextensions.v1beta1.JSONSchemaPro" + "ps\"9\n\025ExternalDocumentation\022\023\n\013descripti" + "on\030\001 \001(\t\022\013\n\003url\030\002 \001(\t\"\023\n\004JSON\022\013\n\003raw\030\001 \001" + "(\014\"\252\025\n\017JSONSchemaProps\022\n\n\002id\030\001 \001(\t\022\016\n\006sc" + "hema\030\002 \001(\t\022\013\n\003ref\030\003 \001(\t\022\023\n\013description\030\004" + " \001(\t\022\014\n\004type\030\005 \001(\t\022\016\n\006format\030\006 \001(\t\022\r\n\005ti" + "tle\030\007 \001(\t\022T\n\007default\030\010 \001(\0132C.k8s.io.apie" + "xtensions_apiserver.pkg.apis.apiextensio" + "ns.v1beta1.JSON\022\017\n\007maximum\030\t \001(\001\022\030\n\020excl" + "usiveMaximum\030\n \001(\010\022\017\n\007minimum\030\013 \001(\001\022\030\n\020e" + "xclusiveMinimum\030\014 \001(\010\022\021\n\tmaxLength\030\r \001(\003" + "\022\021\n\tminLength\030\016 \001(\003\022\017\n\007pattern\030\017 \001(\t\022\020\n\010" + "maxItems\030\020 \001(\003\022\020\n\010minItems\030\021 \001(\003\022\023\n\013uniq" + "ueItems\030\022 \001(\010\022\022\n\nmultipleOf\030\023 \001(\001\022Q\n\004enu" + "m\030\024 \003(\0132C.k8s.io.apiextensions_apiserver" + ".pkg.apis.apiextensions.v1beta1.JSON\022\025\n\r" + "maxProperties\030\025 \001(\003\022\025\n\rminProperties\030\026 \001" + "(\003\022\020\n\010required\030\027 \003(\t\022d\n\005items\030\030 \001(\0132U.k8" + "s.io.apiextensions_apiserver.pkg.apis.ap" + "iextensions.v1beta1.JSONSchemaPropsOrArr" + "ay\022]\n\005allOf\030\031 \003(\0132N.k8s.io.apiextensions" + "_apiserver.pkg.apis.apiextensions.v1beta" + "1.JSONSchemaProps\022]\n\005oneOf\030\032 \003(\0132N.k8s.i" + "o.apiextensions_apiserver.pkg.apis.apiex" + "tensions.v1beta1.JSONSchemaProps\022]\n\005anyO" + "f\030\033 \003(\0132N.k8s.io.apiextensions_apiserver" + ".pkg.apis.apiextensions.v1beta1.JSONSche" + "maProps\022[\n\003not\030\034 \001(\0132N.k8s.io.apiextensi" + "ons_apiserver.pkg.apis.apiextensions.v1b" + "eta1.JSONSchemaProps\022r\n\nproperties\030\035 \003(\013" + "2^.k8s.io.apiextensions_apiserver.pkg.ap" + "is.apiextensions.v1beta1.JSONSchemaProps" + ".PropertiesEntry\022r\n\024additionalProperties" + "\030\036 \001(\0132T.k8s.io.apiextensions_apiserver." + "pkg.apis.apiextensions.v1beta1.JSONSchem" + "aPropsOrBool\022\200\001\n\021patternProperties\030\037 \003(\013" + "2e.k8s.io.apiextensions_apiserver.pkg.ap" + "is.apiextensions.v1beta1.JSONSchemaProps" + ".PatternPropertiesEntry\022v\n\014dependencies\030" + " \003(\0132`.k8s.io.apiextensions_apiserver.p" + "kg.apis.apiextensions.v1beta1.JSONSchema" + "Props.DependenciesEntry\022m\n\017additionalIte" + "ms\030! \001(\0132T.k8s.io.apiextensions_apiserve" + "r.pkg.apis.apiextensions.v1beta1.JSONSch" + "emaPropsOrBool\022t\n\013definitions\030\" \003(\0132_.k8" + "s.io.apiextensions_apiserver.pkg.apis.ap" + "iextensions.v1beta1.JSONSchemaProps.Defi" + "nitionsEntry\022j\n\014externalDocs\030# \001(\0132T.k8s" + ".io.apiextensions_apiserver.pkg.apis.api" + "extensions.v1beta1.ExternalDocumentation" + "\022T\n\007example\030$ \001(\0132C.k8s.io.apiextensions" + "_apiserver.pkg.apis.apiextensions.v1beta" + "1.JSON\022\020\n\010nullable\030% \001(\010\022(\n xKubernetesP" + "reserveUnknownFields\030& \001(\010\022#\n\033xKubernete" + "sEmbeddedResource\030\' \001(\010\022\036\n\026xKubernetesIn" + "tOrString\030( \001(\010\022\036\n\026xKubernetesListMapKey" + "s\030) \003(\t\022\033\n\023xKubernetesListType\030* \001(\t\022\032\n\022" + "xKubernetesMapType\030+ \001(\t\032\201\001\n\017PropertiesE" + "ntry\022\013\n\003key\030\001 \001(\t\022]\n\005value\030\002 \001(\0132N.k8s.i" + "o.apiextensions_apiserver.pkg.apis.apiex" + "tensions.v1beta1.JSONSchemaProps:\0028\001\032\210\001\n" + "\026PatternPropertiesEntry\022\013\n\003key\030\001 \001(\t\022]\n\005" + "value\030\002 \001(\0132N.k8s.io.apiextensions_apise" + "rver.pkg.apis.apiextensions.v1beta1.JSON" + "SchemaProps:\0028\001\032\220\001\n\021DependenciesEntry\022\013\n" + "\003key\030\001 \001(\t\022j\n\005value\030\002 \001(\0132[.k8s.io.apiex" + "tensions_apiserver.pkg.apis.apiextension" + "s.v1beta1.JSONSchemaPropsOrStringArray:\002" + "8\001\032\202\001\n\020DefinitionsEntry\022\013\n\003key\030\001 \001(\t\022]\n\005" + "value\030\002 \001(\0132N.k8s.io.apiextensions_apise" + "rver.pkg.apis.apiextensions.v1beta1.JSON" + "SchemaProps:\0028\001\"\335\001\n\026JSONSchemaPropsOrArr" + "ay\022^\n\006schema\030\001 \001(\0132N.k8s.io.apiextension" + "s_apiserver.pkg.apis.apiextensions.v1bet" + "a1.JSONSchemaProps\022c\n\013jSONSchemas\030\002 \003(\0132" + "N.k8s.io.apiextensions_apiserver.pkg.api" + "s.apiextensions.v1beta1.JSONSchemaProps\"" + "\207\001\n\025JSONSchemaPropsOrBool\022\016\n\006allows\030\001 \001(" + "\010\022^\n\006schema\030\002 \001(\0132N.k8s.io.apiextensions" + "_apiserver.pkg.apis.apiextensions.v1beta" + "1.JSONSchemaProps\"\220\001\n\034JSONSchemaPropsOrS" + "tringArray\022^\n\006schema\030\001 \001(\0132N.k8s.io.apie" + "xtensions_apiserver.pkg.apis.apiextensio" + "ns.v1beta1.JSONSchemaProps\022\020\n\010property\030\002" + " \003(\t\"O\n\020ServiceReference\022\021\n\tnamespace\030\001 " + "\001(\t\022\014\n\004name\030\002 \001(\t\022\014\n\004path\030\003 \001(\t\022\014\n\004port\030" + "\004 \001(\005\"\226\001\n\023WebhookClientConfig\022\013\n\003url\030\003 \001" + "(\t\022`\n\007service\030\001 \001(\0132O.k8s.io.apiextensio" + "ns_apiserver.pkg.apis.apiextensions.v1be" + "ta1.ServiceReference\022\020\n\010caBundle\030\002 \001(\014B;" + "\n\032io.kubernetes.client.protoB\024V1beta1Api" + "extensionsZ\007v1beta1" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { io.kubernetes.client.proto.Meta.getDescriptor(), io.kubernetes.client.proto.Runtime.getDescriptor(), io.kubernetes.client.proto.RuntimeSchema.getDescriptor(), }, assigner); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_ConversionRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_ConversionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_ConversionRequest_descriptor, new java.lang.String[] { "Uid", "DesiredAPIVersion", "Objects", }); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_ConversionResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_ConversionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_ConversionResponse_descriptor, new java.lang.String[] { "Uid", "ConvertedObjects", "Result", }); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_ConversionReview_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_ConversionReview_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_ConversionReview_descriptor, new java.lang.String[] { "Request", "Response", }); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceColumnDefinition_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceColumnDefinition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceColumnDefinition_descriptor, new java.lang.String[] { "Name", "Type", "Format", "Description", "Priority", "JSONPath", }); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceConversion_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceConversion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceConversion_descriptor, new java.lang.String[] { "Strategy", "WebhookClientConfig", "ConversionReviewVersions", }); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinition_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinition_descriptor, new java.lang.String[] { "Metadata", "Spec", "Status", }); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionCondition_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionCondition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionCondition_descriptor, new java.lang.String[] { "Type", "Status", "LastTransitionTime", "Reason", "Message", }); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionList_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionNames_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionNames_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionNames_descriptor, new java.lang.String[] { "Plural", "Singular", "ShortNames", "Kind", "ListKind", "Categories", }); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionSpec_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionSpec_descriptor, new java.lang.String[] { "Group", "Version", "Names", "Scope", "Validation", "Subresources", "Versions", "AdditionalPrinterColumns", "Conversion", "PreserveUnknownFields", }); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionStatus_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionStatus_descriptor, new java.lang.String[] { "Conditions", "AcceptedNames", "StoredVersions", }); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionVersion_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionVersion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionVersion_descriptor, new java.lang.String[] { "Name", "Served", "Storage", "Deprecated", "DeprecationWarning", "Schema", "Subresources", "AdditionalPrinterColumns", }); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceSubresourceScale_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceSubresourceScale_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceSubresourceScale_descriptor, new java.lang.String[] { "SpecReplicasPath", "StatusReplicasPath", "LabelSelectorPath", }); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceSubresourceStatus_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceSubresourceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceSubresourceStatus_descriptor, new java.lang.String[] {}); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceSubresources_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceSubresources_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceSubresources_descriptor, new java.lang.String[] { "Status", "Scale", }); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceValidation_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceValidation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_CustomResourceValidation_descriptor, new java.lang.String[] { "OpenAPIV3Schema", }); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_ExternalDocumentation_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_ExternalDocumentation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_ExternalDocumentation_descriptor, new java.lang.String[] { "Description", "Url", }); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSON_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSON_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSON_descriptor, new java.lang.String[] { "Raw", }); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaProps_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaProps_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaProps_descriptor, new java.lang.String[] { "Id", "Schema", "Ref", "Description", "Type", "Format", "Title", "Default", "Maximum", "ExclusiveMaximum", "Minimum", "ExclusiveMinimum", "MaxLength", "MinLength", "Pattern", "MaxItems", "MinItems", "UniqueItems", "MultipleOf", "Enum", "MaxProperties", "MinProperties", "Required", "Items", "AllOf", "OneOf", "AnyOf", "Not", "Properties", "AdditionalProperties", "PatternProperties", "Dependencies", "AdditionalItems", "Definitions", "ExternalDocs", "Example", "Nullable", "XKubernetesPreserveUnknownFields", "XKubernetesEmbeddedResource", "XKubernetesIntOrString", "XKubernetesListMapKeys", "XKubernetesListType", "XKubernetesMapType", }); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaProps_PropertiesEntry_descriptor = internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaProps_descriptor .getNestedTypes() .get(0); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaProps_PropertiesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaProps_PropertiesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaProps_PatternPropertiesEntry_descriptor = internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaProps_descriptor .getNestedTypes() .get(1); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaProps_PatternPropertiesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaProps_PatternPropertiesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaProps_DependenciesEntry_descriptor = internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaProps_descriptor .getNestedTypes() .get(2); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaProps_DependenciesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaProps_DependenciesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaProps_DefinitionsEntry_descriptor = internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaProps_descriptor .getNestedTypes() .get(3); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaProps_DefinitionsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaProps_DefinitionsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaPropsOrArray_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaPropsOrArray_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaPropsOrArray_descriptor, new java.lang.String[] { "Schema", "JSONSchemas", }); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaPropsOrBool_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaPropsOrBool_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaPropsOrBool_descriptor, new java.lang.String[] { "Allows", "Schema", }); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaPropsOrStringArray_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaPropsOrStringArray_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_JSONSchemaPropsOrStringArray_descriptor, new java.lang.String[] { "Schema", "Property", }); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_ServiceReference_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_ServiceReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_ServiceReference_descriptor, new java.lang.String[] { "Namespace", "Name", "Path", "Port", }); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_WebhookClientConfig_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_WebhookClientConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apiextensions_apiserver_pkg_apis_apiextensions_v1beta1_WebhookClientConfig_descriptor, new java.lang.String[] { "Url", "Service", "CaBundle", }); io.kubernetes.client.proto.Meta.getDescriptor(); io.kubernetes.client.proto.Runtime.getDescriptor(); io.kubernetes.client.proto.RuntimeSchema.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy