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

io.kubernetes.client.proto.V1beta1Storage 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 V1beta1Storage {
  private V1beta1Storage() {}

  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 CSIDriverOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:k8s.io.api.storage.v1beta1.CSIDriver)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * 
     * Standard object metadata.
     * metadata.Name indicates the name of the CSI driver that this object
     * refers to; it MUST be the same name returned by the CSI GetPluginName()
     * call for that driver.
     * The driver name must be 63 characters or less, beginning and ending with
     * an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and
     * alphanumerics between.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ boolean hasMetadata(); /** * * *
     * Standard object metadata.
     * metadata.Name indicates the name of the CSI driver that this object
     * refers to; it MUST be the same name returned by the CSI GetPluginName()
     * call for that driver.
     * The driver name must be 63 characters or less, beginning and ending with
     * an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and
     * alphanumerics between.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); /** * * *
     * Standard object metadata.
     * metadata.Name indicates the name of the CSI driver that this object
     * refers to; it MUST be the same name returned by the CSI GetPluginName()
     * call for that driver.
     * The driver name must be 63 characters or less, beginning and ending with
     * an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and
     * alphanumerics between.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * Specification of the CSI Driver.
     * 
* * optional .k8s.io.api.storage.v1beta1.CSIDriverSpec spec = 2; */ boolean hasSpec(); /** * * *
     * Specification of the CSI Driver.
     * 
* * optional .k8s.io.api.storage.v1beta1.CSIDriverSpec spec = 2; */ io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec getSpec(); /** * * *
     * Specification of the CSI Driver.
     * 
* * optional .k8s.io.api.storage.v1beta1.CSIDriverSpec spec = 2; */ io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpecOrBuilder getSpecOrBuilder(); } /** * * *
   * CSIDriver captures information about a Container Storage Interface (CSI)
   * volume driver deployed on the cluster.
   * CSI drivers do not need to create the CSIDriver object directly. Instead they may use the
   * cluster-driver-registrar sidecar container. When deployed with a CSI driver it automatically
   * creates a CSIDriver object representing the driver.
   * Kubernetes attach detach controller uses this object to determine whether attach is required.
   * Kubelet uses this object to determine whether pod information needs to be passed on mount.
   * CSIDriver objects are non-namespaced.
   * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.CSIDriver} */ public static final class CSIDriver extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.storage.v1beta1.CSIDriver) CSIDriverOrBuilder { private static final long serialVersionUID = 0L; // Use CSIDriver.newBuilder() to construct. private CSIDriver(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CSIDriver() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CSIDriver( 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.V1beta1Storage.CSIDriverSpec.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = spec_.toBuilder(); } spec_ = input.readMessage( io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(spec_); spec_ = 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.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSIDriver_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSIDriver_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.CSIDriver.class, io.kubernetes.client.proto.V1beta1Storage.CSIDriver.Builder.class); } private int bitField0_; public static final int METADATA_FIELD_NUMBER = 1; private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; /** * * *
     * Standard object metadata.
     * metadata.Name indicates the name of the CSI driver that this object
     * refers to; it MUST be the same name returned by the CSI GetPluginName()
     * call for that driver.
     * The driver name must be 63 characters or less, beginning and ending with
     * an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and
     * alphanumerics between.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Standard object metadata.
     * metadata.Name indicates the name of the CSI driver that this object
     * refers to; it MUST be the same name returned by the CSI GetPluginName()
     * call for that driver.
     * The driver name must be 63 characters or less, beginning and ending with
     * an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and
     * alphanumerics between.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * 
* * 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 metadata.
     * metadata.Name indicates the name of the CSI driver that this object
     * refers to; it MUST be the same name returned by the CSI GetPluginName()
     * call for that driver.
     * The driver name must be 63 characters or less, beginning and ending with
     * an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and
     * alphanumerics between.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } public static final int SPEC_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec spec_; /** * * *
     * Specification of the CSI Driver.
     * 
* * optional .k8s.io.api.storage.v1beta1.CSIDriverSpec spec = 2; */ public boolean hasSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Specification of the CSI Driver.
     * 
* * optional .k8s.io.api.storage.v1beta1.CSIDriverSpec spec = 2; */ public io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec getSpec() { return spec_ == null ? io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec.getDefaultInstance() : spec_; } /** * * *
     * Specification of the CSI Driver.
     * 
* * optional .k8s.io.api.storage.v1beta1.CSIDriverSpec spec = 2; */ public io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpecOrBuilder getSpecOrBuilder() { return spec_ == null ? io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec.getDefaultInstance() : spec_; } 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()); } 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()); } 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.V1beta1Storage.CSIDriver)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Storage.CSIDriver other = (io.kubernetes.client.proto.V1beta1Storage.CSIDriver) 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 && 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(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Storage.CSIDriver parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.CSIDriver 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.V1beta1Storage.CSIDriver parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.CSIDriver 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.V1beta1Storage.CSIDriver parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.CSIDriver parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Storage.CSIDriver parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.CSIDriver 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.V1beta1Storage.CSIDriver parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.CSIDriver 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.V1beta1Storage.CSIDriver parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.CSIDriver 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.V1beta1Storage.CSIDriver 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; } /** * * *
     * CSIDriver captures information about a Container Storage Interface (CSI)
     * volume driver deployed on the cluster.
     * CSI drivers do not need to create the CSIDriver object directly. Instead they may use the
     * cluster-driver-registrar sidecar container. When deployed with a CSI driver it automatically
     * creates a CSIDriver object representing the driver.
     * Kubernetes attach detach controller uses this object to determine whether attach is required.
     * Kubelet uses this object to determine whether pod information needs to be passed on mount.
     * CSIDriver objects are non-namespaced.
     * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.CSIDriver} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.storage.v1beta1.CSIDriver) io.kubernetes.client.proto.V1beta1Storage.CSIDriverOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSIDriver_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSIDriver_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.CSIDriver.class, io.kubernetes.client.proto.V1beta1Storage.CSIDriver.Builder.class); } // Construct using io.kubernetes.client.proto.V1beta1Storage.CSIDriver.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(); } } @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); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSIDriver_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.CSIDriver getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Storage.CSIDriver.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.CSIDriver build() { io.kubernetes.client.proto.V1beta1Storage.CSIDriver result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.CSIDriver buildPartial() { io.kubernetes.client.proto.V1beta1Storage.CSIDriver result = new io.kubernetes.client.proto.V1beta1Storage.CSIDriver(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(); } 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.V1beta1Storage.CSIDriver) { return mergeFrom((io.kubernetes.client.proto.V1beta1Storage.CSIDriver) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Storage.CSIDriver other) { if (other == io.kubernetes.client.proto.V1beta1Storage.CSIDriver.getDefaultInstance()) return this; if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } if (other.hasSpec()) { mergeSpec(other.getSpec()); } 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.V1beta1Storage.CSIDriver parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Storage.CSIDriver) 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 metadata.
       * metadata.Name indicates the name of the CSI driver that this object
       * refers to; it MUST be the same name returned by the CSI GetPluginName()
       * call for that driver.
       * The driver name must be 63 characters or less, beginning and ending with
       * an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and
       * alphanumerics between.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Standard object metadata.
       * metadata.Name indicates the name of the CSI driver that this object
       * refers to; it MUST be the same name returned by the CSI GetPluginName()
       * call for that driver.
       * The driver name must be 63 characters or less, beginning and ending with
       * an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and
       * alphanumerics between.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * 
* * 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 metadata.
       * metadata.Name indicates the name of the CSI driver that this object
       * refers to; it MUST be the same name returned by the CSI GetPluginName()
       * call for that driver.
       * The driver name must be 63 characters or less, beginning and ending with
       * an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and
       * alphanumerics between.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * 
* * 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 metadata.
       * metadata.Name indicates the name of the CSI driver that this object
       * refers to; it MUST be the same name returned by the CSI GetPluginName()
       * call for that driver.
       * The driver name must be 63 characters or less, beginning and ending with
       * an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and
       * alphanumerics between.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * 
* * 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 metadata.
       * metadata.Name indicates the name of the CSI driver that this object
       * refers to; it MUST be the same name returned by the CSI GetPluginName()
       * call for that driver.
       * The driver name must be 63 characters or less, beginning and ending with
       * an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and
       * alphanumerics between.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * 
* * 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 metadata.
       * metadata.Name indicates the name of the CSI driver that this object
       * refers to; it MUST be the same name returned by the CSI GetPluginName()
       * call for that driver.
       * The driver name must be 63 characters or less, beginning and ending with
       * an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and
       * alphanumerics between.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * 
* * 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 metadata.
       * metadata.Name indicates the name of the CSI driver that this object
       * refers to; it MUST be the same name returned by the CSI GetPluginName()
       * call for that driver.
       * The driver name must be 63 characters or less, beginning and ending with
       * an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and
       * alphanumerics between.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * 
* * 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 metadata.
       * metadata.Name indicates the name of the CSI driver that this object
       * refers to; it MUST be the same name returned by the CSI GetPluginName()
       * call for that driver.
       * The driver name must be 63 characters or less, beginning and ending with
       * an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and
       * alphanumerics between.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * 
* * 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 metadata.
       * metadata.Name indicates the name of the CSI driver that this object
       * refers to; it MUST be the same name returned by the CSI GetPluginName()
       * call for that driver.
       * The driver name must be 63 characters or less, beginning and ending with
       * an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and
       * alphanumerics between.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * 
* * 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.V1beta1Storage.CSIDriverSpec spec_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec, io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec.Builder, io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpecOrBuilder> specBuilder_; /** * * *
       * Specification of the CSI Driver.
       * 
* * optional .k8s.io.api.storage.v1beta1.CSIDriverSpec spec = 2; */ public boolean hasSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Specification of the CSI Driver.
       * 
* * optional .k8s.io.api.storage.v1beta1.CSIDriverSpec spec = 2; */ public io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec getSpec() { if (specBuilder_ == null) { return spec_ == null ? io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec.getDefaultInstance() : spec_; } else { return specBuilder_.getMessage(); } } /** * * *
       * Specification of the CSI Driver.
       * 
* * optional .k8s.io.api.storage.v1beta1.CSIDriverSpec spec = 2; */ public Builder setSpec(io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec value) { if (specBuilder_ == null) { if (value == null) { throw new NullPointerException(); } spec_ = value; onChanged(); } else { specBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Specification of the CSI Driver.
       * 
* * optional .k8s.io.api.storage.v1beta1.CSIDriverSpec spec = 2; */ public Builder setSpec( io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec.Builder builderForValue) { if (specBuilder_ == null) { spec_ = builderForValue.build(); onChanged(); } else { specBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Specification of the CSI Driver.
       * 
* * optional .k8s.io.api.storage.v1beta1.CSIDriverSpec spec = 2; */ public Builder mergeSpec(io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec value) { if (specBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && spec_ != null && spec_ != io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec.getDefaultInstance()) { spec_ = io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec.newBuilder(spec_) .mergeFrom(value) .buildPartial(); } else { spec_ = value; } onChanged(); } else { specBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Specification of the CSI Driver.
       * 
* * optional .k8s.io.api.storage.v1beta1.CSIDriverSpec spec = 2; */ public Builder clearSpec() { if (specBuilder_ == null) { spec_ = null; onChanged(); } else { specBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * Specification of the CSI Driver.
       * 
* * optional .k8s.io.api.storage.v1beta1.CSIDriverSpec spec = 2; */ public io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec.Builder getSpecBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSpecFieldBuilder().getBuilder(); } /** * * *
       * Specification of the CSI Driver.
       * 
* * optional .k8s.io.api.storage.v1beta1.CSIDriverSpec spec = 2; */ public io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpecOrBuilder getSpecOrBuilder() { if (specBuilder_ != null) { return specBuilder_.getMessageOrBuilder(); } else { return spec_ == null ? io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec.getDefaultInstance() : spec_; } } /** * * *
       * Specification of the CSI Driver.
       * 
* * optional .k8s.io.api.storage.v1beta1.CSIDriverSpec spec = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec, io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec.Builder, io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpecOrBuilder> getSpecFieldBuilder() { if (specBuilder_ == null) { specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec, io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec.Builder, io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpecOrBuilder>( getSpec(), getParentForChildren(), isClean()); spec_ = null; } return specBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.storage.v1beta1.CSIDriver) } // @@protoc_insertion_point(class_scope:k8s.io.api.storage.v1beta1.CSIDriver) private static final io.kubernetes.client.proto.V1beta1Storage.CSIDriver DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Storage.CSIDriver(); } public static io.kubernetes.client.proto.V1beta1Storage.CSIDriver getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CSIDriver parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CSIDriver(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.V1beta1Storage.CSIDriver getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CSIDriverListOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.storage.v1beta1.CSIDriverList) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard list 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 list 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 list 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 is the list of CSIDriver
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSIDriver items = 2; */ java.util.List getItemsList(); /** * * *
     * items is the list of CSIDriver
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSIDriver items = 2; */ io.kubernetes.client.proto.V1beta1Storage.CSIDriver getItems(int index); /** * * *
     * items is the list of CSIDriver
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSIDriver items = 2; */ int getItemsCount(); /** * * *
     * items is the list of CSIDriver
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSIDriver items = 2; */ java.util.List getItemsOrBuilderList(); /** * * *
     * items is the list of CSIDriver
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSIDriver items = 2; */ io.kubernetes.client.proto.V1beta1Storage.CSIDriverOrBuilder getItemsOrBuilder(int index); } /** * * *
   * CSIDriverList is a collection of CSIDriver objects.
   * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.CSIDriverList} */ public static final class CSIDriverList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.storage.v1beta1.CSIDriverList) CSIDriverListOrBuilder { private static final long serialVersionUID = 0L; // Use CSIDriverList.newBuilder() to construct. private CSIDriverList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CSIDriverList() { items_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CSIDriverList( 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.V1beta1Storage.CSIDriver>(); mutable_bitField0_ |= 0x00000002; } items_.add( input.readMessage( io.kubernetes.client.proto.V1beta1Storage.CSIDriver.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.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSIDriverList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSIDriverList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.CSIDriverList.class, io.kubernetes.client.proto.V1beta1Storage.CSIDriverList.Builder.class); } private int bitField0_; public static final int METADATA_FIELD_NUMBER = 1; private io.kubernetes.client.proto.Meta.ListMeta metadata_; /** * * *
     * Standard list 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 list 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 list 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 is the list of CSIDriver
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSIDriver items = 2; */ public java.util.List getItemsList() { return items_; } /** * * *
     * items is the list of CSIDriver
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSIDriver items = 2; */ public java.util.List getItemsOrBuilderList() { return items_; } /** * * *
     * items is the list of CSIDriver
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSIDriver items = 2; */ public int getItemsCount() { return items_.size(); } /** * * *
     * items is the list of CSIDriver
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSIDriver items = 2; */ public io.kubernetes.client.proto.V1beta1Storage.CSIDriver getItems(int index) { return items_.get(index); } /** * * *
     * items is the list of CSIDriver
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSIDriver items = 2; */ public io.kubernetes.client.proto.V1beta1Storage.CSIDriverOrBuilder 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.V1beta1Storage.CSIDriverList)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Storage.CSIDriverList other = (io.kubernetes.client.proto.V1beta1Storage.CSIDriverList) 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.V1beta1Storage.CSIDriverList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.CSIDriverList 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.V1beta1Storage.CSIDriverList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.CSIDriverList 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.V1beta1Storage.CSIDriverList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.CSIDriverList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Storage.CSIDriverList parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.CSIDriverList 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.V1beta1Storage.CSIDriverList parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.CSIDriverList 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.V1beta1Storage.CSIDriverList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.CSIDriverList 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.V1beta1Storage.CSIDriverList 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; } /** * * *
     * CSIDriverList is a collection of CSIDriver objects.
     * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.CSIDriverList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.storage.v1beta1.CSIDriverList) io.kubernetes.client.proto.V1beta1Storage.CSIDriverListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSIDriverList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSIDriverList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.CSIDriverList.class, io.kubernetes.client.proto.V1beta1Storage.CSIDriverList.Builder.class); } // Construct using io.kubernetes.client.proto.V1beta1Storage.CSIDriverList.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.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSIDriverList_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.CSIDriverList getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Storage.CSIDriverList.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.CSIDriverList build() { io.kubernetes.client.proto.V1beta1Storage.CSIDriverList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.CSIDriverList buildPartial() { io.kubernetes.client.proto.V1beta1Storage.CSIDriverList result = new io.kubernetes.client.proto.V1beta1Storage.CSIDriverList(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.V1beta1Storage.CSIDriverList) { return mergeFrom((io.kubernetes.client.proto.V1beta1Storage.CSIDriverList) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Storage.CSIDriverList other) { if (other == io.kubernetes.client.proto.V1beta1Storage.CSIDriverList.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.V1beta1Storage.CSIDriverList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Storage.CSIDriverList) 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 list 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 list 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 list 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 list 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 list 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 list 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 list 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 list 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 list 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 items_ = java.util.Collections.emptyList(); private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { items_ = new java.util.ArrayList(items_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.CSIDriver, io.kubernetes.client.proto.V1beta1Storage.CSIDriver.Builder, io.kubernetes.client.proto.V1beta1Storage.CSIDriverOrBuilder> itemsBuilder_; /** * * *
       * items is the list of CSIDriver
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIDriver items = 2; */ public java.util.List getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { return itemsBuilder_.getMessageList(); } } /** * * *
       * items is the list of CSIDriver
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIDriver items = 2; */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** * * *
       * items is the list of CSIDriver
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIDriver items = 2; */ public io.kubernetes.client.proto.V1beta1Storage.CSIDriver getItems(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** * * *
       * items is the list of CSIDriver
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIDriver items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.V1beta1Storage.CSIDriver value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.set(index, value); onChanged(); } else { itemsBuilder_.setMessage(index, value); } return this; } /** * * *
       * items is the list of CSIDriver
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIDriver items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.V1beta1Storage.CSIDriver.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * items is the list of CSIDriver
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIDriver items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1beta1Storage.CSIDriver value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(value); onChanged(); } else { itemsBuilder_.addMessage(value); } return this; } /** * * *
       * items is the list of CSIDriver
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIDriver items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.V1beta1Storage.CSIDriver value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(index, value); onChanged(); } else { itemsBuilder_.addMessage(index, value); } return this; } /** * * *
       * items is the list of CSIDriver
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIDriver items = 2; */ public Builder addItems( io.kubernetes.client.proto.V1beta1Storage.CSIDriver.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * items is the list of CSIDriver
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIDriver items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.V1beta1Storage.CSIDriver.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * items is the list of CSIDriver
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIDriver items = 2; */ public Builder addAllItems( java.lang.Iterable values) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); onChanged(); } else { itemsBuilder_.addAllMessages(values); } return this; } /** * * *
       * items is the list of CSIDriver
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIDriver items = 2; */ public Builder clearItems() { if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { itemsBuilder_.clear(); } return this; } /** * * *
       * items is the list of CSIDriver
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIDriver items = 2; */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.remove(index); onChanged(); } else { itemsBuilder_.remove(index); } return this; } /** * * *
       * items is the list of CSIDriver
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIDriver items = 2; */ public io.kubernetes.client.proto.V1beta1Storage.CSIDriver.Builder getItemsBuilder( int index) { return getItemsFieldBuilder().getBuilder(index); } /** * * *
       * items is the list of CSIDriver
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIDriver items = 2; */ public io.kubernetes.client.proto.V1beta1Storage.CSIDriverOrBuilder getItemsOrBuilder( int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * items is the list of CSIDriver
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIDriver items = 2; */ public java.util.List getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(items_); } } /** * * *
       * items is the list of CSIDriver
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIDriver items = 2; */ public io.kubernetes.client.proto.V1beta1Storage.CSIDriver.Builder addItemsBuilder() { return getItemsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1beta1Storage.CSIDriver.getDefaultInstance()); } /** * * *
       * items is the list of CSIDriver
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIDriver items = 2; */ public io.kubernetes.client.proto.V1beta1Storage.CSIDriver.Builder addItemsBuilder( int index) { return getItemsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1beta1Storage.CSIDriver.getDefaultInstance()); } /** * * *
       * items is the list of CSIDriver
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIDriver items = 2; */ public java.util.List getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.CSIDriver, io.kubernetes.client.proto.V1beta1Storage.CSIDriver.Builder, io.kubernetes.client.proto.V1beta1Storage.CSIDriverOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.CSIDriver, io.kubernetes.client.proto.V1beta1Storage.CSIDriver.Builder, io.kubernetes.client.proto.V1beta1Storage.CSIDriverOrBuilder>( 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.api.storage.v1beta1.CSIDriverList) } // @@protoc_insertion_point(class_scope:k8s.io.api.storage.v1beta1.CSIDriverList) private static final io.kubernetes.client.proto.V1beta1Storage.CSIDriverList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Storage.CSIDriverList(); } public static io.kubernetes.client.proto.V1beta1Storage.CSIDriverList getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CSIDriverList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CSIDriverList(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.V1beta1Storage.CSIDriverList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CSIDriverSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.storage.v1beta1.CSIDriverSpec) com.google.protobuf.MessageOrBuilder { /** * * *
     * attachRequired indicates this CSI volume driver requires an attach
     * operation (because it implements the CSI ControllerPublishVolume()
     * method), and that the Kubernetes attach detach controller should call
     * the attach volume interface which checks the volumeattachment status
     * and waits until the volume is attached before proceeding to mounting.
     * The CSI external-attacher coordinates with CSI volume driver and updates
     * the volumeattachment status when the attach operation is complete.
     * If the CSIDriverRegistry feature gate is enabled and the value is
     * specified to false, the attach operation will be skipped.
     * Otherwise the attach operation will be called.
     * This field is immutable.
     * +optional
     * 
* * optional bool attachRequired = 1; */ boolean hasAttachRequired(); /** * * *
     * attachRequired indicates this CSI volume driver requires an attach
     * operation (because it implements the CSI ControllerPublishVolume()
     * method), and that the Kubernetes attach detach controller should call
     * the attach volume interface which checks the volumeattachment status
     * and waits until the volume is attached before proceeding to mounting.
     * The CSI external-attacher coordinates with CSI volume driver and updates
     * the volumeattachment status when the attach operation is complete.
     * If the CSIDriverRegistry feature gate is enabled and the value is
     * specified to false, the attach operation will be skipped.
     * Otherwise the attach operation will be called.
     * This field is immutable.
     * +optional
     * 
* * optional bool attachRequired = 1; */ boolean getAttachRequired(); /** * * *
     * If set to true, podInfoOnMount indicates this CSI volume driver
     * requires additional pod information (like podName, podUID, etc.) during
     * mount operations.
     * If set to false, pod information will not be passed on mount.
     * Default is false.
     * The CSI driver specifies podInfoOnMount as part of driver deployment.
     * If true, Kubelet will pass pod information as VolumeContext in the CSI
     * NodePublishVolume() calls.
     * The CSI driver is responsible for parsing and validating the information
     * passed in as VolumeContext.
     * The following VolumeConext will be passed if podInfoOnMount is set to true.
     * This list might grow, but the prefix will be used.
     * "csi.storage.k8s.io/pod.name": pod.Name
     * "csi.storage.k8s.io/pod.namespace": pod.Namespace
     * "csi.storage.k8s.io/pod.uid": string(pod.UID)
     * "csi.storage.k8s.io/ephemeral": "true" if the volume is an ephemeral inline volume
     *                                 defined by a CSIVolumeSource, otherwise "false"
     * "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only
     * required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode.
     * Other drivers can leave pod info disabled and/or ignore this field.
     * As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when
     * deployed on such a cluster and the deployment determines which mode that is, for example
     * via a command line parameter of the driver.
     * This field is immutable.
     * +optional
     * 
* * optional bool podInfoOnMount = 2; */ boolean hasPodInfoOnMount(); /** * * *
     * If set to true, podInfoOnMount indicates this CSI volume driver
     * requires additional pod information (like podName, podUID, etc.) during
     * mount operations.
     * If set to false, pod information will not be passed on mount.
     * Default is false.
     * The CSI driver specifies podInfoOnMount as part of driver deployment.
     * If true, Kubelet will pass pod information as VolumeContext in the CSI
     * NodePublishVolume() calls.
     * The CSI driver is responsible for parsing and validating the information
     * passed in as VolumeContext.
     * The following VolumeConext will be passed if podInfoOnMount is set to true.
     * This list might grow, but the prefix will be used.
     * "csi.storage.k8s.io/pod.name": pod.Name
     * "csi.storage.k8s.io/pod.namespace": pod.Namespace
     * "csi.storage.k8s.io/pod.uid": string(pod.UID)
     * "csi.storage.k8s.io/ephemeral": "true" if the volume is an ephemeral inline volume
     *                                 defined by a CSIVolumeSource, otherwise "false"
     * "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only
     * required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode.
     * Other drivers can leave pod info disabled and/or ignore this field.
     * As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when
     * deployed on such a cluster and the deployment determines which mode that is, for example
     * via a command line parameter of the driver.
     * This field is immutable.
     * +optional
     * 
* * optional bool podInfoOnMount = 2; */ boolean getPodInfoOnMount(); /** * * *
     * VolumeLifecycleModes defines what kind of volumes this CSI volume driver supports.
     * The default if the list is empty is "Persistent", which is the usage
     * defined by the CSI specification and implemented in Kubernetes via the usual
     * PV/PVC mechanism.
     * The other mode is "Ephemeral". In this mode, volumes are defined inline
     * inside the pod spec with CSIVolumeSource and their lifecycle is tied to
     * the lifecycle of that pod. A driver has to be aware of this
     * because it is only going to get a NodePublishVolume call for such a volume.
     * For more information about implementing this mode, see
     * https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html
     * A driver can support one or more of these modes and
     * more modes may be added in the future.
     * This field is immutable.
     * +optional
     * 
* * repeated string volumeLifecycleModes = 3; */ java.util.List getVolumeLifecycleModesList(); /** * * *
     * VolumeLifecycleModes defines what kind of volumes this CSI volume driver supports.
     * The default if the list is empty is "Persistent", which is the usage
     * defined by the CSI specification and implemented in Kubernetes via the usual
     * PV/PVC mechanism.
     * The other mode is "Ephemeral". In this mode, volumes are defined inline
     * inside the pod spec with CSIVolumeSource and their lifecycle is tied to
     * the lifecycle of that pod. A driver has to be aware of this
     * because it is only going to get a NodePublishVolume call for such a volume.
     * For more information about implementing this mode, see
     * https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html
     * A driver can support one or more of these modes and
     * more modes may be added in the future.
     * This field is immutable.
     * +optional
     * 
* * repeated string volumeLifecycleModes = 3; */ int getVolumeLifecycleModesCount(); /** * * *
     * VolumeLifecycleModes defines what kind of volumes this CSI volume driver supports.
     * The default if the list is empty is "Persistent", which is the usage
     * defined by the CSI specification and implemented in Kubernetes via the usual
     * PV/PVC mechanism.
     * The other mode is "Ephemeral". In this mode, volumes are defined inline
     * inside the pod spec with CSIVolumeSource and their lifecycle is tied to
     * the lifecycle of that pod. A driver has to be aware of this
     * because it is only going to get a NodePublishVolume call for such a volume.
     * For more information about implementing this mode, see
     * https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html
     * A driver can support one or more of these modes and
     * more modes may be added in the future.
     * This field is immutable.
     * +optional
     * 
* * repeated string volumeLifecycleModes = 3; */ java.lang.String getVolumeLifecycleModes(int index); /** * * *
     * VolumeLifecycleModes defines what kind of volumes this CSI volume driver supports.
     * The default if the list is empty is "Persistent", which is the usage
     * defined by the CSI specification and implemented in Kubernetes via the usual
     * PV/PVC mechanism.
     * The other mode is "Ephemeral". In this mode, volumes are defined inline
     * inside the pod spec with CSIVolumeSource and their lifecycle is tied to
     * the lifecycle of that pod. A driver has to be aware of this
     * because it is only going to get a NodePublishVolume call for such a volume.
     * For more information about implementing this mode, see
     * https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html
     * A driver can support one or more of these modes and
     * more modes may be added in the future.
     * This field is immutable.
     * +optional
     * 
* * repeated string volumeLifecycleModes = 3; */ com.google.protobuf.ByteString getVolumeLifecycleModesBytes(int index); /** * * *
     * If set to true, storageCapacity indicates that the CSI
     * volume driver wants pod scheduling to consider the storage
     * capacity that the driver deployment will report by creating
     * CSIStorageCapacity objects with capacity information.
     * The check can be enabled immediately when deploying a driver.
     * In that case, provisioning new volumes with late binding
     * will pause until the driver deployment has published
     * some suitable CSIStorageCapacity object.
     * Alternatively, the driver can be deployed with the field
     * unset or false and it can be flipped later when storage
     * capacity information has been published.
     * This field was immutable in Kubernetes <= 1.22 and now is mutable.
     * This is a beta field and only available when the CSIStorageCapacity
     * feature is enabled. The default is false.
     * +optional
     * +featureGate=CSIStorageCapacity
     * 
* * optional bool storageCapacity = 4; */ boolean hasStorageCapacity(); /** * * *
     * If set to true, storageCapacity indicates that the CSI
     * volume driver wants pod scheduling to consider the storage
     * capacity that the driver deployment will report by creating
     * CSIStorageCapacity objects with capacity information.
     * The check can be enabled immediately when deploying a driver.
     * In that case, provisioning new volumes with late binding
     * will pause until the driver deployment has published
     * some suitable CSIStorageCapacity object.
     * Alternatively, the driver can be deployed with the field
     * unset or false and it can be flipped later when storage
     * capacity information has been published.
     * This field was immutable in Kubernetes <= 1.22 and now is mutable.
     * This is a beta field and only available when the CSIStorageCapacity
     * feature is enabled. The default is false.
     * +optional
     * +featureGate=CSIStorageCapacity
     * 
* * optional bool storageCapacity = 4; */ boolean getStorageCapacity(); /** * * *
     * Defines if the underlying volume supports changing ownership and
     * permission of the volume before being mounted.
     * Refer to the specific FSGroupPolicy values for additional details.
     * This field is immutable.
     * Defaults to ReadWriteOnceWithFSType, which will examine each volume
     * to determine if Kubernetes should modify ownership and permissions of the volume.
     * With the default policy the defined fsGroup will only be applied
     * if a fstype is defined and the volume's access mode contains ReadWriteOnce.
     * +optional
     * 
* * optional string fsGroupPolicy = 5; */ boolean hasFsGroupPolicy(); /** * * *
     * Defines if the underlying volume supports changing ownership and
     * permission of the volume before being mounted.
     * Refer to the specific FSGroupPolicy values for additional details.
     * This field is immutable.
     * Defaults to ReadWriteOnceWithFSType, which will examine each volume
     * to determine if Kubernetes should modify ownership and permissions of the volume.
     * With the default policy the defined fsGroup will only be applied
     * if a fstype is defined and the volume's access mode contains ReadWriteOnce.
     * +optional
     * 
* * optional string fsGroupPolicy = 5; */ java.lang.String getFsGroupPolicy(); /** * * *
     * Defines if the underlying volume supports changing ownership and
     * permission of the volume before being mounted.
     * Refer to the specific FSGroupPolicy values for additional details.
     * This field is immutable.
     * Defaults to ReadWriteOnceWithFSType, which will examine each volume
     * to determine if Kubernetes should modify ownership and permissions of the volume.
     * With the default policy the defined fsGroup will only be applied
     * if a fstype is defined and the volume's access mode contains ReadWriteOnce.
     * +optional
     * 
* * optional string fsGroupPolicy = 5; */ com.google.protobuf.ByteString getFsGroupPolicyBytes(); /** * * *
     * TokenRequests indicates the CSI driver needs pods' service account
     * tokens it is mounting volume for to do necessary authentication. Kubelet
     * will pass the tokens in VolumeContext in the CSI NodePublishVolume calls.
     * The CSI driver should parse and validate the following VolumeContext:
     * "csi.storage.k8s.io/serviceAccount.tokens": {
     *   "<audience>": {
     *     "token": <token>,
     *     "expirationTimestamp": <expiration timestamp in RFC3339>,
     *   },
     *   ...
     * }
     * Note: Audience in each TokenRequest should be different and at
     * most one token is empty string. To receive a new token after expiry,
     * RequiresRepublish can be used to trigger NodePublishVolume periodically.
     * +optional
     * +listType=atomic
     * 
* * repeated .k8s.io.api.storage.v1beta1.TokenRequest tokenRequests = 6; */ java.util.List getTokenRequestsList(); /** * * *
     * TokenRequests indicates the CSI driver needs pods' service account
     * tokens it is mounting volume for to do necessary authentication. Kubelet
     * will pass the tokens in VolumeContext in the CSI NodePublishVolume calls.
     * The CSI driver should parse and validate the following VolumeContext:
     * "csi.storage.k8s.io/serviceAccount.tokens": {
     *   "<audience>": {
     *     "token": <token>,
     *     "expirationTimestamp": <expiration timestamp in RFC3339>,
     *   },
     *   ...
     * }
     * Note: Audience in each TokenRequest should be different and at
     * most one token is empty string. To receive a new token after expiry,
     * RequiresRepublish can be used to trigger NodePublishVolume periodically.
     * +optional
     * +listType=atomic
     * 
* * repeated .k8s.io.api.storage.v1beta1.TokenRequest tokenRequests = 6; */ io.kubernetes.client.proto.V1beta1Storage.TokenRequest getTokenRequests(int index); /** * * *
     * TokenRequests indicates the CSI driver needs pods' service account
     * tokens it is mounting volume for to do necessary authentication. Kubelet
     * will pass the tokens in VolumeContext in the CSI NodePublishVolume calls.
     * The CSI driver should parse and validate the following VolumeContext:
     * "csi.storage.k8s.io/serviceAccount.tokens": {
     *   "<audience>": {
     *     "token": <token>,
     *     "expirationTimestamp": <expiration timestamp in RFC3339>,
     *   },
     *   ...
     * }
     * Note: Audience in each TokenRequest should be different and at
     * most one token is empty string. To receive a new token after expiry,
     * RequiresRepublish can be used to trigger NodePublishVolume periodically.
     * +optional
     * +listType=atomic
     * 
* * repeated .k8s.io.api.storage.v1beta1.TokenRequest tokenRequests = 6; */ int getTokenRequestsCount(); /** * * *
     * TokenRequests indicates the CSI driver needs pods' service account
     * tokens it is mounting volume for to do necessary authentication. Kubelet
     * will pass the tokens in VolumeContext in the CSI NodePublishVolume calls.
     * The CSI driver should parse and validate the following VolumeContext:
     * "csi.storage.k8s.io/serviceAccount.tokens": {
     *   "<audience>": {
     *     "token": <token>,
     *     "expirationTimestamp": <expiration timestamp in RFC3339>,
     *   },
     *   ...
     * }
     * Note: Audience in each TokenRequest should be different and at
     * most one token is empty string. To receive a new token after expiry,
     * RequiresRepublish can be used to trigger NodePublishVolume periodically.
     * +optional
     * +listType=atomic
     * 
* * repeated .k8s.io.api.storage.v1beta1.TokenRequest tokenRequests = 6; */ java.util.List getTokenRequestsOrBuilderList(); /** * * *
     * TokenRequests indicates the CSI driver needs pods' service account
     * tokens it is mounting volume for to do necessary authentication. Kubelet
     * will pass the tokens in VolumeContext in the CSI NodePublishVolume calls.
     * The CSI driver should parse and validate the following VolumeContext:
     * "csi.storage.k8s.io/serviceAccount.tokens": {
     *   "<audience>": {
     *     "token": <token>,
     *     "expirationTimestamp": <expiration timestamp in RFC3339>,
     *   },
     *   ...
     * }
     * Note: Audience in each TokenRequest should be different and at
     * most one token is empty string. To receive a new token after expiry,
     * RequiresRepublish can be used to trigger NodePublishVolume periodically.
     * +optional
     * +listType=atomic
     * 
* * repeated .k8s.io.api.storage.v1beta1.TokenRequest tokenRequests = 6; */ io.kubernetes.client.proto.V1beta1Storage.TokenRequestOrBuilder getTokenRequestsOrBuilder( int index); /** * * *
     * RequiresRepublish indicates the CSI driver wants `NodePublishVolume`
     * being periodically called to reflect any possible change in the mounted
     * volume. This field defaults to false.
     * Note: After a successful initial NodePublishVolume call, subsequent calls
     * to NodePublishVolume should only update the contents of the volume. New
     * mount points will not be seen by a running container.
     * +optional
     * 
* * optional bool requiresRepublish = 7; */ boolean hasRequiresRepublish(); /** * * *
     * RequiresRepublish indicates the CSI driver wants `NodePublishVolume`
     * being periodically called to reflect any possible change in the mounted
     * volume. This field defaults to false.
     * Note: After a successful initial NodePublishVolume call, subsequent calls
     * to NodePublishVolume should only update the contents of the volume. New
     * mount points will not be seen by a running container.
     * +optional
     * 
* * optional bool requiresRepublish = 7; */ boolean getRequiresRepublish(); } /** * * *
   * CSIDriverSpec is the specification of a CSIDriver.
   * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.CSIDriverSpec} */ public static final class CSIDriverSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.storage.v1beta1.CSIDriverSpec) CSIDriverSpecOrBuilder { private static final long serialVersionUID = 0L; // Use CSIDriverSpec.newBuilder() to construct. private CSIDriverSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CSIDriverSpec() { attachRequired_ = false; podInfoOnMount_ = false; volumeLifecycleModes_ = com.google.protobuf.LazyStringArrayList.EMPTY; storageCapacity_ = false; fsGroupPolicy_ = ""; tokenRequests_ = java.util.Collections.emptyList(); requiresRepublish_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CSIDriverSpec( 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; attachRequired_ = input.readBool(); break; } case 16: { bitField0_ |= 0x00000002; podInfoOnMount_ = input.readBool(); break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { volumeLifecycleModes_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000004; } volumeLifecycleModes_.add(bs); break; } case 32: { bitField0_ |= 0x00000004; storageCapacity_ = input.readBool(); break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; fsGroupPolicy_ = bs; break; } case 50: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { tokenRequests_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Storage.TokenRequest>(); mutable_bitField0_ |= 0x00000020; } tokenRequests_.add( input.readMessage( io.kubernetes.client.proto.V1beta1Storage.TokenRequest.PARSER, extensionRegistry)); break; } case 56: { bitField0_ |= 0x00000010; requiresRepublish_ = 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_ & 0x00000004) == 0x00000004)) { volumeLifecycleModes_ = volumeLifecycleModes_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { tokenRequests_ = java.util.Collections.unmodifiableList(tokenRequests_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSIDriverSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSIDriverSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec.class, io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec.Builder.class); } private int bitField0_; public static final int ATTACHREQUIRED_FIELD_NUMBER = 1; private boolean attachRequired_; /** * * *
     * attachRequired indicates this CSI volume driver requires an attach
     * operation (because it implements the CSI ControllerPublishVolume()
     * method), and that the Kubernetes attach detach controller should call
     * the attach volume interface which checks the volumeattachment status
     * and waits until the volume is attached before proceeding to mounting.
     * The CSI external-attacher coordinates with CSI volume driver and updates
     * the volumeattachment status when the attach operation is complete.
     * If the CSIDriverRegistry feature gate is enabled and the value is
     * specified to false, the attach operation will be skipped.
     * Otherwise the attach operation will be called.
     * This field is immutable.
     * +optional
     * 
* * optional bool attachRequired = 1; */ public boolean hasAttachRequired() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * attachRequired indicates this CSI volume driver requires an attach
     * operation (because it implements the CSI ControllerPublishVolume()
     * method), and that the Kubernetes attach detach controller should call
     * the attach volume interface which checks the volumeattachment status
     * and waits until the volume is attached before proceeding to mounting.
     * The CSI external-attacher coordinates with CSI volume driver and updates
     * the volumeattachment status when the attach operation is complete.
     * If the CSIDriverRegistry feature gate is enabled and the value is
     * specified to false, the attach operation will be skipped.
     * Otherwise the attach operation will be called.
     * This field is immutable.
     * +optional
     * 
* * optional bool attachRequired = 1; */ public boolean getAttachRequired() { return attachRequired_; } public static final int PODINFOONMOUNT_FIELD_NUMBER = 2; private boolean podInfoOnMount_; /** * * *
     * If set to true, podInfoOnMount indicates this CSI volume driver
     * requires additional pod information (like podName, podUID, etc.) during
     * mount operations.
     * If set to false, pod information will not be passed on mount.
     * Default is false.
     * The CSI driver specifies podInfoOnMount as part of driver deployment.
     * If true, Kubelet will pass pod information as VolumeContext in the CSI
     * NodePublishVolume() calls.
     * The CSI driver is responsible for parsing and validating the information
     * passed in as VolumeContext.
     * The following VolumeConext will be passed if podInfoOnMount is set to true.
     * This list might grow, but the prefix will be used.
     * "csi.storage.k8s.io/pod.name": pod.Name
     * "csi.storage.k8s.io/pod.namespace": pod.Namespace
     * "csi.storage.k8s.io/pod.uid": string(pod.UID)
     * "csi.storage.k8s.io/ephemeral": "true" if the volume is an ephemeral inline volume
     *                                 defined by a CSIVolumeSource, otherwise "false"
     * "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only
     * required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode.
     * Other drivers can leave pod info disabled and/or ignore this field.
     * As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when
     * deployed on such a cluster and the deployment determines which mode that is, for example
     * via a command line parameter of the driver.
     * This field is immutable.
     * +optional
     * 
* * optional bool podInfoOnMount = 2; */ public boolean hasPodInfoOnMount() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * If set to true, podInfoOnMount indicates this CSI volume driver
     * requires additional pod information (like podName, podUID, etc.) during
     * mount operations.
     * If set to false, pod information will not be passed on mount.
     * Default is false.
     * The CSI driver specifies podInfoOnMount as part of driver deployment.
     * If true, Kubelet will pass pod information as VolumeContext in the CSI
     * NodePublishVolume() calls.
     * The CSI driver is responsible for parsing and validating the information
     * passed in as VolumeContext.
     * The following VolumeConext will be passed if podInfoOnMount is set to true.
     * This list might grow, but the prefix will be used.
     * "csi.storage.k8s.io/pod.name": pod.Name
     * "csi.storage.k8s.io/pod.namespace": pod.Namespace
     * "csi.storage.k8s.io/pod.uid": string(pod.UID)
     * "csi.storage.k8s.io/ephemeral": "true" if the volume is an ephemeral inline volume
     *                                 defined by a CSIVolumeSource, otherwise "false"
     * "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only
     * required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode.
     * Other drivers can leave pod info disabled and/or ignore this field.
     * As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when
     * deployed on such a cluster and the deployment determines which mode that is, for example
     * via a command line parameter of the driver.
     * This field is immutable.
     * +optional
     * 
* * optional bool podInfoOnMount = 2; */ public boolean getPodInfoOnMount() { return podInfoOnMount_; } public static final int VOLUMELIFECYCLEMODES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList volumeLifecycleModes_; /** * * *
     * VolumeLifecycleModes defines what kind of volumes this CSI volume driver supports.
     * The default if the list is empty is "Persistent", which is the usage
     * defined by the CSI specification and implemented in Kubernetes via the usual
     * PV/PVC mechanism.
     * The other mode is "Ephemeral". In this mode, volumes are defined inline
     * inside the pod spec with CSIVolumeSource and their lifecycle is tied to
     * the lifecycle of that pod. A driver has to be aware of this
     * because it is only going to get a NodePublishVolume call for such a volume.
     * For more information about implementing this mode, see
     * https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html
     * A driver can support one or more of these modes and
     * more modes may be added in the future.
     * This field is immutable.
     * +optional
     * 
* * repeated string volumeLifecycleModes = 3; */ public com.google.protobuf.ProtocolStringList getVolumeLifecycleModesList() { return volumeLifecycleModes_; } /** * * *
     * VolumeLifecycleModes defines what kind of volumes this CSI volume driver supports.
     * The default if the list is empty is "Persistent", which is the usage
     * defined by the CSI specification and implemented in Kubernetes via the usual
     * PV/PVC mechanism.
     * The other mode is "Ephemeral". In this mode, volumes are defined inline
     * inside the pod spec with CSIVolumeSource and their lifecycle is tied to
     * the lifecycle of that pod. A driver has to be aware of this
     * because it is only going to get a NodePublishVolume call for such a volume.
     * For more information about implementing this mode, see
     * https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html
     * A driver can support one or more of these modes and
     * more modes may be added in the future.
     * This field is immutable.
     * +optional
     * 
* * repeated string volumeLifecycleModes = 3; */ public int getVolumeLifecycleModesCount() { return volumeLifecycleModes_.size(); } /** * * *
     * VolumeLifecycleModes defines what kind of volumes this CSI volume driver supports.
     * The default if the list is empty is "Persistent", which is the usage
     * defined by the CSI specification and implemented in Kubernetes via the usual
     * PV/PVC mechanism.
     * The other mode is "Ephemeral". In this mode, volumes are defined inline
     * inside the pod spec with CSIVolumeSource and their lifecycle is tied to
     * the lifecycle of that pod. A driver has to be aware of this
     * because it is only going to get a NodePublishVolume call for such a volume.
     * For more information about implementing this mode, see
     * https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html
     * A driver can support one or more of these modes and
     * more modes may be added in the future.
     * This field is immutable.
     * +optional
     * 
* * repeated string volumeLifecycleModes = 3; */ public java.lang.String getVolumeLifecycleModes(int index) { return volumeLifecycleModes_.get(index); } /** * * *
     * VolumeLifecycleModes defines what kind of volumes this CSI volume driver supports.
     * The default if the list is empty is "Persistent", which is the usage
     * defined by the CSI specification and implemented in Kubernetes via the usual
     * PV/PVC mechanism.
     * The other mode is "Ephemeral". In this mode, volumes are defined inline
     * inside the pod spec with CSIVolumeSource and their lifecycle is tied to
     * the lifecycle of that pod. A driver has to be aware of this
     * because it is only going to get a NodePublishVolume call for such a volume.
     * For more information about implementing this mode, see
     * https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html
     * A driver can support one or more of these modes and
     * more modes may be added in the future.
     * This field is immutable.
     * +optional
     * 
* * repeated string volumeLifecycleModes = 3; */ public com.google.protobuf.ByteString getVolumeLifecycleModesBytes(int index) { return volumeLifecycleModes_.getByteString(index); } public static final int STORAGECAPACITY_FIELD_NUMBER = 4; private boolean storageCapacity_; /** * * *
     * If set to true, storageCapacity indicates that the CSI
     * volume driver wants pod scheduling to consider the storage
     * capacity that the driver deployment will report by creating
     * CSIStorageCapacity objects with capacity information.
     * The check can be enabled immediately when deploying a driver.
     * In that case, provisioning new volumes with late binding
     * will pause until the driver deployment has published
     * some suitable CSIStorageCapacity object.
     * Alternatively, the driver can be deployed with the field
     * unset or false and it can be flipped later when storage
     * capacity information has been published.
     * This field was immutable in Kubernetes <= 1.22 and now is mutable.
     * This is a beta field and only available when the CSIStorageCapacity
     * feature is enabled. The default is false.
     * +optional
     * +featureGate=CSIStorageCapacity
     * 
* * optional bool storageCapacity = 4; */ public boolean hasStorageCapacity() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * If set to true, storageCapacity indicates that the CSI
     * volume driver wants pod scheduling to consider the storage
     * capacity that the driver deployment will report by creating
     * CSIStorageCapacity objects with capacity information.
     * The check can be enabled immediately when deploying a driver.
     * In that case, provisioning new volumes with late binding
     * will pause until the driver deployment has published
     * some suitable CSIStorageCapacity object.
     * Alternatively, the driver can be deployed with the field
     * unset or false and it can be flipped later when storage
     * capacity information has been published.
     * This field was immutable in Kubernetes <= 1.22 and now is mutable.
     * This is a beta field and only available when the CSIStorageCapacity
     * feature is enabled. The default is false.
     * +optional
     * +featureGate=CSIStorageCapacity
     * 
* * optional bool storageCapacity = 4; */ public boolean getStorageCapacity() { return storageCapacity_; } public static final int FSGROUPPOLICY_FIELD_NUMBER = 5; private volatile java.lang.Object fsGroupPolicy_; /** * * *
     * Defines if the underlying volume supports changing ownership and
     * permission of the volume before being mounted.
     * Refer to the specific FSGroupPolicy values for additional details.
     * This field is immutable.
     * Defaults to ReadWriteOnceWithFSType, which will examine each volume
     * to determine if Kubernetes should modify ownership and permissions of the volume.
     * With the default policy the defined fsGroup will only be applied
     * if a fstype is defined and the volume's access mode contains ReadWriteOnce.
     * +optional
     * 
* * optional string fsGroupPolicy = 5; */ public boolean hasFsGroupPolicy() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Defines if the underlying volume supports changing ownership and
     * permission of the volume before being mounted.
     * Refer to the specific FSGroupPolicy values for additional details.
     * This field is immutable.
     * Defaults to ReadWriteOnceWithFSType, which will examine each volume
     * to determine if Kubernetes should modify ownership and permissions of the volume.
     * With the default policy the defined fsGroup will only be applied
     * if a fstype is defined and the volume's access mode contains ReadWriteOnce.
     * +optional
     * 
* * optional string fsGroupPolicy = 5; */ public java.lang.String getFsGroupPolicy() { java.lang.Object ref = fsGroupPolicy_; 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()) { fsGroupPolicy_ = s; } return s; } } /** * * *
     * Defines if the underlying volume supports changing ownership and
     * permission of the volume before being mounted.
     * Refer to the specific FSGroupPolicy values for additional details.
     * This field is immutable.
     * Defaults to ReadWriteOnceWithFSType, which will examine each volume
     * to determine if Kubernetes should modify ownership and permissions of the volume.
     * With the default policy the defined fsGroup will only be applied
     * if a fstype is defined and the volume's access mode contains ReadWriteOnce.
     * +optional
     * 
* * optional string fsGroupPolicy = 5; */ public com.google.protobuf.ByteString getFsGroupPolicyBytes() { java.lang.Object ref = fsGroupPolicy_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsGroupPolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TOKENREQUESTS_FIELD_NUMBER = 6; private java.util.List tokenRequests_; /** * * *
     * TokenRequests indicates the CSI driver needs pods' service account
     * tokens it is mounting volume for to do necessary authentication. Kubelet
     * will pass the tokens in VolumeContext in the CSI NodePublishVolume calls.
     * The CSI driver should parse and validate the following VolumeContext:
     * "csi.storage.k8s.io/serviceAccount.tokens": {
     *   "<audience>": {
     *     "token": <token>,
     *     "expirationTimestamp": <expiration timestamp in RFC3339>,
     *   },
     *   ...
     * }
     * Note: Audience in each TokenRequest should be different and at
     * most one token is empty string. To receive a new token after expiry,
     * RequiresRepublish can be used to trigger NodePublishVolume periodically.
     * +optional
     * +listType=atomic
     * 
* * repeated .k8s.io.api.storage.v1beta1.TokenRequest tokenRequests = 6; */ public java.util.List getTokenRequestsList() { return tokenRequests_; } /** * * *
     * TokenRequests indicates the CSI driver needs pods' service account
     * tokens it is mounting volume for to do necessary authentication. Kubelet
     * will pass the tokens in VolumeContext in the CSI NodePublishVolume calls.
     * The CSI driver should parse and validate the following VolumeContext:
     * "csi.storage.k8s.io/serviceAccount.tokens": {
     *   "<audience>": {
     *     "token": <token>,
     *     "expirationTimestamp": <expiration timestamp in RFC3339>,
     *   },
     *   ...
     * }
     * Note: Audience in each TokenRequest should be different and at
     * most one token is empty string. To receive a new token after expiry,
     * RequiresRepublish can be used to trigger NodePublishVolume periodically.
     * +optional
     * +listType=atomic
     * 
* * repeated .k8s.io.api.storage.v1beta1.TokenRequest tokenRequests = 6; */ public java.util.List getTokenRequestsOrBuilderList() { return tokenRequests_; } /** * * *
     * TokenRequests indicates the CSI driver needs pods' service account
     * tokens it is mounting volume for to do necessary authentication. Kubelet
     * will pass the tokens in VolumeContext in the CSI NodePublishVolume calls.
     * The CSI driver should parse and validate the following VolumeContext:
     * "csi.storage.k8s.io/serviceAccount.tokens": {
     *   "<audience>": {
     *     "token": <token>,
     *     "expirationTimestamp": <expiration timestamp in RFC3339>,
     *   },
     *   ...
     * }
     * Note: Audience in each TokenRequest should be different and at
     * most one token is empty string. To receive a new token after expiry,
     * RequiresRepublish can be used to trigger NodePublishVolume periodically.
     * +optional
     * +listType=atomic
     * 
* * repeated .k8s.io.api.storage.v1beta1.TokenRequest tokenRequests = 6; */ public int getTokenRequestsCount() { return tokenRequests_.size(); } /** * * *
     * TokenRequests indicates the CSI driver needs pods' service account
     * tokens it is mounting volume for to do necessary authentication. Kubelet
     * will pass the tokens in VolumeContext in the CSI NodePublishVolume calls.
     * The CSI driver should parse and validate the following VolumeContext:
     * "csi.storage.k8s.io/serviceAccount.tokens": {
     *   "<audience>": {
     *     "token": <token>,
     *     "expirationTimestamp": <expiration timestamp in RFC3339>,
     *   },
     *   ...
     * }
     * Note: Audience in each TokenRequest should be different and at
     * most one token is empty string. To receive a new token after expiry,
     * RequiresRepublish can be used to trigger NodePublishVolume periodically.
     * +optional
     * +listType=atomic
     * 
* * repeated .k8s.io.api.storage.v1beta1.TokenRequest tokenRequests = 6; */ public io.kubernetes.client.proto.V1beta1Storage.TokenRequest getTokenRequests(int index) { return tokenRequests_.get(index); } /** * * *
     * TokenRequests indicates the CSI driver needs pods' service account
     * tokens it is mounting volume for to do necessary authentication. Kubelet
     * will pass the tokens in VolumeContext in the CSI NodePublishVolume calls.
     * The CSI driver should parse and validate the following VolumeContext:
     * "csi.storage.k8s.io/serviceAccount.tokens": {
     *   "<audience>": {
     *     "token": <token>,
     *     "expirationTimestamp": <expiration timestamp in RFC3339>,
     *   },
     *   ...
     * }
     * Note: Audience in each TokenRequest should be different and at
     * most one token is empty string. To receive a new token after expiry,
     * RequiresRepublish can be used to trigger NodePublishVolume periodically.
     * +optional
     * +listType=atomic
     * 
* * repeated .k8s.io.api.storage.v1beta1.TokenRequest tokenRequests = 6; */ public io.kubernetes.client.proto.V1beta1Storage.TokenRequestOrBuilder getTokenRequestsOrBuilder(int index) { return tokenRequests_.get(index); } public static final int REQUIRESREPUBLISH_FIELD_NUMBER = 7; private boolean requiresRepublish_; /** * * *
     * RequiresRepublish indicates the CSI driver wants `NodePublishVolume`
     * being periodically called to reflect any possible change in the mounted
     * volume. This field defaults to false.
     * Note: After a successful initial NodePublishVolume call, subsequent calls
     * to NodePublishVolume should only update the contents of the volume. New
     * mount points will not be seen by a running container.
     * +optional
     * 
* * optional bool requiresRepublish = 7; */ public boolean hasRequiresRepublish() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * RequiresRepublish indicates the CSI driver wants `NodePublishVolume`
     * being periodically called to reflect any possible change in the mounted
     * volume. This field defaults to false.
     * Note: After a successful initial NodePublishVolume call, subsequent calls
     * to NodePublishVolume should only update the contents of the volume. New
     * mount points will not be seen by a running container.
     * +optional
     * 
* * optional bool requiresRepublish = 7; */ public boolean getRequiresRepublish() { return requiresRepublish_; } 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, attachRequired_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(2, podInfoOnMount_); } for (int i = 0; i < volumeLifecycleModes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString( output, 3, volumeLifecycleModes_.getRaw(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(4, storageCapacity_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, fsGroupPolicy_); } for (int i = 0; i < tokenRequests_.size(); i++) { output.writeMessage(6, tokenRequests_.get(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBool(7, requiresRepublish_); } 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, attachRequired_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, podInfoOnMount_); } { int dataSize = 0; for (int i = 0; i < volumeLifecycleModes_.size(); i++) { dataSize += computeStringSizeNoTag(volumeLifecycleModes_.getRaw(i)); } size += dataSize; size += 1 * getVolumeLifecycleModesList().size(); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, storageCapacity_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, fsGroupPolicy_); } for (int i = 0; i < tokenRequests_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, tokenRequests_.get(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, requiresRepublish_); } 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.V1beta1Storage.CSIDriverSpec)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec other = (io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec) obj; boolean result = true; result = result && (hasAttachRequired() == other.hasAttachRequired()); if (hasAttachRequired()) { result = result && (getAttachRequired() == other.getAttachRequired()); } result = result && (hasPodInfoOnMount() == other.hasPodInfoOnMount()); if (hasPodInfoOnMount()) { result = result && (getPodInfoOnMount() == other.getPodInfoOnMount()); } result = result && getVolumeLifecycleModesList().equals(other.getVolumeLifecycleModesList()); result = result && (hasStorageCapacity() == other.hasStorageCapacity()); if (hasStorageCapacity()) { result = result && (getStorageCapacity() == other.getStorageCapacity()); } result = result && (hasFsGroupPolicy() == other.hasFsGroupPolicy()); if (hasFsGroupPolicy()) { result = result && getFsGroupPolicy().equals(other.getFsGroupPolicy()); } result = result && getTokenRequestsList().equals(other.getTokenRequestsList()); result = result && (hasRequiresRepublish() == other.hasRequiresRepublish()); if (hasRequiresRepublish()) { result = result && (getRequiresRepublish() == other.getRequiresRepublish()); } 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 (hasAttachRequired()) { hash = (37 * hash) + ATTACHREQUIRED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAttachRequired()); } if (hasPodInfoOnMount()) { hash = (37 * hash) + PODINFOONMOUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPodInfoOnMount()); } if (getVolumeLifecycleModesCount() > 0) { hash = (37 * hash) + VOLUMELIFECYCLEMODES_FIELD_NUMBER; hash = (53 * hash) + getVolumeLifecycleModesList().hashCode(); } if (hasStorageCapacity()) { hash = (37 * hash) + STORAGECAPACITY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStorageCapacity()); } if (hasFsGroupPolicy()) { hash = (37 * hash) + FSGROUPPOLICY_FIELD_NUMBER; hash = (53 * hash) + getFsGroupPolicy().hashCode(); } if (getTokenRequestsCount() > 0) { hash = (37 * hash) + TOKENREQUESTS_FIELD_NUMBER; hash = (53 * hash) + getTokenRequestsList().hashCode(); } if (hasRequiresRepublish()) { hash = (37 * hash) + REQUIRESREPUBLISH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequiresRepublish()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec 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.V1beta1Storage.CSIDriverSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec 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.V1beta1Storage.CSIDriverSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec 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.V1beta1Storage.CSIDriverSpec parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec 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.V1beta1Storage.CSIDriverSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec 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.V1beta1Storage.CSIDriverSpec 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; } /** * * *
     * CSIDriverSpec is the specification of a CSIDriver.
     * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.CSIDriverSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.storage.v1beta1.CSIDriverSpec) io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSIDriverSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSIDriverSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec.class, io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec.Builder.class); } // Construct using io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getTokenRequestsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); attachRequired_ = false; bitField0_ = (bitField0_ & ~0x00000001); podInfoOnMount_ = false; bitField0_ = (bitField0_ & ~0x00000002); volumeLifecycleModes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); storageCapacity_ = false; bitField0_ = (bitField0_ & ~0x00000008); fsGroupPolicy_ = ""; bitField0_ = (bitField0_ & ~0x00000010); if (tokenRequestsBuilder_ == null) { tokenRequests_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { tokenRequestsBuilder_.clear(); } requiresRepublish_ = false; bitField0_ = (bitField0_ & ~0x00000040); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSIDriverSpec_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec build() { io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec buildPartial() { io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec result = new io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.attachRequired_ = attachRequired_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.podInfoOnMount_ = podInfoOnMount_; if (((bitField0_ & 0x00000004) == 0x00000004)) { volumeLifecycleModes_ = volumeLifecycleModes_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.volumeLifecycleModes_ = volumeLifecycleModes_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.storageCapacity_ = storageCapacity_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000008; } result.fsGroupPolicy_ = fsGroupPolicy_; if (tokenRequestsBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020)) { tokenRequests_ = java.util.Collections.unmodifiableList(tokenRequests_); bitField0_ = (bitField0_ & ~0x00000020); } result.tokenRequests_ = tokenRequests_; } else { result.tokenRequests_ = tokenRequestsBuilder_.build(); } if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000010; } result.requiresRepublish_ = requiresRepublish_; 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.V1beta1Storage.CSIDriverSpec) { return mergeFrom((io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec other) { if (other == io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec.getDefaultInstance()) return this; if (other.hasAttachRequired()) { setAttachRequired(other.getAttachRequired()); } if (other.hasPodInfoOnMount()) { setPodInfoOnMount(other.getPodInfoOnMount()); } if (!other.volumeLifecycleModes_.isEmpty()) { if (volumeLifecycleModes_.isEmpty()) { volumeLifecycleModes_ = other.volumeLifecycleModes_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureVolumeLifecycleModesIsMutable(); volumeLifecycleModes_.addAll(other.volumeLifecycleModes_); } onChanged(); } if (other.hasStorageCapacity()) { setStorageCapacity(other.getStorageCapacity()); } if (other.hasFsGroupPolicy()) { bitField0_ |= 0x00000010; fsGroupPolicy_ = other.fsGroupPolicy_; onChanged(); } if (tokenRequestsBuilder_ == null) { if (!other.tokenRequests_.isEmpty()) { if (tokenRequests_.isEmpty()) { tokenRequests_ = other.tokenRequests_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureTokenRequestsIsMutable(); tokenRequests_.addAll(other.tokenRequests_); } onChanged(); } } else { if (!other.tokenRequests_.isEmpty()) { if (tokenRequestsBuilder_.isEmpty()) { tokenRequestsBuilder_.dispose(); tokenRequestsBuilder_ = null; tokenRequests_ = other.tokenRequests_; bitField0_ = (bitField0_ & ~0x00000020); tokenRequestsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTokenRequestsFieldBuilder() : null; } else { tokenRequestsBuilder_.addAllMessages(other.tokenRequests_); } } } if (other.hasRequiresRepublish()) { setRequiresRepublish(other.getRequiresRepublish()); } 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.V1beta1Storage.CSIDriverSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private boolean attachRequired_; /** * * *
       * attachRequired indicates this CSI volume driver requires an attach
       * operation (because it implements the CSI ControllerPublishVolume()
       * method), and that the Kubernetes attach detach controller should call
       * the attach volume interface which checks the volumeattachment status
       * and waits until the volume is attached before proceeding to mounting.
       * The CSI external-attacher coordinates with CSI volume driver and updates
       * the volumeattachment status when the attach operation is complete.
       * If the CSIDriverRegistry feature gate is enabled and the value is
       * specified to false, the attach operation will be skipped.
       * Otherwise the attach operation will be called.
       * This field is immutable.
       * +optional
       * 
* * optional bool attachRequired = 1; */ public boolean hasAttachRequired() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * attachRequired indicates this CSI volume driver requires an attach
       * operation (because it implements the CSI ControllerPublishVolume()
       * method), and that the Kubernetes attach detach controller should call
       * the attach volume interface which checks the volumeattachment status
       * and waits until the volume is attached before proceeding to mounting.
       * The CSI external-attacher coordinates with CSI volume driver and updates
       * the volumeattachment status when the attach operation is complete.
       * If the CSIDriverRegistry feature gate is enabled and the value is
       * specified to false, the attach operation will be skipped.
       * Otherwise the attach operation will be called.
       * This field is immutable.
       * +optional
       * 
* * optional bool attachRequired = 1; */ public boolean getAttachRequired() { return attachRequired_; } /** * * *
       * attachRequired indicates this CSI volume driver requires an attach
       * operation (because it implements the CSI ControllerPublishVolume()
       * method), and that the Kubernetes attach detach controller should call
       * the attach volume interface which checks the volumeattachment status
       * and waits until the volume is attached before proceeding to mounting.
       * The CSI external-attacher coordinates with CSI volume driver and updates
       * the volumeattachment status when the attach operation is complete.
       * If the CSIDriverRegistry feature gate is enabled and the value is
       * specified to false, the attach operation will be skipped.
       * Otherwise the attach operation will be called.
       * This field is immutable.
       * +optional
       * 
* * optional bool attachRequired = 1; */ public Builder setAttachRequired(boolean value) { bitField0_ |= 0x00000001; attachRequired_ = value; onChanged(); return this; } /** * * *
       * attachRequired indicates this CSI volume driver requires an attach
       * operation (because it implements the CSI ControllerPublishVolume()
       * method), and that the Kubernetes attach detach controller should call
       * the attach volume interface which checks the volumeattachment status
       * and waits until the volume is attached before proceeding to mounting.
       * The CSI external-attacher coordinates with CSI volume driver and updates
       * the volumeattachment status when the attach operation is complete.
       * If the CSIDriverRegistry feature gate is enabled and the value is
       * specified to false, the attach operation will be skipped.
       * Otherwise the attach operation will be called.
       * This field is immutable.
       * +optional
       * 
* * optional bool attachRequired = 1; */ public Builder clearAttachRequired() { bitField0_ = (bitField0_ & ~0x00000001); attachRequired_ = false; onChanged(); return this; } private boolean podInfoOnMount_; /** * * *
       * If set to true, podInfoOnMount indicates this CSI volume driver
       * requires additional pod information (like podName, podUID, etc.) during
       * mount operations.
       * If set to false, pod information will not be passed on mount.
       * Default is false.
       * The CSI driver specifies podInfoOnMount as part of driver deployment.
       * If true, Kubelet will pass pod information as VolumeContext in the CSI
       * NodePublishVolume() calls.
       * The CSI driver is responsible for parsing and validating the information
       * passed in as VolumeContext.
       * The following VolumeConext will be passed if podInfoOnMount is set to true.
       * This list might grow, but the prefix will be used.
       * "csi.storage.k8s.io/pod.name": pod.Name
       * "csi.storage.k8s.io/pod.namespace": pod.Namespace
       * "csi.storage.k8s.io/pod.uid": string(pod.UID)
       * "csi.storage.k8s.io/ephemeral": "true" if the volume is an ephemeral inline volume
       *                                 defined by a CSIVolumeSource, otherwise "false"
       * "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only
       * required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode.
       * Other drivers can leave pod info disabled and/or ignore this field.
       * As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when
       * deployed on such a cluster and the deployment determines which mode that is, for example
       * via a command line parameter of the driver.
       * This field is immutable.
       * +optional
       * 
* * optional bool podInfoOnMount = 2; */ public boolean hasPodInfoOnMount() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * If set to true, podInfoOnMount indicates this CSI volume driver
       * requires additional pod information (like podName, podUID, etc.) during
       * mount operations.
       * If set to false, pod information will not be passed on mount.
       * Default is false.
       * The CSI driver specifies podInfoOnMount as part of driver deployment.
       * If true, Kubelet will pass pod information as VolumeContext in the CSI
       * NodePublishVolume() calls.
       * The CSI driver is responsible for parsing and validating the information
       * passed in as VolumeContext.
       * The following VolumeConext will be passed if podInfoOnMount is set to true.
       * This list might grow, but the prefix will be used.
       * "csi.storage.k8s.io/pod.name": pod.Name
       * "csi.storage.k8s.io/pod.namespace": pod.Namespace
       * "csi.storage.k8s.io/pod.uid": string(pod.UID)
       * "csi.storage.k8s.io/ephemeral": "true" if the volume is an ephemeral inline volume
       *                                 defined by a CSIVolumeSource, otherwise "false"
       * "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only
       * required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode.
       * Other drivers can leave pod info disabled and/or ignore this field.
       * As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when
       * deployed on such a cluster and the deployment determines which mode that is, for example
       * via a command line parameter of the driver.
       * This field is immutable.
       * +optional
       * 
* * optional bool podInfoOnMount = 2; */ public boolean getPodInfoOnMount() { return podInfoOnMount_; } /** * * *
       * If set to true, podInfoOnMount indicates this CSI volume driver
       * requires additional pod information (like podName, podUID, etc.) during
       * mount operations.
       * If set to false, pod information will not be passed on mount.
       * Default is false.
       * The CSI driver specifies podInfoOnMount as part of driver deployment.
       * If true, Kubelet will pass pod information as VolumeContext in the CSI
       * NodePublishVolume() calls.
       * The CSI driver is responsible for parsing and validating the information
       * passed in as VolumeContext.
       * The following VolumeConext will be passed if podInfoOnMount is set to true.
       * This list might grow, but the prefix will be used.
       * "csi.storage.k8s.io/pod.name": pod.Name
       * "csi.storage.k8s.io/pod.namespace": pod.Namespace
       * "csi.storage.k8s.io/pod.uid": string(pod.UID)
       * "csi.storage.k8s.io/ephemeral": "true" if the volume is an ephemeral inline volume
       *                                 defined by a CSIVolumeSource, otherwise "false"
       * "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only
       * required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode.
       * Other drivers can leave pod info disabled and/or ignore this field.
       * As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when
       * deployed on such a cluster and the deployment determines which mode that is, for example
       * via a command line parameter of the driver.
       * This field is immutable.
       * +optional
       * 
* * optional bool podInfoOnMount = 2; */ public Builder setPodInfoOnMount(boolean value) { bitField0_ |= 0x00000002; podInfoOnMount_ = value; onChanged(); return this; } /** * * *
       * If set to true, podInfoOnMount indicates this CSI volume driver
       * requires additional pod information (like podName, podUID, etc.) during
       * mount operations.
       * If set to false, pod information will not be passed on mount.
       * Default is false.
       * The CSI driver specifies podInfoOnMount as part of driver deployment.
       * If true, Kubelet will pass pod information as VolumeContext in the CSI
       * NodePublishVolume() calls.
       * The CSI driver is responsible for parsing and validating the information
       * passed in as VolumeContext.
       * The following VolumeConext will be passed if podInfoOnMount is set to true.
       * This list might grow, but the prefix will be used.
       * "csi.storage.k8s.io/pod.name": pod.Name
       * "csi.storage.k8s.io/pod.namespace": pod.Namespace
       * "csi.storage.k8s.io/pod.uid": string(pod.UID)
       * "csi.storage.k8s.io/ephemeral": "true" if the volume is an ephemeral inline volume
       *                                 defined by a CSIVolumeSource, otherwise "false"
       * "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only
       * required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode.
       * Other drivers can leave pod info disabled and/or ignore this field.
       * As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when
       * deployed on such a cluster and the deployment determines which mode that is, for example
       * via a command line parameter of the driver.
       * This field is immutable.
       * +optional
       * 
* * optional bool podInfoOnMount = 2; */ public Builder clearPodInfoOnMount() { bitField0_ = (bitField0_ & ~0x00000002); podInfoOnMount_ = false; onChanged(); return this; } private com.google.protobuf.LazyStringList volumeLifecycleModes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureVolumeLifecycleModesIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { volumeLifecycleModes_ = new com.google.protobuf.LazyStringArrayList(volumeLifecycleModes_); bitField0_ |= 0x00000004; } } /** * * *
       * VolumeLifecycleModes defines what kind of volumes this CSI volume driver supports.
       * The default if the list is empty is "Persistent", which is the usage
       * defined by the CSI specification and implemented in Kubernetes via the usual
       * PV/PVC mechanism.
       * The other mode is "Ephemeral". In this mode, volumes are defined inline
       * inside the pod spec with CSIVolumeSource and their lifecycle is tied to
       * the lifecycle of that pod. A driver has to be aware of this
       * because it is only going to get a NodePublishVolume call for such a volume.
       * For more information about implementing this mode, see
       * https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html
       * A driver can support one or more of these modes and
       * more modes may be added in the future.
       * This field is immutable.
       * +optional
       * 
* * repeated string volumeLifecycleModes = 3; */ public com.google.protobuf.ProtocolStringList getVolumeLifecycleModesList() { return volumeLifecycleModes_.getUnmodifiableView(); } /** * * *
       * VolumeLifecycleModes defines what kind of volumes this CSI volume driver supports.
       * The default if the list is empty is "Persistent", which is the usage
       * defined by the CSI specification and implemented in Kubernetes via the usual
       * PV/PVC mechanism.
       * The other mode is "Ephemeral". In this mode, volumes are defined inline
       * inside the pod spec with CSIVolumeSource and their lifecycle is tied to
       * the lifecycle of that pod. A driver has to be aware of this
       * because it is only going to get a NodePublishVolume call for such a volume.
       * For more information about implementing this mode, see
       * https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html
       * A driver can support one or more of these modes and
       * more modes may be added in the future.
       * This field is immutable.
       * +optional
       * 
* * repeated string volumeLifecycleModes = 3; */ public int getVolumeLifecycleModesCount() { return volumeLifecycleModes_.size(); } /** * * *
       * VolumeLifecycleModes defines what kind of volumes this CSI volume driver supports.
       * The default if the list is empty is "Persistent", which is the usage
       * defined by the CSI specification and implemented in Kubernetes via the usual
       * PV/PVC mechanism.
       * The other mode is "Ephemeral". In this mode, volumes are defined inline
       * inside the pod spec with CSIVolumeSource and their lifecycle is tied to
       * the lifecycle of that pod. A driver has to be aware of this
       * because it is only going to get a NodePublishVolume call for such a volume.
       * For more information about implementing this mode, see
       * https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html
       * A driver can support one or more of these modes and
       * more modes may be added in the future.
       * This field is immutable.
       * +optional
       * 
* * repeated string volumeLifecycleModes = 3; */ public java.lang.String getVolumeLifecycleModes(int index) { return volumeLifecycleModes_.get(index); } /** * * *
       * VolumeLifecycleModes defines what kind of volumes this CSI volume driver supports.
       * The default if the list is empty is "Persistent", which is the usage
       * defined by the CSI specification and implemented in Kubernetes via the usual
       * PV/PVC mechanism.
       * The other mode is "Ephemeral". In this mode, volumes are defined inline
       * inside the pod spec with CSIVolumeSource and their lifecycle is tied to
       * the lifecycle of that pod. A driver has to be aware of this
       * because it is only going to get a NodePublishVolume call for such a volume.
       * For more information about implementing this mode, see
       * https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html
       * A driver can support one or more of these modes and
       * more modes may be added in the future.
       * This field is immutable.
       * +optional
       * 
* * repeated string volumeLifecycleModes = 3; */ public com.google.protobuf.ByteString getVolumeLifecycleModesBytes(int index) { return volumeLifecycleModes_.getByteString(index); } /** * * *
       * VolumeLifecycleModes defines what kind of volumes this CSI volume driver supports.
       * The default if the list is empty is "Persistent", which is the usage
       * defined by the CSI specification and implemented in Kubernetes via the usual
       * PV/PVC mechanism.
       * The other mode is "Ephemeral". In this mode, volumes are defined inline
       * inside the pod spec with CSIVolumeSource and their lifecycle is tied to
       * the lifecycle of that pod. A driver has to be aware of this
       * because it is only going to get a NodePublishVolume call for such a volume.
       * For more information about implementing this mode, see
       * https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html
       * A driver can support one or more of these modes and
       * more modes may be added in the future.
       * This field is immutable.
       * +optional
       * 
* * repeated string volumeLifecycleModes = 3; */ public Builder setVolumeLifecycleModes(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureVolumeLifecycleModesIsMutable(); volumeLifecycleModes_.set(index, value); onChanged(); return this; } /** * * *
       * VolumeLifecycleModes defines what kind of volumes this CSI volume driver supports.
       * The default if the list is empty is "Persistent", which is the usage
       * defined by the CSI specification and implemented in Kubernetes via the usual
       * PV/PVC mechanism.
       * The other mode is "Ephemeral". In this mode, volumes are defined inline
       * inside the pod spec with CSIVolumeSource and their lifecycle is tied to
       * the lifecycle of that pod. A driver has to be aware of this
       * because it is only going to get a NodePublishVolume call for such a volume.
       * For more information about implementing this mode, see
       * https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html
       * A driver can support one or more of these modes and
       * more modes may be added in the future.
       * This field is immutable.
       * +optional
       * 
* * repeated string volumeLifecycleModes = 3; */ public Builder addVolumeLifecycleModes(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureVolumeLifecycleModesIsMutable(); volumeLifecycleModes_.add(value); onChanged(); return this; } /** * * *
       * VolumeLifecycleModes defines what kind of volumes this CSI volume driver supports.
       * The default if the list is empty is "Persistent", which is the usage
       * defined by the CSI specification and implemented in Kubernetes via the usual
       * PV/PVC mechanism.
       * The other mode is "Ephemeral". In this mode, volumes are defined inline
       * inside the pod spec with CSIVolumeSource and their lifecycle is tied to
       * the lifecycle of that pod. A driver has to be aware of this
       * because it is only going to get a NodePublishVolume call for such a volume.
       * For more information about implementing this mode, see
       * https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html
       * A driver can support one or more of these modes and
       * more modes may be added in the future.
       * This field is immutable.
       * +optional
       * 
* * repeated string volumeLifecycleModes = 3; */ public Builder addAllVolumeLifecycleModes(java.lang.Iterable values) { ensureVolumeLifecycleModesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, volumeLifecycleModes_); onChanged(); return this; } /** * * *
       * VolumeLifecycleModes defines what kind of volumes this CSI volume driver supports.
       * The default if the list is empty is "Persistent", which is the usage
       * defined by the CSI specification and implemented in Kubernetes via the usual
       * PV/PVC mechanism.
       * The other mode is "Ephemeral". In this mode, volumes are defined inline
       * inside the pod spec with CSIVolumeSource and their lifecycle is tied to
       * the lifecycle of that pod. A driver has to be aware of this
       * because it is only going to get a NodePublishVolume call for such a volume.
       * For more information about implementing this mode, see
       * https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html
       * A driver can support one or more of these modes and
       * more modes may be added in the future.
       * This field is immutable.
       * +optional
       * 
* * repeated string volumeLifecycleModes = 3; */ public Builder clearVolumeLifecycleModes() { volumeLifecycleModes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
       * VolumeLifecycleModes defines what kind of volumes this CSI volume driver supports.
       * The default if the list is empty is "Persistent", which is the usage
       * defined by the CSI specification and implemented in Kubernetes via the usual
       * PV/PVC mechanism.
       * The other mode is "Ephemeral". In this mode, volumes are defined inline
       * inside the pod spec with CSIVolumeSource and their lifecycle is tied to
       * the lifecycle of that pod. A driver has to be aware of this
       * because it is only going to get a NodePublishVolume call for such a volume.
       * For more information about implementing this mode, see
       * https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html
       * A driver can support one or more of these modes and
       * more modes may be added in the future.
       * This field is immutable.
       * +optional
       * 
* * repeated string volumeLifecycleModes = 3; */ public Builder addVolumeLifecycleModesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureVolumeLifecycleModesIsMutable(); volumeLifecycleModes_.add(value); onChanged(); return this; } private boolean storageCapacity_; /** * * *
       * If set to true, storageCapacity indicates that the CSI
       * volume driver wants pod scheduling to consider the storage
       * capacity that the driver deployment will report by creating
       * CSIStorageCapacity objects with capacity information.
       * The check can be enabled immediately when deploying a driver.
       * In that case, provisioning new volumes with late binding
       * will pause until the driver deployment has published
       * some suitable CSIStorageCapacity object.
       * Alternatively, the driver can be deployed with the field
       * unset or false and it can be flipped later when storage
       * capacity information has been published.
       * This field was immutable in Kubernetes <= 1.22 and now is mutable.
       * This is a beta field and only available when the CSIStorageCapacity
       * feature is enabled. The default is false.
       * +optional
       * +featureGate=CSIStorageCapacity
       * 
* * optional bool storageCapacity = 4; */ public boolean hasStorageCapacity() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * If set to true, storageCapacity indicates that the CSI
       * volume driver wants pod scheduling to consider the storage
       * capacity that the driver deployment will report by creating
       * CSIStorageCapacity objects with capacity information.
       * The check can be enabled immediately when deploying a driver.
       * In that case, provisioning new volumes with late binding
       * will pause until the driver deployment has published
       * some suitable CSIStorageCapacity object.
       * Alternatively, the driver can be deployed with the field
       * unset or false and it can be flipped later when storage
       * capacity information has been published.
       * This field was immutable in Kubernetes <= 1.22 and now is mutable.
       * This is a beta field and only available when the CSIStorageCapacity
       * feature is enabled. The default is false.
       * +optional
       * +featureGate=CSIStorageCapacity
       * 
* * optional bool storageCapacity = 4; */ public boolean getStorageCapacity() { return storageCapacity_; } /** * * *
       * If set to true, storageCapacity indicates that the CSI
       * volume driver wants pod scheduling to consider the storage
       * capacity that the driver deployment will report by creating
       * CSIStorageCapacity objects with capacity information.
       * The check can be enabled immediately when deploying a driver.
       * In that case, provisioning new volumes with late binding
       * will pause until the driver deployment has published
       * some suitable CSIStorageCapacity object.
       * Alternatively, the driver can be deployed with the field
       * unset or false and it can be flipped later when storage
       * capacity information has been published.
       * This field was immutable in Kubernetes <= 1.22 and now is mutable.
       * This is a beta field and only available when the CSIStorageCapacity
       * feature is enabled. The default is false.
       * +optional
       * +featureGate=CSIStorageCapacity
       * 
* * optional bool storageCapacity = 4; */ public Builder setStorageCapacity(boolean value) { bitField0_ |= 0x00000008; storageCapacity_ = value; onChanged(); return this; } /** * * *
       * If set to true, storageCapacity indicates that the CSI
       * volume driver wants pod scheduling to consider the storage
       * capacity that the driver deployment will report by creating
       * CSIStorageCapacity objects with capacity information.
       * The check can be enabled immediately when deploying a driver.
       * In that case, provisioning new volumes with late binding
       * will pause until the driver deployment has published
       * some suitable CSIStorageCapacity object.
       * Alternatively, the driver can be deployed with the field
       * unset or false and it can be flipped later when storage
       * capacity information has been published.
       * This field was immutable in Kubernetes <= 1.22 and now is mutable.
       * This is a beta field and only available when the CSIStorageCapacity
       * feature is enabled. The default is false.
       * +optional
       * +featureGate=CSIStorageCapacity
       * 
* * optional bool storageCapacity = 4; */ public Builder clearStorageCapacity() { bitField0_ = (bitField0_ & ~0x00000008); storageCapacity_ = false; onChanged(); return this; } private java.lang.Object fsGroupPolicy_ = ""; /** * * *
       * Defines if the underlying volume supports changing ownership and
       * permission of the volume before being mounted.
       * Refer to the specific FSGroupPolicy values for additional details.
       * This field is immutable.
       * Defaults to ReadWriteOnceWithFSType, which will examine each volume
       * to determine if Kubernetes should modify ownership and permissions of the volume.
       * With the default policy the defined fsGroup will only be applied
       * if a fstype is defined and the volume's access mode contains ReadWriteOnce.
       * +optional
       * 
* * optional string fsGroupPolicy = 5; */ public boolean hasFsGroupPolicy() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * Defines if the underlying volume supports changing ownership and
       * permission of the volume before being mounted.
       * Refer to the specific FSGroupPolicy values for additional details.
       * This field is immutable.
       * Defaults to ReadWriteOnceWithFSType, which will examine each volume
       * to determine if Kubernetes should modify ownership and permissions of the volume.
       * With the default policy the defined fsGroup will only be applied
       * if a fstype is defined and the volume's access mode contains ReadWriteOnce.
       * +optional
       * 
* * optional string fsGroupPolicy = 5; */ public java.lang.String getFsGroupPolicy() { java.lang.Object ref = fsGroupPolicy_; 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()) { fsGroupPolicy_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Defines if the underlying volume supports changing ownership and
       * permission of the volume before being mounted.
       * Refer to the specific FSGroupPolicy values for additional details.
       * This field is immutable.
       * Defaults to ReadWriteOnceWithFSType, which will examine each volume
       * to determine if Kubernetes should modify ownership and permissions of the volume.
       * With the default policy the defined fsGroup will only be applied
       * if a fstype is defined and the volume's access mode contains ReadWriteOnce.
       * +optional
       * 
* * optional string fsGroupPolicy = 5; */ public com.google.protobuf.ByteString getFsGroupPolicyBytes() { java.lang.Object ref = fsGroupPolicy_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsGroupPolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Defines if the underlying volume supports changing ownership and
       * permission of the volume before being mounted.
       * Refer to the specific FSGroupPolicy values for additional details.
       * This field is immutable.
       * Defaults to ReadWriteOnceWithFSType, which will examine each volume
       * to determine if Kubernetes should modify ownership and permissions of the volume.
       * With the default policy the defined fsGroup will only be applied
       * if a fstype is defined and the volume's access mode contains ReadWriteOnce.
       * +optional
       * 
* * optional string fsGroupPolicy = 5; */ public Builder setFsGroupPolicy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; fsGroupPolicy_ = value; onChanged(); return this; } /** * * *
       * Defines if the underlying volume supports changing ownership and
       * permission of the volume before being mounted.
       * Refer to the specific FSGroupPolicy values for additional details.
       * This field is immutable.
       * Defaults to ReadWriteOnceWithFSType, which will examine each volume
       * to determine if Kubernetes should modify ownership and permissions of the volume.
       * With the default policy the defined fsGroup will only be applied
       * if a fstype is defined and the volume's access mode contains ReadWriteOnce.
       * +optional
       * 
* * optional string fsGroupPolicy = 5; */ public Builder clearFsGroupPolicy() { bitField0_ = (bitField0_ & ~0x00000010); fsGroupPolicy_ = getDefaultInstance().getFsGroupPolicy(); onChanged(); return this; } /** * * *
       * Defines if the underlying volume supports changing ownership and
       * permission of the volume before being mounted.
       * Refer to the specific FSGroupPolicy values for additional details.
       * This field is immutable.
       * Defaults to ReadWriteOnceWithFSType, which will examine each volume
       * to determine if Kubernetes should modify ownership and permissions of the volume.
       * With the default policy the defined fsGroup will only be applied
       * if a fstype is defined and the volume's access mode contains ReadWriteOnce.
       * +optional
       * 
* * optional string fsGroupPolicy = 5; */ public Builder setFsGroupPolicyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; fsGroupPolicy_ = value; onChanged(); return this; } private java.util.List tokenRequests_ = java.util.Collections.emptyList(); private void ensureTokenRequestsIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { tokenRequests_ = new java.util.ArrayList( tokenRequests_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.TokenRequest, io.kubernetes.client.proto.V1beta1Storage.TokenRequest.Builder, io.kubernetes.client.proto.V1beta1Storage.TokenRequestOrBuilder> tokenRequestsBuilder_; /** * * *
       * TokenRequests indicates the CSI driver needs pods' service account
       * tokens it is mounting volume for to do necessary authentication. Kubelet
       * will pass the tokens in VolumeContext in the CSI NodePublishVolume calls.
       * The CSI driver should parse and validate the following VolumeContext:
       * "csi.storage.k8s.io/serviceAccount.tokens": {
       *   "<audience>": {
       *     "token": <token>,
       *     "expirationTimestamp": <expiration timestamp in RFC3339>,
       *   },
       *   ...
       * }
       * Note: Audience in each TokenRequest should be different and at
       * most one token is empty string. To receive a new token after expiry,
       * RequiresRepublish can be used to trigger NodePublishVolume periodically.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.storage.v1beta1.TokenRequest tokenRequests = 6; */ public java.util.List getTokenRequestsList() { if (tokenRequestsBuilder_ == null) { return java.util.Collections.unmodifiableList(tokenRequests_); } else { return tokenRequestsBuilder_.getMessageList(); } } /** * * *
       * TokenRequests indicates the CSI driver needs pods' service account
       * tokens it is mounting volume for to do necessary authentication. Kubelet
       * will pass the tokens in VolumeContext in the CSI NodePublishVolume calls.
       * The CSI driver should parse and validate the following VolumeContext:
       * "csi.storage.k8s.io/serviceAccount.tokens": {
       *   "<audience>": {
       *     "token": <token>,
       *     "expirationTimestamp": <expiration timestamp in RFC3339>,
       *   },
       *   ...
       * }
       * Note: Audience in each TokenRequest should be different and at
       * most one token is empty string. To receive a new token after expiry,
       * RequiresRepublish can be used to trigger NodePublishVolume periodically.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.storage.v1beta1.TokenRequest tokenRequests = 6; */ public int getTokenRequestsCount() { if (tokenRequestsBuilder_ == null) { return tokenRequests_.size(); } else { return tokenRequestsBuilder_.getCount(); } } /** * * *
       * TokenRequests indicates the CSI driver needs pods' service account
       * tokens it is mounting volume for to do necessary authentication. Kubelet
       * will pass the tokens in VolumeContext in the CSI NodePublishVolume calls.
       * The CSI driver should parse and validate the following VolumeContext:
       * "csi.storage.k8s.io/serviceAccount.tokens": {
       *   "<audience>": {
       *     "token": <token>,
       *     "expirationTimestamp": <expiration timestamp in RFC3339>,
       *   },
       *   ...
       * }
       * Note: Audience in each TokenRequest should be different and at
       * most one token is empty string. To receive a new token after expiry,
       * RequiresRepublish can be used to trigger NodePublishVolume periodically.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.storage.v1beta1.TokenRequest tokenRequests = 6; */ public io.kubernetes.client.proto.V1beta1Storage.TokenRequest getTokenRequests(int index) { if (tokenRequestsBuilder_ == null) { return tokenRequests_.get(index); } else { return tokenRequestsBuilder_.getMessage(index); } } /** * * *
       * TokenRequests indicates the CSI driver needs pods' service account
       * tokens it is mounting volume for to do necessary authentication. Kubelet
       * will pass the tokens in VolumeContext in the CSI NodePublishVolume calls.
       * The CSI driver should parse and validate the following VolumeContext:
       * "csi.storage.k8s.io/serviceAccount.tokens": {
       *   "<audience>": {
       *     "token": <token>,
       *     "expirationTimestamp": <expiration timestamp in RFC3339>,
       *   },
       *   ...
       * }
       * Note: Audience in each TokenRequest should be different and at
       * most one token is empty string. To receive a new token after expiry,
       * RequiresRepublish can be used to trigger NodePublishVolume periodically.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.storage.v1beta1.TokenRequest tokenRequests = 6; */ public Builder setTokenRequests( int index, io.kubernetes.client.proto.V1beta1Storage.TokenRequest value) { if (tokenRequestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTokenRequestsIsMutable(); tokenRequests_.set(index, value); onChanged(); } else { tokenRequestsBuilder_.setMessage(index, value); } return this; } /** * * *
       * TokenRequests indicates the CSI driver needs pods' service account
       * tokens it is mounting volume for to do necessary authentication. Kubelet
       * will pass the tokens in VolumeContext in the CSI NodePublishVolume calls.
       * The CSI driver should parse and validate the following VolumeContext:
       * "csi.storage.k8s.io/serviceAccount.tokens": {
       *   "<audience>": {
       *     "token": <token>,
       *     "expirationTimestamp": <expiration timestamp in RFC3339>,
       *   },
       *   ...
       * }
       * Note: Audience in each TokenRequest should be different and at
       * most one token is empty string. To receive a new token after expiry,
       * RequiresRepublish can be used to trigger NodePublishVolume periodically.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.storage.v1beta1.TokenRequest tokenRequests = 6; */ public Builder setTokenRequests( int index, io.kubernetes.client.proto.V1beta1Storage.TokenRequest.Builder builderForValue) { if (tokenRequestsBuilder_ == null) { ensureTokenRequestsIsMutable(); tokenRequests_.set(index, builderForValue.build()); onChanged(); } else { tokenRequestsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * TokenRequests indicates the CSI driver needs pods' service account
       * tokens it is mounting volume for to do necessary authentication. Kubelet
       * will pass the tokens in VolumeContext in the CSI NodePublishVolume calls.
       * The CSI driver should parse and validate the following VolumeContext:
       * "csi.storage.k8s.io/serviceAccount.tokens": {
       *   "<audience>": {
       *     "token": <token>,
       *     "expirationTimestamp": <expiration timestamp in RFC3339>,
       *   },
       *   ...
       * }
       * Note: Audience in each TokenRequest should be different and at
       * most one token is empty string. To receive a new token after expiry,
       * RequiresRepublish can be used to trigger NodePublishVolume periodically.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.storage.v1beta1.TokenRequest tokenRequests = 6; */ public Builder addTokenRequests( io.kubernetes.client.proto.V1beta1Storage.TokenRequest value) { if (tokenRequestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTokenRequestsIsMutable(); tokenRequests_.add(value); onChanged(); } else { tokenRequestsBuilder_.addMessage(value); } return this; } /** * * *
       * TokenRequests indicates the CSI driver needs pods' service account
       * tokens it is mounting volume for to do necessary authentication. Kubelet
       * will pass the tokens in VolumeContext in the CSI NodePublishVolume calls.
       * The CSI driver should parse and validate the following VolumeContext:
       * "csi.storage.k8s.io/serviceAccount.tokens": {
       *   "<audience>": {
       *     "token": <token>,
       *     "expirationTimestamp": <expiration timestamp in RFC3339>,
       *   },
       *   ...
       * }
       * Note: Audience in each TokenRequest should be different and at
       * most one token is empty string. To receive a new token after expiry,
       * RequiresRepublish can be used to trigger NodePublishVolume periodically.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.storage.v1beta1.TokenRequest tokenRequests = 6; */ public Builder addTokenRequests( int index, io.kubernetes.client.proto.V1beta1Storage.TokenRequest value) { if (tokenRequestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTokenRequestsIsMutable(); tokenRequests_.add(index, value); onChanged(); } else { tokenRequestsBuilder_.addMessage(index, value); } return this; } /** * * *
       * TokenRequests indicates the CSI driver needs pods' service account
       * tokens it is mounting volume for to do necessary authentication. Kubelet
       * will pass the tokens in VolumeContext in the CSI NodePublishVolume calls.
       * The CSI driver should parse and validate the following VolumeContext:
       * "csi.storage.k8s.io/serviceAccount.tokens": {
       *   "<audience>": {
       *     "token": <token>,
       *     "expirationTimestamp": <expiration timestamp in RFC3339>,
       *   },
       *   ...
       * }
       * Note: Audience in each TokenRequest should be different and at
       * most one token is empty string. To receive a new token after expiry,
       * RequiresRepublish can be used to trigger NodePublishVolume periodically.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.storage.v1beta1.TokenRequest tokenRequests = 6; */ public Builder addTokenRequests( io.kubernetes.client.proto.V1beta1Storage.TokenRequest.Builder builderForValue) { if (tokenRequestsBuilder_ == null) { ensureTokenRequestsIsMutable(); tokenRequests_.add(builderForValue.build()); onChanged(); } else { tokenRequestsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * TokenRequests indicates the CSI driver needs pods' service account
       * tokens it is mounting volume for to do necessary authentication. Kubelet
       * will pass the tokens in VolumeContext in the CSI NodePublishVolume calls.
       * The CSI driver should parse and validate the following VolumeContext:
       * "csi.storage.k8s.io/serviceAccount.tokens": {
       *   "<audience>": {
       *     "token": <token>,
       *     "expirationTimestamp": <expiration timestamp in RFC3339>,
       *   },
       *   ...
       * }
       * Note: Audience in each TokenRequest should be different and at
       * most one token is empty string. To receive a new token after expiry,
       * RequiresRepublish can be used to trigger NodePublishVolume periodically.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.storage.v1beta1.TokenRequest tokenRequests = 6; */ public Builder addTokenRequests( int index, io.kubernetes.client.proto.V1beta1Storage.TokenRequest.Builder builderForValue) { if (tokenRequestsBuilder_ == null) { ensureTokenRequestsIsMutable(); tokenRequests_.add(index, builderForValue.build()); onChanged(); } else { tokenRequestsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * TokenRequests indicates the CSI driver needs pods' service account
       * tokens it is mounting volume for to do necessary authentication. Kubelet
       * will pass the tokens in VolumeContext in the CSI NodePublishVolume calls.
       * The CSI driver should parse and validate the following VolumeContext:
       * "csi.storage.k8s.io/serviceAccount.tokens": {
       *   "<audience>": {
       *     "token": <token>,
       *     "expirationTimestamp": <expiration timestamp in RFC3339>,
       *   },
       *   ...
       * }
       * Note: Audience in each TokenRequest should be different and at
       * most one token is empty string. To receive a new token after expiry,
       * RequiresRepublish can be used to trigger NodePublishVolume periodically.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.storage.v1beta1.TokenRequest tokenRequests = 6; */ public Builder addAllTokenRequests( java.lang.Iterable values) { if (tokenRequestsBuilder_ == null) { ensureTokenRequestsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tokenRequests_); onChanged(); } else { tokenRequestsBuilder_.addAllMessages(values); } return this; } /** * * *
       * TokenRequests indicates the CSI driver needs pods' service account
       * tokens it is mounting volume for to do necessary authentication. Kubelet
       * will pass the tokens in VolumeContext in the CSI NodePublishVolume calls.
       * The CSI driver should parse and validate the following VolumeContext:
       * "csi.storage.k8s.io/serviceAccount.tokens": {
       *   "<audience>": {
       *     "token": <token>,
       *     "expirationTimestamp": <expiration timestamp in RFC3339>,
       *   },
       *   ...
       * }
       * Note: Audience in each TokenRequest should be different and at
       * most one token is empty string. To receive a new token after expiry,
       * RequiresRepublish can be used to trigger NodePublishVolume periodically.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.storage.v1beta1.TokenRequest tokenRequests = 6; */ public Builder clearTokenRequests() { if (tokenRequestsBuilder_ == null) { tokenRequests_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { tokenRequestsBuilder_.clear(); } return this; } /** * * *
       * TokenRequests indicates the CSI driver needs pods' service account
       * tokens it is mounting volume for to do necessary authentication. Kubelet
       * will pass the tokens in VolumeContext in the CSI NodePublishVolume calls.
       * The CSI driver should parse and validate the following VolumeContext:
       * "csi.storage.k8s.io/serviceAccount.tokens": {
       *   "<audience>": {
       *     "token": <token>,
       *     "expirationTimestamp": <expiration timestamp in RFC3339>,
       *   },
       *   ...
       * }
       * Note: Audience in each TokenRequest should be different and at
       * most one token is empty string. To receive a new token after expiry,
       * RequiresRepublish can be used to trigger NodePublishVolume periodically.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.storage.v1beta1.TokenRequest tokenRequests = 6; */ public Builder removeTokenRequests(int index) { if (tokenRequestsBuilder_ == null) { ensureTokenRequestsIsMutable(); tokenRequests_.remove(index); onChanged(); } else { tokenRequestsBuilder_.remove(index); } return this; } /** * * *
       * TokenRequests indicates the CSI driver needs pods' service account
       * tokens it is mounting volume for to do necessary authentication. Kubelet
       * will pass the tokens in VolumeContext in the CSI NodePublishVolume calls.
       * The CSI driver should parse and validate the following VolumeContext:
       * "csi.storage.k8s.io/serviceAccount.tokens": {
       *   "<audience>": {
       *     "token": <token>,
       *     "expirationTimestamp": <expiration timestamp in RFC3339>,
       *   },
       *   ...
       * }
       * Note: Audience in each TokenRequest should be different and at
       * most one token is empty string. To receive a new token after expiry,
       * RequiresRepublish can be used to trigger NodePublishVolume periodically.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.storage.v1beta1.TokenRequest tokenRequests = 6; */ public io.kubernetes.client.proto.V1beta1Storage.TokenRequest.Builder getTokenRequestsBuilder( int index) { return getTokenRequestsFieldBuilder().getBuilder(index); } /** * * *
       * TokenRequests indicates the CSI driver needs pods' service account
       * tokens it is mounting volume for to do necessary authentication. Kubelet
       * will pass the tokens in VolumeContext in the CSI NodePublishVolume calls.
       * The CSI driver should parse and validate the following VolumeContext:
       * "csi.storage.k8s.io/serviceAccount.tokens": {
       *   "<audience>": {
       *     "token": <token>,
       *     "expirationTimestamp": <expiration timestamp in RFC3339>,
       *   },
       *   ...
       * }
       * Note: Audience in each TokenRequest should be different and at
       * most one token is empty string. To receive a new token after expiry,
       * RequiresRepublish can be used to trigger NodePublishVolume periodically.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.storage.v1beta1.TokenRequest tokenRequests = 6; */ public io.kubernetes.client.proto.V1beta1Storage.TokenRequestOrBuilder getTokenRequestsOrBuilder(int index) { if (tokenRequestsBuilder_ == null) { return tokenRequests_.get(index); } else { return tokenRequestsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * TokenRequests indicates the CSI driver needs pods' service account
       * tokens it is mounting volume for to do necessary authentication. Kubelet
       * will pass the tokens in VolumeContext in the CSI NodePublishVolume calls.
       * The CSI driver should parse and validate the following VolumeContext:
       * "csi.storage.k8s.io/serviceAccount.tokens": {
       *   "<audience>": {
       *     "token": <token>,
       *     "expirationTimestamp": <expiration timestamp in RFC3339>,
       *   },
       *   ...
       * }
       * Note: Audience in each TokenRequest should be different and at
       * most one token is empty string. To receive a new token after expiry,
       * RequiresRepublish can be used to trigger NodePublishVolume periodically.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.storage.v1beta1.TokenRequest tokenRequests = 6; */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Storage.TokenRequestOrBuilder> getTokenRequestsOrBuilderList() { if (tokenRequestsBuilder_ != null) { return tokenRequestsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(tokenRequests_); } } /** * * *
       * TokenRequests indicates the CSI driver needs pods' service account
       * tokens it is mounting volume for to do necessary authentication. Kubelet
       * will pass the tokens in VolumeContext in the CSI NodePublishVolume calls.
       * The CSI driver should parse and validate the following VolumeContext:
       * "csi.storage.k8s.io/serviceAccount.tokens": {
       *   "<audience>": {
       *     "token": <token>,
       *     "expirationTimestamp": <expiration timestamp in RFC3339>,
       *   },
       *   ...
       * }
       * Note: Audience in each TokenRequest should be different and at
       * most one token is empty string. To receive a new token after expiry,
       * RequiresRepublish can be used to trigger NodePublishVolume periodically.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.storage.v1beta1.TokenRequest tokenRequests = 6; */ public io.kubernetes.client.proto.V1beta1Storage.TokenRequest.Builder addTokenRequestsBuilder() { return getTokenRequestsFieldBuilder() .addBuilder( io.kubernetes.client.proto.V1beta1Storage.TokenRequest.getDefaultInstance()); } /** * * *
       * TokenRequests indicates the CSI driver needs pods' service account
       * tokens it is mounting volume for to do necessary authentication. Kubelet
       * will pass the tokens in VolumeContext in the CSI NodePublishVolume calls.
       * The CSI driver should parse and validate the following VolumeContext:
       * "csi.storage.k8s.io/serviceAccount.tokens": {
       *   "<audience>": {
       *     "token": <token>,
       *     "expirationTimestamp": <expiration timestamp in RFC3339>,
       *   },
       *   ...
       * }
       * Note: Audience in each TokenRequest should be different and at
       * most one token is empty string. To receive a new token after expiry,
       * RequiresRepublish can be used to trigger NodePublishVolume periodically.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.storage.v1beta1.TokenRequest tokenRequests = 6; */ public io.kubernetes.client.proto.V1beta1Storage.TokenRequest.Builder addTokenRequestsBuilder( int index) { return getTokenRequestsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1beta1Storage.TokenRequest.getDefaultInstance()); } /** * * *
       * TokenRequests indicates the CSI driver needs pods' service account
       * tokens it is mounting volume for to do necessary authentication. Kubelet
       * will pass the tokens in VolumeContext in the CSI NodePublishVolume calls.
       * The CSI driver should parse and validate the following VolumeContext:
       * "csi.storage.k8s.io/serviceAccount.tokens": {
       *   "<audience>": {
       *     "token": <token>,
       *     "expirationTimestamp": <expiration timestamp in RFC3339>,
       *   },
       *   ...
       * }
       * Note: Audience in each TokenRequest should be different and at
       * most one token is empty string. To receive a new token after expiry,
       * RequiresRepublish can be used to trigger NodePublishVolume periodically.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.storage.v1beta1.TokenRequest tokenRequests = 6; */ public java.util.List getTokenRequestsBuilderList() { return getTokenRequestsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.TokenRequest, io.kubernetes.client.proto.V1beta1Storage.TokenRequest.Builder, io.kubernetes.client.proto.V1beta1Storage.TokenRequestOrBuilder> getTokenRequestsFieldBuilder() { if (tokenRequestsBuilder_ == null) { tokenRequestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.TokenRequest, io.kubernetes.client.proto.V1beta1Storage.TokenRequest.Builder, io.kubernetes.client.proto.V1beta1Storage.TokenRequestOrBuilder>( tokenRequests_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), isClean()); tokenRequests_ = null; } return tokenRequestsBuilder_; } private boolean requiresRepublish_; /** * * *
       * RequiresRepublish indicates the CSI driver wants `NodePublishVolume`
       * being periodically called to reflect any possible change in the mounted
       * volume. This field defaults to false.
       * Note: After a successful initial NodePublishVolume call, subsequent calls
       * to NodePublishVolume should only update the contents of the volume. New
       * mount points will not be seen by a running container.
       * +optional
       * 
* * optional bool requiresRepublish = 7; */ public boolean hasRequiresRepublish() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
       * RequiresRepublish indicates the CSI driver wants `NodePublishVolume`
       * being periodically called to reflect any possible change in the mounted
       * volume. This field defaults to false.
       * Note: After a successful initial NodePublishVolume call, subsequent calls
       * to NodePublishVolume should only update the contents of the volume. New
       * mount points will not be seen by a running container.
       * +optional
       * 
* * optional bool requiresRepublish = 7; */ public boolean getRequiresRepublish() { return requiresRepublish_; } /** * * *
       * RequiresRepublish indicates the CSI driver wants `NodePublishVolume`
       * being periodically called to reflect any possible change in the mounted
       * volume. This field defaults to false.
       * Note: After a successful initial NodePublishVolume call, subsequent calls
       * to NodePublishVolume should only update the contents of the volume. New
       * mount points will not be seen by a running container.
       * +optional
       * 
* * optional bool requiresRepublish = 7; */ public Builder setRequiresRepublish(boolean value) { bitField0_ |= 0x00000040; requiresRepublish_ = value; onChanged(); return this; } /** * * *
       * RequiresRepublish indicates the CSI driver wants `NodePublishVolume`
       * being periodically called to reflect any possible change in the mounted
       * volume. This field defaults to false.
       * Note: After a successful initial NodePublishVolume call, subsequent calls
       * to NodePublishVolume should only update the contents of the volume. New
       * mount points will not be seen by a running container.
       * +optional
       * 
* * optional bool requiresRepublish = 7; */ public Builder clearRequiresRepublish() { bitField0_ = (bitField0_ & ~0x00000040); requiresRepublish_ = 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.api.storage.v1beta1.CSIDriverSpec) } // @@protoc_insertion_point(class_scope:k8s.io.api.storage.v1beta1.CSIDriverSpec) private static final io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec(); } public static io.kubernetes.client.proto.V1beta1Storage.CSIDriverSpec getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CSIDriverSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CSIDriverSpec(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.V1beta1Storage.CSIDriverSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CSINodeOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.storage.v1beta1.CSINode) com.google.protobuf.MessageOrBuilder { /** * * *
     * metadata.name must be the Kubernetes node name.
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ boolean hasMetadata(); /** * * *
     * metadata.name must be the Kubernetes node name.
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); /** * * *
     * metadata.name must be the Kubernetes node name.
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * spec is the specification of CSINode
     * 
* * optional .k8s.io.api.storage.v1beta1.CSINodeSpec spec = 2; */ boolean hasSpec(); /** * * *
     * spec is the specification of CSINode
     * 
* * optional .k8s.io.api.storage.v1beta1.CSINodeSpec spec = 2; */ io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec getSpec(); /** * * *
     * spec is the specification of CSINode
     * 
* * optional .k8s.io.api.storage.v1beta1.CSINodeSpec spec = 2; */ io.kubernetes.client.proto.V1beta1Storage.CSINodeSpecOrBuilder getSpecOrBuilder(); } /** * * *
   * DEPRECATED - This group version of CSINode is deprecated by storage/v1/CSINode.
   * See the release notes for more information.
   * CSINode holds information about all CSI drivers installed on a node.
   * CSI drivers do not need to create the CSINode object directly. As long as
   * they use the node-driver-registrar sidecar container, the kubelet will
   * automatically populate the CSINode object for the CSI driver as part of
   * kubelet plugin registration.
   * CSINode has the same name as a node. If the object is missing, it means either
   * there are no CSI Drivers available on the node, or the Kubelet version is low
   * enough that it doesn't create this object.
   * CSINode has an OwnerReference that points to the corresponding node object.
   * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.CSINode} */ public static final class CSINode extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.storage.v1beta1.CSINode) CSINodeOrBuilder { private static final long serialVersionUID = 0L; // Use CSINode.newBuilder() to construct. private CSINode(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CSINode() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CSINode( 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.V1beta1Storage.CSINodeSpec.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = spec_.toBuilder(); } spec_ = input.readMessage( io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(spec_); spec_ = 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.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSINode_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSINode_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.CSINode.class, io.kubernetes.client.proto.V1beta1Storage.CSINode.Builder.class); } private int bitField0_; public static final int METADATA_FIELD_NUMBER = 1; private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; /** * * *
     * metadata.name must be the Kubernetes node name.
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * metadata.name must be the Kubernetes node name.
     * 
* * 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_; } /** * * *
     * metadata.name must be the Kubernetes node name.
     * 
* * 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.V1beta1Storage.CSINodeSpec spec_; /** * * *
     * spec is the specification of CSINode
     * 
* * optional .k8s.io.api.storage.v1beta1.CSINodeSpec spec = 2; */ public boolean hasSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * spec is the specification of CSINode
     * 
* * optional .k8s.io.api.storage.v1beta1.CSINodeSpec spec = 2; */ public io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec getSpec() { return spec_ == null ? io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec.getDefaultInstance() : spec_; } /** * * *
     * spec is the specification of CSINode
     * 
* * optional .k8s.io.api.storage.v1beta1.CSINodeSpec spec = 2; */ public io.kubernetes.client.proto.V1beta1Storage.CSINodeSpecOrBuilder getSpecOrBuilder() { return spec_ == null ? io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec.getDefaultInstance() : spec_; } 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()); } 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()); } 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.V1beta1Storage.CSINode)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Storage.CSINode other = (io.kubernetes.client.proto.V1beta1Storage.CSINode) 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 && 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(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Storage.CSINode parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.CSINode 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.V1beta1Storage.CSINode parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.CSINode 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.V1beta1Storage.CSINode parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.CSINode parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Storage.CSINode parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.CSINode 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.V1beta1Storage.CSINode parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.CSINode 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.V1beta1Storage.CSINode parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.CSINode 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.V1beta1Storage.CSINode 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; } /** * * *
     * DEPRECATED - This group version of CSINode is deprecated by storage/v1/CSINode.
     * See the release notes for more information.
     * CSINode holds information about all CSI drivers installed on a node.
     * CSI drivers do not need to create the CSINode object directly. As long as
     * they use the node-driver-registrar sidecar container, the kubelet will
     * automatically populate the CSINode object for the CSI driver as part of
     * kubelet plugin registration.
     * CSINode has the same name as a node. If the object is missing, it means either
     * there are no CSI Drivers available on the node, or the Kubelet version is low
     * enough that it doesn't create this object.
     * CSINode has an OwnerReference that points to the corresponding node object.
     * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.CSINode} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.storage.v1beta1.CSINode) io.kubernetes.client.proto.V1beta1Storage.CSINodeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSINode_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSINode_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.CSINode.class, io.kubernetes.client.proto.V1beta1Storage.CSINode.Builder.class); } // Construct using io.kubernetes.client.proto.V1beta1Storage.CSINode.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(); } } @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); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSINode_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.CSINode getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Storage.CSINode.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.CSINode build() { io.kubernetes.client.proto.V1beta1Storage.CSINode result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.CSINode buildPartial() { io.kubernetes.client.proto.V1beta1Storage.CSINode result = new io.kubernetes.client.proto.V1beta1Storage.CSINode(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(); } 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.V1beta1Storage.CSINode) { return mergeFrom((io.kubernetes.client.proto.V1beta1Storage.CSINode) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Storage.CSINode other) { if (other == io.kubernetes.client.proto.V1beta1Storage.CSINode.getDefaultInstance()) return this; if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } if (other.hasSpec()) { mergeSpec(other.getSpec()); } 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.V1beta1Storage.CSINode parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Storage.CSINode) 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_; /** * * *
       * metadata.name must be the Kubernetes node name.
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * metadata.name must be the Kubernetes node name.
       * 
* * 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(); } } /** * * *
       * metadata.name must be the Kubernetes node name.
       * 
* * 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; } /** * * *
       * metadata.name must be the Kubernetes node name.
       * 
* * 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; } /** * * *
       * metadata.name must be the Kubernetes node name.
       * 
* * 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; } /** * * *
       * metadata.name must be the Kubernetes node name.
       * 
* * 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; } /** * * *
       * metadata.name must be the Kubernetes node name.
       * 
* * 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(); } /** * * *
       * metadata.name must be the Kubernetes node name.
       * 
* * 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_; } } /** * * *
       * metadata.name must be the Kubernetes node name.
       * 
* * 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.V1beta1Storage.CSINodeSpec spec_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec, io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec.Builder, io.kubernetes.client.proto.V1beta1Storage.CSINodeSpecOrBuilder> specBuilder_; /** * * *
       * spec is the specification of CSINode
       * 
* * optional .k8s.io.api.storage.v1beta1.CSINodeSpec spec = 2; */ public boolean hasSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * spec is the specification of CSINode
       * 
* * optional .k8s.io.api.storage.v1beta1.CSINodeSpec spec = 2; */ public io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec getSpec() { if (specBuilder_ == null) { return spec_ == null ? io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec.getDefaultInstance() : spec_; } else { return specBuilder_.getMessage(); } } /** * * *
       * spec is the specification of CSINode
       * 
* * optional .k8s.io.api.storage.v1beta1.CSINodeSpec spec = 2; */ public Builder setSpec(io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec value) { if (specBuilder_ == null) { if (value == null) { throw new NullPointerException(); } spec_ = value; onChanged(); } else { specBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * spec is the specification of CSINode
       * 
* * optional .k8s.io.api.storage.v1beta1.CSINodeSpec spec = 2; */ public Builder setSpec( io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec.Builder builderForValue) { if (specBuilder_ == null) { spec_ = builderForValue.build(); onChanged(); } else { specBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * spec is the specification of CSINode
       * 
* * optional .k8s.io.api.storage.v1beta1.CSINodeSpec spec = 2; */ public Builder mergeSpec(io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec value) { if (specBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && spec_ != null && spec_ != io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec.getDefaultInstance()) { spec_ = io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec.newBuilder(spec_) .mergeFrom(value) .buildPartial(); } else { spec_ = value; } onChanged(); } else { specBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * spec is the specification of CSINode
       * 
* * optional .k8s.io.api.storage.v1beta1.CSINodeSpec spec = 2; */ public Builder clearSpec() { if (specBuilder_ == null) { spec_ = null; onChanged(); } else { specBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * spec is the specification of CSINode
       * 
* * optional .k8s.io.api.storage.v1beta1.CSINodeSpec spec = 2; */ public io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec.Builder getSpecBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSpecFieldBuilder().getBuilder(); } /** * * *
       * spec is the specification of CSINode
       * 
* * optional .k8s.io.api.storage.v1beta1.CSINodeSpec spec = 2; */ public io.kubernetes.client.proto.V1beta1Storage.CSINodeSpecOrBuilder getSpecOrBuilder() { if (specBuilder_ != null) { return specBuilder_.getMessageOrBuilder(); } else { return spec_ == null ? io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec.getDefaultInstance() : spec_; } } /** * * *
       * spec is the specification of CSINode
       * 
* * optional .k8s.io.api.storage.v1beta1.CSINodeSpec spec = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec, io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec.Builder, io.kubernetes.client.proto.V1beta1Storage.CSINodeSpecOrBuilder> getSpecFieldBuilder() { if (specBuilder_ == null) { specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec, io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec.Builder, io.kubernetes.client.proto.V1beta1Storage.CSINodeSpecOrBuilder>( getSpec(), getParentForChildren(), isClean()); spec_ = null; } return specBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.storage.v1beta1.CSINode) } // @@protoc_insertion_point(class_scope:k8s.io.api.storage.v1beta1.CSINode) private static final io.kubernetes.client.proto.V1beta1Storage.CSINode DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Storage.CSINode(); } public static io.kubernetes.client.proto.V1beta1Storage.CSINode getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CSINode parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CSINode(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.V1beta1Storage.CSINode getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CSINodeDriverOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.storage.v1beta1.CSINodeDriver) com.google.protobuf.MessageOrBuilder { /** * * *
     * This is the name of the CSI driver that this object refers to.
     * This MUST be the same name returned by the CSI GetPluginName() call for
     * that driver.
     * 
* * optional string name = 1; */ boolean hasName(); /** * * *
     * This is the name of the CSI driver that this object refers to.
     * This MUST be the same name returned by the CSI GetPluginName() call for
     * that driver.
     * 
* * optional string name = 1; */ java.lang.String getName(); /** * * *
     * This is the name of the CSI driver that this object refers to.
     * This MUST be the same name returned by the CSI GetPluginName() call for
     * that driver.
     * 
* * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * * *
     * nodeID of the node from the driver point of view.
     * This field enables Kubernetes to communicate with storage systems that do
     * not share the same nomenclature for nodes. For example, Kubernetes may
     * refer to a given node as "node1", but the storage system may refer to
     * the same node as "nodeA". When Kubernetes issues a command to the storage
     * system to attach a volume to a specific node, it can use this field to
     * refer to the node name using the ID that the storage system will
     * understand, e.g. "nodeA" instead of "node1". This field is required.
     * 
* * optional string nodeID = 2; */ boolean hasNodeID(); /** * * *
     * nodeID of the node from the driver point of view.
     * This field enables Kubernetes to communicate with storage systems that do
     * not share the same nomenclature for nodes. For example, Kubernetes may
     * refer to a given node as "node1", but the storage system may refer to
     * the same node as "nodeA". When Kubernetes issues a command to the storage
     * system to attach a volume to a specific node, it can use this field to
     * refer to the node name using the ID that the storage system will
     * understand, e.g. "nodeA" instead of "node1". This field is required.
     * 
* * optional string nodeID = 2; */ java.lang.String getNodeID(); /** * * *
     * nodeID of the node from the driver point of view.
     * This field enables Kubernetes to communicate with storage systems that do
     * not share the same nomenclature for nodes. For example, Kubernetes may
     * refer to a given node as "node1", but the storage system may refer to
     * the same node as "nodeA". When Kubernetes issues a command to the storage
     * system to attach a volume to a specific node, it can use this field to
     * refer to the node name using the ID that the storage system will
     * understand, e.g. "nodeA" instead of "node1". This field is required.
     * 
* * optional string nodeID = 2; */ com.google.protobuf.ByteString getNodeIDBytes(); /** * * *
     * topologyKeys is the list of keys supported by the driver.
     * When a driver is initialized on a cluster, it provides a set of topology
     * keys that it understands (e.g. "company.com/zone", "company.com/region").
     * When a driver is initialized on a node, it provides the same topology keys
     * along with values. Kubelet will expose these topology keys as labels
     * on its own node object.
     * When Kubernetes does topology aware provisioning, it can use this list to
     * determine which labels it should retrieve from the node object and pass
     * back to the driver.
     * It is possible for different nodes to use different topology keys.
     * This can be empty if driver does not support topology.
     * +optional
     * 
* * repeated string topologyKeys = 3; */ java.util.List getTopologyKeysList(); /** * * *
     * topologyKeys is the list of keys supported by the driver.
     * When a driver is initialized on a cluster, it provides a set of topology
     * keys that it understands (e.g. "company.com/zone", "company.com/region").
     * When a driver is initialized on a node, it provides the same topology keys
     * along with values. Kubelet will expose these topology keys as labels
     * on its own node object.
     * When Kubernetes does topology aware provisioning, it can use this list to
     * determine which labels it should retrieve from the node object and pass
     * back to the driver.
     * It is possible for different nodes to use different topology keys.
     * This can be empty if driver does not support topology.
     * +optional
     * 
* * repeated string topologyKeys = 3; */ int getTopologyKeysCount(); /** * * *
     * topologyKeys is the list of keys supported by the driver.
     * When a driver is initialized on a cluster, it provides a set of topology
     * keys that it understands (e.g. "company.com/zone", "company.com/region").
     * When a driver is initialized on a node, it provides the same topology keys
     * along with values. Kubelet will expose these topology keys as labels
     * on its own node object.
     * When Kubernetes does topology aware provisioning, it can use this list to
     * determine which labels it should retrieve from the node object and pass
     * back to the driver.
     * It is possible for different nodes to use different topology keys.
     * This can be empty if driver does not support topology.
     * +optional
     * 
* * repeated string topologyKeys = 3; */ java.lang.String getTopologyKeys(int index); /** * * *
     * topologyKeys is the list of keys supported by the driver.
     * When a driver is initialized on a cluster, it provides a set of topology
     * keys that it understands (e.g. "company.com/zone", "company.com/region").
     * When a driver is initialized on a node, it provides the same topology keys
     * along with values. Kubelet will expose these topology keys as labels
     * on its own node object.
     * When Kubernetes does topology aware provisioning, it can use this list to
     * determine which labels it should retrieve from the node object and pass
     * back to the driver.
     * It is possible for different nodes to use different topology keys.
     * This can be empty if driver does not support topology.
     * +optional
     * 
* * repeated string topologyKeys = 3; */ com.google.protobuf.ByteString getTopologyKeysBytes(int index); /** * * *
     * allocatable represents the volume resources of a node that are available for scheduling.
     * +optional
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeNodeResources allocatable = 4; */ boolean hasAllocatable(); /** * * *
     * allocatable represents the volume resources of a node that are available for scheduling.
     * +optional
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeNodeResources allocatable = 4; */ io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources getAllocatable(); /** * * *
     * allocatable represents the volume resources of a node that are available for scheduling.
     * +optional
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeNodeResources allocatable = 4; */ io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResourcesOrBuilder getAllocatableOrBuilder(); } /** * * *
   * CSINodeDriver holds information about the specification of one CSI driver installed on a node
   * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.CSINodeDriver} */ public static final class CSINodeDriver extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.storage.v1beta1.CSINodeDriver) CSINodeDriverOrBuilder { private static final long serialVersionUID = 0L; // Use CSINodeDriver.newBuilder() to construct. private CSINodeDriver(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CSINodeDriver() { name_ = ""; nodeID_ = ""; topologyKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CSINodeDriver( 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; nodeID_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { topologyKeys_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000004; } topologyKeys_.add(bs); break; } case 34: { io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = allocatable_.toBuilder(); } allocatable_ = input.readMessage( io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(allocatable_); allocatable_ = 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 { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { topologyKeys_ = topologyKeys_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSINodeDriver_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSINodeDriver_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver.class, io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * * *
     * This is the name of the CSI driver that this object refers to.
     * This MUST be the same name returned by the CSI GetPluginName() call for
     * that driver.
     * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * This is the name of the CSI driver that this object refers to.
     * This MUST be the same name returned by the CSI GetPluginName() call for
     * that driver.
     * 
* * 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; } } /** * * *
     * This is the name of the CSI driver that this object refers to.
     * This MUST be the same name returned by the CSI GetPluginName() call for
     * that driver.
     * 
* * 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 NODEID_FIELD_NUMBER = 2; private volatile java.lang.Object nodeID_; /** * * *
     * nodeID of the node from the driver point of view.
     * This field enables Kubernetes to communicate with storage systems that do
     * not share the same nomenclature for nodes. For example, Kubernetes may
     * refer to a given node as "node1", but the storage system may refer to
     * the same node as "nodeA". When Kubernetes issues a command to the storage
     * system to attach a volume to a specific node, it can use this field to
     * refer to the node name using the ID that the storage system will
     * understand, e.g. "nodeA" instead of "node1". This field is required.
     * 
* * optional string nodeID = 2; */ public boolean hasNodeID() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * nodeID of the node from the driver point of view.
     * This field enables Kubernetes to communicate with storage systems that do
     * not share the same nomenclature for nodes. For example, Kubernetes may
     * refer to a given node as "node1", but the storage system may refer to
     * the same node as "nodeA". When Kubernetes issues a command to the storage
     * system to attach a volume to a specific node, it can use this field to
     * refer to the node name using the ID that the storage system will
     * understand, e.g. "nodeA" instead of "node1". This field is required.
     * 
* * optional string nodeID = 2; */ public java.lang.String getNodeID() { java.lang.Object ref = nodeID_; 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()) { nodeID_ = s; } return s; } } /** * * *
     * nodeID of the node from the driver point of view.
     * This field enables Kubernetes to communicate with storage systems that do
     * not share the same nomenclature for nodes. For example, Kubernetes may
     * refer to a given node as "node1", but the storage system may refer to
     * the same node as "nodeA". When Kubernetes issues a command to the storage
     * system to attach a volume to a specific node, it can use this field to
     * refer to the node name using the ID that the storage system will
     * understand, e.g. "nodeA" instead of "node1". This field is required.
     * 
* * optional string nodeID = 2; */ public com.google.protobuf.ByteString getNodeIDBytes() { java.lang.Object ref = nodeID_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nodeID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TOPOLOGYKEYS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList topologyKeys_; /** * * *
     * topologyKeys is the list of keys supported by the driver.
     * When a driver is initialized on a cluster, it provides a set of topology
     * keys that it understands (e.g. "company.com/zone", "company.com/region").
     * When a driver is initialized on a node, it provides the same topology keys
     * along with values. Kubelet will expose these topology keys as labels
     * on its own node object.
     * When Kubernetes does topology aware provisioning, it can use this list to
     * determine which labels it should retrieve from the node object and pass
     * back to the driver.
     * It is possible for different nodes to use different topology keys.
     * This can be empty if driver does not support topology.
     * +optional
     * 
* * repeated string topologyKeys = 3; */ public com.google.protobuf.ProtocolStringList getTopologyKeysList() { return topologyKeys_; } /** * * *
     * topologyKeys is the list of keys supported by the driver.
     * When a driver is initialized on a cluster, it provides a set of topology
     * keys that it understands (e.g. "company.com/zone", "company.com/region").
     * When a driver is initialized on a node, it provides the same topology keys
     * along with values. Kubelet will expose these topology keys as labels
     * on its own node object.
     * When Kubernetes does topology aware provisioning, it can use this list to
     * determine which labels it should retrieve from the node object and pass
     * back to the driver.
     * It is possible for different nodes to use different topology keys.
     * This can be empty if driver does not support topology.
     * +optional
     * 
* * repeated string topologyKeys = 3; */ public int getTopologyKeysCount() { return topologyKeys_.size(); } /** * * *
     * topologyKeys is the list of keys supported by the driver.
     * When a driver is initialized on a cluster, it provides a set of topology
     * keys that it understands (e.g. "company.com/zone", "company.com/region").
     * When a driver is initialized on a node, it provides the same topology keys
     * along with values. Kubelet will expose these topology keys as labels
     * on its own node object.
     * When Kubernetes does topology aware provisioning, it can use this list to
     * determine which labels it should retrieve from the node object and pass
     * back to the driver.
     * It is possible for different nodes to use different topology keys.
     * This can be empty if driver does not support topology.
     * +optional
     * 
* * repeated string topologyKeys = 3; */ public java.lang.String getTopologyKeys(int index) { return topologyKeys_.get(index); } /** * * *
     * topologyKeys is the list of keys supported by the driver.
     * When a driver is initialized on a cluster, it provides a set of topology
     * keys that it understands (e.g. "company.com/zone", "company.com/region").
     * When a driver is initialized on a node, it provides the same topology keys
     * along with values. Kubelet will expose these topology keys as labels
     * on its own node object.
     * When Kubernetes does topology aware provisioning, it can use this list to
     * determine which labels it should retrieve from the node object and pass
     * back to the driver.
     * It is possible for different nodes to use different topology keys.
     * This can be empty if driver does not support topology.
     * +optional
     * 
* * repeated string topologyKeys = 3; */ public com.google.protobuf.ByteString getTopologyKeysBytes(int index) { return topologyKeys_.getByteString(index); } public static final int ALLOCATABLE_FIELD_NUMBER = 4; private io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources allocatable_; /** * * *
     * allocatable represents the volume resources of a node that are available for scheduling.
     * +optional
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeNodeResources allocatable = 4; */ public boolean hasAllocatable() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * allocatable represents the volume resources of a node that are available for scheduling.
     * +optional
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeNodeResources allocatable = 4; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources getAllocatable() { return allocatable_ == null ? io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources.getDefaultInstance() : allocatable_; } /** * * *
     * allocatable represents the volume resources of a node that are available for scheduling.
     * +optional
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeNodeResources allocatable = 4; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResourcesOrBuilder getAllocatableOrBuilder() { return allocatable_ == null ? io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources.getDefaultInstance() : allocatable_; } 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, nodeID_); } for (int i = 0; i < topologyKeys_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, topologyKeys_.getRaw(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(4, getAllocatable()); } 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, nodeID_); } { int dataSize = 0; for (int i = 0; i < topologyKeys_.size(); i++) { dataSize += computeStringSizeNoTag(topologyKeys_.getRaw(i)); } size += dataSize; size += 1 * getTopologyKeysList().size(); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAllocatable()); } 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.V1beta1Storage.CSINodeDriver)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver other = (io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName().equals(other.getName()); } result = result && (hasNodeID() == other.hasNodeID()); if (hasNodeID()) { result = result && getNodeID().equals(other.getNodeID()); } result = result && getTopologyKeysList().equals(other.getTopologyKeysList()); result = result && (hasAllocatable() == other.hasAllocatable()); if (hasAllocatable()) { result = result && getAllocatable().equals(other.getAllocatable()); } 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 (hasNodeID()) { hash = (37 * hash) + NODEID_FIELD_NUMBER; hash = (53 * hash) + getNodeID().hashCode(); } if (getTopologyKeysCount() > 0) { hash = (37 * hash) + TOPOLOGYKEYS_FIELD_NUMBER; hash = (53 * hash) + getTopologyKeysList().hashCode(); } if (hasAllocatable()) { hash = (37 * hash) + ALLOCATABLE_FIELD_NUMBER; hash = (53 * hash) + getAllocatable().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver 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.V1beta1Storage.CSINodeDriver parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver 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.V1beta1Storage.CSINodeDriver parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver 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.V1beta1Storage.CSINodeDriver parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver 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.V1beta1Storage.CSINodeDriver parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver 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.V1beta1Storage.CSINodeDriver 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; } /** * * *
     * CSINodeDriver holds information about the specification of one CSI driver installed on a node
     * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.CSINodeDriver} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.storage.v1beta1.CSINodeDriver) io.kubernetes.client.proto.V1beta1Storage.CSINodeDriverOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSINodeDriver_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSINodeDriver_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver.class, io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver.Builder.class); } // Construct using io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getAllocatableFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); nodeID_ = ""; bitField0_ = (bitField0_ & ~0x00000002); topologyKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); if (allocatableBuilder_ == null) { allocatable_ = null; } else { allocatableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSINodeDriver_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver build() { io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver buildPartial() { io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver result = new io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver(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.nodeID_ = nodeID_; if (((bitField0_ & 0x00000004) == 0x00000004)) { topologyKeys_ = topologyKeys_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.topologyKeys_ = topologyKeys_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } if (allocatableBuilder_ == null) { result.allocatable_ = allocatable_; } else { result.allocatable_ = allocatableBuilder_.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.V1beta1Storage.CSINodeDriver) { return mergeFrom((io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver other) { if (other == io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasNodeID()) { bitField0_ |= 0x00000002; nodeID_ = other.nodeID_; onChanged(); } if (!other.topologyKeys_.isEmpty()) { if (topologyKeys_.isEmpty()) { topologyKeys_ = other.topologyKeys_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureTopologyKeysIsMutable(); topologyKeys_.addAll(other.topologyKeys_); } onChanged(); } if (other.hasAllocatable()) { mergeAllocatable(other.getAllocatable()); } 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.V1beta1Storage.CSINodeDriver parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * * *
       * This is the name of the CSI driver that this object refers to.
       * This MUST be the same name returned by the CSI GetPluginName() call for
       * that driver.
       * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * This is the name of the CSI driver that this object refers to.
       * This MUST be the same name returned by the CSI GetPluginName() call for
       * that driver.
       * 
* * 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; } } /** * * *
       * This is the name of the CSI driver that this object refers to.
       * This MUST be the same name returned by the CSI GetPluginName() call for
       * that driver.
       * 
* * 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; } } /** * * *
       * This is the name of the CSI driver that this object refers to.
       * This MUST be the same name returned by the CSI GetPluginName() call for
       * that driver.
       * 
* * optional string name = 1; */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * * *
       * This is the name of the CSI driver that this object refers to.
       * This MUST be the same name returned by the CSI GetPluginName() call for
       * that driver.
       * 
* * optional string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * * *
       * This is the name of the CSI driver that this object refers to.
       * This MUST be the same name returned by the CSI GetPluginName() call for
       * that driver.
       * 
* * 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 nodeID_ = ""; /** * * *
       * nodeID of the node from the driver point of view.
       * This field enables Kubernetes to communicate with storage systems that do
       * not share the same nomenclature for nodes. For example, Kubernetes may
       * refer to a given node as "node1", but the storage system may refer to
       * the same node as "nodeA". When Kubernetes issues a command to the storage
       * system to attach a volume to a specific node, it can use this field to
       * refer to the node name using the ID that the storage system will
       * understand, e.g. "nodeA" instead of "node1". This field is required.
       * 
* * optional string nodeID = 2; */ public boolean hasNodeID() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * nodeID of the node from the driver point of view.
       * This field enables Kubernetes to communicate with storage systems that do
       * not share the same nomenclature for nodes. For example, Kubernetes may
       * refer to a given node as "node1", but the storage system may refer to
       * the same node as "nodeA". When Kubernetes issues a command to the storage
       * system to attach a volume to a specific node, it can use this field to
       * refer to the node name using the ID that the storage system will
       * understand, e.g. "nodeA" instead of "node1". This field is required.
       * 
* * optional string nodeID = 2; */ public java.lang.String getNodeID() { java.lang.Object ref = nodeID_; 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()) { nodeID_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * nodeID of the node from the driver point of view.
       * This field enables Kubernetes to communicate with storage systems that do
       * not share the same nomenclature for nodes. For example, Kubernetes may
       * refer to a given node as "node1", but the storage system may refer to
       * the same node as "nodeA". When Kubernetes issues a command to the storage
       * system to attach a volume to a specific node, it can use this field to
       * refer to the node name using the ID that the storage system will
       * understand, e.g. "nodeA" instead of "node1". This field is required.
       * 
* * optional string nodeID = 2; */ public com.google.protobuf.ByteString getNodeIDBytes() { java.lang.Object ref = nodeID_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nodeID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * nodeID of the node from the driver point of view.
       * This field enables Kubernetes to communicate with storage systems that do
       * not share the same nomenclature for nodes. For example, Kubernetes may
       * refer to a given node as "node1", but the storage system may refer to
       * the same node as "nodeA". When Kubernetes issues a command to the storage
       * system to attach a volume to a specific node, it can use this field to
       * refer to the node name using the ID that the storage system will
       * understand, e.g. "nodeA" instead of "node1". This field is required.
       * 
* * optional string nodeID = 2; */ public Builder setNodeID(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; nodeID_ = value; onChanged(); return this; } /** * * *
       * nodeID of the node from the driver point of view.
       * This field enables Kubernetes to communicate with storage systems that do
       * not share the same nomenclature for nodes. For example, Kubernetes may
       * refer to a given node as "node1", but the storage system may refer to
       * the same node as "nodeA". When Kubernetes issues a command to the storage
       * system to attach a volume to a specific node, it can use this field to
       * refer to the node name using the ID that the storage system will
       * understand, e.g. "nodeA" instead of "node1". This field is required.
       * 
* * optional string nodeID = 2; */ public Builder clearNodeID() { bitField0_ = (bitField0_ & ~0x00000002); nodeID_ = getDefaultInstance().getNodeID(); onChanged(); return this; } /** * * *
       * nodeID of the node from the driver point of view.
       * This field enables Kubernetes to communicate with storage systems that do
       * not share the same nomenclature for nodes. For example, Kubernetes may
       * refer to a given node as "node1", but the storage system may refer to
       * the same node as "nodeA". When Kubernetes issues a command to the storage
       * system to attach a volume to a specific node, it can use this field to
       * refer to the node name using the ID that the storage system will
       * understand, e.g. "nodeA" instead of "node1". This field is required.
       * 
* * optional string nodeID = 2; */ public Builder setNodeIDBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; nodeID_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList topologyKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTopologyKeysIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { topologyKeys_ = new com.google.protobuf.LazyStringArrayList(topologyKeys_); bitField0_ |= 0x00000004; } } /** * * *
       * topologyKeys is the list of keys supported by the driver.
       * When a driver is initialized on a cluster, it provides a set of topology
       * keys that it understands (e.g. "company.com/zone", "company.com/region").
       * When a driver is initialized on a node, it provides the same topology keys
       * along with values. Kubelet will expose these topology keys as labels
       * on its own node object.
       * When Kubernetes does topology aware provisioning, it can use this list to
       * determine which labels it should retrieve from the node object and pass
       * back to the driver.
       * It is possible for different nodes to use different topology keys.
       * This can be empty if driver does not support topology.
       * +optional
       * 
* * repeated string topologyKeys = 3; */ public com.google.protobuf.ProtocolStringList getTopologyKeysList() { return topologyKeys_.getUnmodifiableView(); } /** * * *
       * topologyKeys is the list of keys supported by the driver.
       * When a driver is initialized on a cluster, it provides a set of topology
       * keys that it understands (e.g. "company.com/zone", "company.com/region").
       * When a driver is initialized on a node, it provides the same topology keys
       * along with values. Kubelet will expose these topology keys as labels
       * on its own node object.
       * When Kubernetes does topology aware provisioning, it can use this list to
       * determine which labels it should retrieve from the node object and pass
       * back to the driver.
       * It is possible for different nodes to use different topology keys.
       * This can be empty if driver does not support topology.
       * +optional
       * 
* * repeated string topologyKeys = 3; */ public int getTopologyKeysCount() { return topologyKeys_.size(); } /** * * *
       * topologyKeys is the list of keys supported by the driver.
       * When a driver is initialized on a cluster, it provides a set of topology
       * keys that it understands (e.g. "company.com/zone", "company.com/region").
       * When a driver is initialized on a node, it provides the same topology keys
       * along with values. Kubelet will expose these topology keys as labels
       * on its own node object.
       * When Kubernetes does topology aware provisioning, it can use this list to
       * determine which labels it should retrieve from the node object and pass
       * back to the driver.
       * It is possible for different nodes to use different topology keys.
       * This can be empty if driver does not support topology.
       * +optional
       * 
* * repeated string topologyKeys = 3; */ public java.lang.String getTopologyKeys(int index) { return topologyKeys_.get(index); } /** * * *
       * topologyKeys is the list of keys supported by the driver.
       * When a driver is initialized on a cluster, it provides a set of topology
       * keys that it understands (e.g. "company.com/zone", "company.com/region").
       * When a driver is initialized on a node, it provides the same topology keys
       * along with values. Kubelet will expose these topology keys as labels
       * on its own node object.
       * When Kubernetes does topology aware provisioning, it can use this list to
       * determine which labels it should retrieve from the node object and pass
       * back to the driver.
       * It is possible for different nodes to use different topology keys.
       * This can be empty if driver does not support topology.
       * +optional
       * 
* * repeated string topologyKeys = 3; */ public com.google.protobuf.ByteString getTopologyKeysBytes(int index) { return topologyKeys_.getByteString(index); } /** * * *
       * topologyKeys is the list of keys supported by the driver.
       * When a driver is initialized on a cluster, it provides a set of topology
       * keys that it understands (e.g. "company.com/zone", "company.com/region").
       * When a driver is initialized on a node, it provides the same topology keys
       * along with values. Kubelet will expose these topology keys as labels
       * on its own node object.
       * When Kubernetes does topology aware provisioning, it can use this list to
       * determine which labels it should retrieve from the node object and pass
       * back to the driver.
       * It is possible for different nodes to use different topology keys.
       * This can be empty if driver does not support topology.
       * +optional
       * 
* * repeated string topologyKeys = 3; */ public Builder setTopologyKeys(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTopologyKeysIsMutable(); topologyKeys_.set(index, value); onChanged(); return this; } /** * * *
       * topologyKeys is the list of keys supported by the driver.
       * When a driver is initialized on a cluster, it provides a set of topology
       * keys that it understands (e.g. "company.com/zone", "company.com/region").
       * When a driver is initialized on a node, it provides the same topology keys
       * along with values. Kubelet will expose these topology keys as labels
       * on its own node object.
       * When Kubernetes does topology aware provisioning, it can use this list to
       * determine which labels it should retrieve from the node object and pass
       * back to the driver.
       * It is possible for different nodes to use different topology keys.
       * This can be empty if driver does not support topology.
       * +optional
       * 
* * repeated string topologyKeys = 3; */ public Builder addTopologyKeys(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTopologyKeysIsMutable(); topologyKeys_.add(value); onChanged(); return this; } /** * * *
       * topologyKeys is the list of keys supported by the driver.
       * When a driver is initialized on a cluster, it provides a set of topology
       * keys that it understands (e.g. "company.com/zone", "company.com/region").
       * When a driver is initialized on a node, it provides the same topology keys
       * along with values. Kubelet will expose these topology keys as labels
       * on its own node object.
       * When Kubernetes does topology aware provisioning, it can use this list to
       * determine which labels it should retrieve from the node object and pass
       * back to the driver.
       * It is possible for different nodes to use different topology keys.
       * This can be empty if driver does not support topology.
       * +optional
       * 
* * repeated string topologyKeys = 3; */ public Builder addAllTopologyKeys(java.lang.Iterable values) { ensureTopologyKeysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, topologyKeys_); onChanged(); return this; } /** * * *
       * topologyKeys is the list of keys supported by the driver.
       * When a driver is initialized on a cluster, it provides a set of topology
       * keys that it understands (e.g. "company.com/zone", "company.com/region").
       * When a driver is initialized on a node, it provides the same topology keys
       * along with values. Kubelet will expose these topology keys as labels
       * on its own node object.
       * When Kubernetes does topology aware provisioning, it can use this list to
       * determine which labels it should retrieve from the node object and pass
       * back to the driver.
       * It is possible for different nodes to use different topology keys.
       * This can be empty if driver does not support topology.
       * +optional
       * 
* * repeated string topologyKeys = 3; */ public Builder clearTopologyKeys() { topologyKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
       * topologyKeys is the list of keys supported by the driver.
       * When a driver is initialized on a cluster, it provides a set of topology
       * keys that it understands (e.g. "company.com/zone", "company.com/region").
       * When a driver is initialized on a node, it provides the same topology keys
       * along with values. Kubelet will expose these topology keys as labels
       * on its own node object.
       * When Kubernetes does topology aware provisioning, it can use this list to
       * determine which labels it should retrieve from the node object and pass
       * back to the driver.
       * It is possible for different nodes to use different topology keys.
       * This can be empty if driver does not support topology.
       * +optional
       * 
* * repeated string topologyKeys = 3; */ public Builder addTopologyKeysBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureTopologyKeysIsMutable(); topologyKeys_.add(value); onChanged(); return this; } private io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources allocatable_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources, io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources.Builder, io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResourcesOrBuilder> allocatableBuilder_; /** * * *
       * allocatable represents the volume resources of a node that are available for scheduling.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeNodeResources allocatable = 4; */ public boolean hasAllocatable() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * allocatable represents the volume resources of a node that are available for scheduling.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeNodeResources allocatable = 4; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources getAllocatable() { if (allocatableBuilder_ == null) { return allocatable_ == null ? io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources.getDefaultInstance() : allocatable_; } else { return allocatableBuilder_.getMessage(); } } /** * * *
       * allocatable represents the volume resources of a node that are available for scheduling.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeNodeResources allocatable = 4; */ public Builder setAllocatable( io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources value) { if (allocatableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } allocatable_ = value; onChanged(); } else { allocatableBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * allocatable represents the volume resources of a node that are available for scheduling.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeNodeResources allocatable = 4; */ public Builder setAllocatable( io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources.Builder builderForValue) { if (allocatableBuilder_ == null) { allocatable_ = builderForValue.build(); onChanged(); } else { allocatableBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * * *
       * allocatable represents the volume resources of a node that are available for scheduling.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeNodeResources allocatable = 4; */ public Builder mergeAllocatable( io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources value) { if (allocatableBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && allocatable_ != null && allocatable_ != io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources .getDefaultInstance()) { allocatable_ = io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources.newBuilder( allocatable_) .mergeFrom(value) .buildPartial(); } else { allocatable_ = value; } onChanged(); } else { allocatableBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * allocatable represents the volume resources of a node that are available for scheduling.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeNodeResources allocatable = 4; */ public Builder clearAllocatable() { if (allocatableBuilder_ == null) { allocatable_ = null; onChanged(); } else { allocatableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * * *
       * allocatable represents the volume resources of a node that are available for scheduling.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeNodeResources allocatable = 4; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources.Builder getAllocatableBuilder() { bitField0_ |= 0x00000008; onChanged(); return getAllocatableFieldBuilder().getBuilder(); } /** * * *
       * allocatable represents the volume resources of a node that are available for scheduling.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeNodeResources allocatable = 4; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResourcesOrBuilder getAllocatableOrBuilder() { if (allocatableBuilder_ != null) { return allocatableBuilder_.getMessageOrBuilder(); } else { return allocatable_ == null ? io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources.getDefaultInstance() : allocatable_; } } /** * * *
       * allocatable represents the volume resources of a node that are available for scheduling.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeNodeResources allocatable = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources, io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources.Builder, io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResourcesOrBuilder> getAllocatableFieldBuilder() { if (allocatableBuilder_ == null) { allocatableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources, io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources.Builder, io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResourcesOrBuilder>( getAllocatable(), getParentForChildren(), isClean()); allocatable_ = null; } return allocatableBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.storage.v1beta1.CSINodeDriver) } // @@protoc_insertion_point(class_scope:k8s.io.api.storage.v1beta1.CSINodeDriver) private static final io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver(); } public static io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CSINodeDriver parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CSINodeDriver(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.V1beta1Storage.CSINodeDriver getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CSINodeListOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.storage.v1beta1.CSINodeList) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard list 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 list 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 list 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 is the list of CSINode
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSINode items = 2; */ java.util.List getItemsList(); /** * * *
     * items is the list of CSINode
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSINode items = 2; */ io.kubernetes.client.proto.V1beta1Storage.CSINode getItems(int index); /** * * *
     * items is the list of CSINode
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSINode items = 2; */ int getItemsCount(); /** * * *
     * items is the list of CSINode
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSINode items = 2; */ java.util.List getItemsOrBuilderList(); /** * * *
     * items is the list of CSINode
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSINode items = 2; */ io.kubernetes.client.proto.V1beta1Storage.CSINodeOrBuilder getItemsOrBuilder(int index); } /** * * *
   * CSINodeList is a collection of CSINode objects.
   * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.CSINodeList} */ public static final class CSINodeList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.storage.v1beta1.CSINodeList) CSINodeListOrBuilder { private static final long serialVersionUID = 0L; // Use CSINodeList.newBuilder() to construct. private CSINodeList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CSINodeList() { items_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CSINodeList( 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(); mutable_bitField0_ |= 0x00000002; } items_.add( input.readMessage( io.kubernetes.client.proto.V1beta1Storage.CSINode.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.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSINodeList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSINodeList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.CSINodeList.class, io.kubernetes.client.proto.V1beta1Storage.CSINodeList.Builder.class); } private int bitField0_; public static final int METADATA_FIELD_NUMBER = 1; private io.kubernetes.client.proto.Meta.ListMeta metadata_; /** * * *
     * Standard list 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 list 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 list 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 is the list of CSINode
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSINode items = 2; */ public java.util.List getItemsList() { return items_; } /** * * *
     * items is the list of CSINode
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSINode items = 2; */ public java.util.List getItemsOrBuilderList() { return items_; } /** * * *
     * items is the list of CSINode
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSINode items = 2; */ public int getItemsCount() { return items_.size(); } /** * * *
     * items is the list of CSINode
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSINode items = 2; */ public io.kubernetes.client.proto.V1beta1Storage.CSINode getItems(int index) { return items_.get(index); } /** * * *
     * items is the list of CSINode
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSINode items = 2; */ public io.kubernetes.client.proto.V1beta1Storage.CSINodeOrBuilder 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.V1beta1Storage.CSINodeList)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Storage.CSINodeList other = (io.kubernetes.client.proto.V1beta1Storage.CSINodeList) 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.V1beta1Storage.CSINodeList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.CSINodeList 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.V1beta1Storage.CSINodeList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.CSINodeList 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.V1beta1Storage.CSINodeList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.CSINodeList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Storage.CSINodeList parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.CSINodeList 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.V1beta1Storage.CSINodeList parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.CSINodeList 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.V1beta1Storage.CSINodeList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.CSINodeList 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.V1beta1Storage.CSINodeList 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; } /** * * *
     * CSINodeList is a collection of CSINode objects.
     * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.CSINodeList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.storage.v1beta1.CSINodeList) io.kubernetes.client.proto.V1beta1Storage.CSINodeListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSINodeList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSINodeList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.CSINodeList.class, io.kubernetes.client.proto.V1beta1Storage.CSINodeList.Builder.class); } // Construct using io.kubernetes.client.proto.V1beta1Storage.CSINodeList.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.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSINodeList_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.CSINodeList getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Storage.CSINodeList.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.CSINodeList build() { io.kubernetes.client.proto.V1beta1Storage.CSINodeList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.CSINodeList buildPartial() { io.kubernetes.client.proto.V1beta1Storage.CSINodeList result = new io.kubernetes.client.proto.V1beta1Storage.CSINodeList(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.V1beta1Storage.CSINodeList) { return mergeFrom((io.kubernetes.client.proto.V1beta1Storage.CSINodeList) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Storage.CSINodeList other) { if (other == io.kubernetes.client.proto.V1beta1Storage.CSINodeList.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.V1beta1Storage.CSINodeList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Storage.CSINodeList) 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 list 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 list 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 list 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 list 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 list 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 list 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 list 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 list 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 list 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 items_ = java.util.Collections.emptyList(); private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { items_ = new java.util.ArrayList(items_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.CSINode, io.kubernetes.client.proto.V1beta1Storage.CSINode.Builder, io.kubernetes.client.proto.V1beta1Storage.CSINodeOrBuilder> itemsBuilder_; /** * * *
       * items is the list of CSINode
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINode items = 2; */ public java.util.List getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { return itemsBuilder_.getMessageList(); } } /** * * *
       * items is the list of CSINode
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINode items = 2; */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** * * *
       * items is the list of CSINode
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINode items = 2; */ public io.kubernetes.client.proto.V1beta1Storage.CSINode getItems(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** * * *
       * items is the list of CSINode
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINode items = 2; */ public Builder setItems(int index, io.kubernetes.client.proto.V1beta1Storage.CSINode value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.set(index, value); onChanged(); } else { itemsBuilder_.setMessage(index, value); } return this; } /** * * *
       * items is the list of CSINode
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINode items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.V1beta1Storage.CSINode.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * items is the list of CSINode
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINode items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1beta1Storage.CSINode value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(value); onChanged(); } else { itemsBuilder_.addMessage(value); } return this; } /** * * *
       * items is the list of CSINode
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINode items = 2; */ public Builder addItems(int index, io.kubernetes.client.proto.V1beta1Storage.CSINode value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(index, value); onChanged(); } else { itemsBuilder_.addMessage(index, value); } return this; } /** * * *
       * items is the list of CSINode
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINode items = 2; */ public Builder addItems( io.kubernetes.client.proto.V1beta1Storage.CSINode.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * items is the list of CSINode
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINode items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.V1beta1Storage.CSINode.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * items is the list of CSINode
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINode items = 2; */ public Builder addAllItems( java.lang.Iterable values) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); onChanged(); } else { itemsBuilder_.addAllMessages(values); } return this; } /** * * *
       * items is the list of CSINode
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINode items = 2; */ public Builder clearItems() { if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { itemsBuilder_.clear(); } return this; } /** * * *
       * items is the list of CSINode
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINode items = 2; */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.remove(index); onChanged(); } else { itemsBuilder_.remove(index); } return this; } /** * * *
       * items is the list of CSINode
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINode items = 2; */ public io.kubernetes.client.proto.V1beta1Storage.CSINode.Builder getItemsBuilder(int index) { return getItemsFieldBuilder().getBuilder(index); } /** * * *
       * items is the list of CSINode
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINode items = 2; */ public io.kubernetes.client.proto.V1beta1Storage.CSINodeOrBuilder getItemsOrBuilder( int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * items is the list of CSINode
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINode items = 2; */ public java.util.List getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(items_); } } /** * * *
       * items is the list of CSINode
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINode items = 2; */ public io.kubernetes.client.proto.V1beta1Storage.CSINode.Builder addItemsBuilder() { return getItemsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1beta1Storage.CSINode.getDefaultInstance()); } /** * * *
       * items is the list of CSINode
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINode items = 2; */ public io.kubernetes.client.proto.V1beta1Storage.CSINode.Builder addItemsBuilder(int index) { return getItemsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1beta1Storage.CSINode.getDefaultInstance()); } /** * * *
       * items is the list of CSINode
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINode items = 2; */ public java.util.List getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.CSINode, io.kubernetes.client.proto.V1beta1Storage.CSINode.Builder, io.kubernetes.client.proto.V1beta1Storage.CSINodeOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.CSINode, io.kubernetes.client.proto.V1beta1Storage.CSINode.Builder, io.kubernetes.client.proto.V1beta1Storage.CSINodeOrBuilder>( 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.api.storage.v1beta1.CSINodeList) } // @@protoc_insertion_point(class_scope:k8s.io.api.storage.v1beta1.CSINodeList) private static final io.kubernetes.client.proto.V1beta1Storage.CSINodeList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Storage.CSINodeList(); } public static io.kubernetes.client.proto.V1beta1Storage.CSINodeList getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CSINodeList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CSINodeList(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.V1beta1Storage.CSINodeList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CSINodeSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.storage.v1beta1.CSINodeSpec) com.google.protobuf.MessageOrBuilder { /** * * *
     * drivers is a list of information of all CSI Drivers existing on a node.
     * If all drivers in the list are uninstalled, this can become empty.
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSINodeDriver drivers = 1; */ java.util.List getDriversList(); /** * * *
     * drivers is a list of information of all CSI Drivers existing on a node.
     * If all drivers in the list are uninstalled, this can become empty.
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSINodeDriver drivers = 1; */ io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver getDrivers(int index); /** * * *
     * drivers is a list of information of all CSI Drivers existing on a node.
     * If all drivers in the list are uninstalled, this can become empty.
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSINodeDriver drivers = 1; */ int getDriversCount(); /** * * *
     * drivers is a list of information of all CSI Drivers existing on a node.
     * If all drivers in the list are uninstalled, this can become empty.
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSINodeDriver drivers = 1; */ java.util.List getDriversOrBuilderList(); /** * * *
     * drivers is a list of information of all CSI Drivers existing on a node.
     * If all drivers in the list are uninstalled, this can become empty.
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSINodeDriver drivers = 1; */ io.kubernetes.client.proto.V1beta1Storage.CSINodeDriverOrBuilder getDriversOrBuilder(int index); } /** * * *
   * CSINodeSpec holds information about the specification of all CSI drivers installed on a node
   * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.CSINodeSpec} */ public static final class CSINodeSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.storage.v1beta1.CSINodeSpec) CSINodeSpecOrBuilder { private static final long serialVersionUID = 0L; // Use CSINodeSpec.newBuilder() to construct. private CSINodeSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CSINodeSpec() { drivers_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CSINodeSpec( 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)) { drivers_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver>(); mutable_bitField0_ |= 0x00000001; } drivers_.add( input.readMessage( io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver.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_ & 0x00000001) == 0x00000001)) { drivers_ = java.util.Collections.unmodifiableList(drivers_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSINodeSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSINodeSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec.class, io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec.Builder.class); } public static final int DRIVERS_FIELD_NUMBER = 1; private java.util.List drivers_; /** * * *
     * drivers is a list of information of all CSI Drivers existing on a node.
     * If all drivers in the list are uninstalled, this can become empty.
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSINodeDriver drivers = 1; */ public java.util.List getDriversList() { return drivers_; } /** * * *
     * drivers is a list of information of all CSI Drivers existing on a node.
     * If all drivers in the list are uninstalled, this can become empty.
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSINodeDriver drivers = 1; */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Storage.CSINodeDriverOrBuilder> getDriversOrBuilderList() { return drivers_; } /** * * *
     * drivers is a list of information of all CSI Drivers existing on a node.
     * If all drivers in the list are uninstalled, this can become empty.
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSINodeDriver drivers = 1; */ public int getDriversCount() { return drivers_.size(); } /** * * *
     * drivers is a list of information of all CSI Drivers existing on a node.
     * If all drivers in the list are uninstalled, this can become empty.
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSINodeDriver drivers = 1; */ public io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver getDrivers(int index) { return drivers_.get(index); } /** * * *
     * drivers is a list of information of all CSI Drivers existing on a node.
     * If all drivers in the list are uninstalled, this can become empty.
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSINodeDriver drivers = 1; */ public io.kubernetes.client.proto.V1beta1Storage.CSINodeDriverOrBuilder getDriversOrBuilder( int index) { return drivers_.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 { for (int i = 0; i < drivers_.size(); i++) { output.writeMessage(1, drivers_.get(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 < drivers_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, drivers_.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.V1beta1Storage.CSINodeSpec)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec other = (io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec) obj; boolean result = true; result = result && getDriversList().equals(other.getDriversList()); 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 (getDriversCount() > 0) { hash = (37 * hash) + DRIVERS_FIELD_NUMBER; hash = (53 * hash) + getDriversList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec 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.V1beta1Storage.CSINodeSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec 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.V1beta1Storage.CSINodeSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec 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.V1beta1Storage.CSINodeSpec parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec 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.V1beta1Storage.CSINodeSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec 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.V1beta1Storage.CSINodeSpec 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; } /** * * *
     * CSINodeSpec holds information about the specification of all CSI drivers installed on a node
     * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.CSINodeSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.storage.v1beta1.CSINodeSpec) io.kubernetes.client.proto.V1beta1Storage.CSINodeSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSINodeSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSINodeSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec.class, io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec.Builder.class); } // Construct using io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getDriversFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (driversBuilder_ == null) { drivers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { driversBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSINodeSpec_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec build() { io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec buildPartial() { io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec result = new io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec(this); int from_bitField0_ = bitField0_; if (driversBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { drivers_ = java.util.Collections.unmodifiableList(drivers_); bitField0_ = (bitField0_ & ~0x00000001); } result.drivers_ = drivers_; } else { result.drivers_ = driversBuilder_.build(); } 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.V1beta1Storage.CSINodeSpec) { return mergeFrom((io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec other) { if (other == io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec.getDefaultInstance()) return this; if (driversBuilder_ == null) { if (!other.drivers_.isEmpty()) { if (drivers_.isEmpty()) { drivers_ = other.drivers_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDriversIsMutable(); drivers_.addAll(other.drivers_); } onChanged(); } } else { if (!other.drivers_.isEmpty()) { if (driversBuilder_.isEmpty()) { driversBuilder_.dispose(); driversBuilder_ = null; drivers_ = other.drivers_; bitField0_ = (bitField0_ & ~0x00000001); driversBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDriversFieldBuilder() : null; } else { driversBuilder_.addAllMessages(other.drivers_); } } } 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.V1beta1Storage.CSINodeSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List drivers_ = java.util.Collections.emptyList(); private void ensureDriversIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { drivers_ = new java.util.ArrayList( drivers_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver, io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver.Builder, io.kubernetes.client.proto.V1beta1Storage.CSINodeDriverOrBuilder> driversBuilder_; /** * * *
       * drivers is a list of information of all CSI Drivers existing on a node.
       * If all drivers in the list are uninstalled, this can become empty.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINodeDriver drivers = 1; */ public java.util.List getDriversList() { if (driversBuilder_ == null) { return java.util.Collections.unmodifiableList(drivers_); } else { return driversBuilder_.getMessageList(); } } /** * * *
       * drivers is a list of information of all CSI Drivers existing on a node.
       * If all drivers in the list are uninstalled, this can become empty.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINodeDriver drivers = 1; */ public int getDriversCount() { if (driversBuilder_ == null) { return drivers_.size(); } else { return driversBuilder_.getCount(); } } /** * * *
       * drivers is a list of information of all CSI Drivers existing on a node.
       * If all drivers in the list are uninstalled, this can become empty.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINodeDriver drivers = 1; */ public io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver getDrivers(int index) { if (driversBuilder_ == null) { return drivers_.get(index); } else { return driversBuilder_.getMessage(index); } } /** * * *
       * drivers is a list of information of all CSI Drivers existing on a node.
       * If all drivers in the list are uninstalled, this can become empty.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINodeDriver drivers = 1; */ public Builder setDrivers( int index, io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver value) { if (driversBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDriversIsMutable(); drivers_.set(index, value); onChanged(); } else { driversBuilder_.setMessage(index, value); } return this; } /** * * *
       * drivers is a list of information of all CSI Drivers existing on a node.
       * If all drivers in the list are uninstalled, this can become empty.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINodeDriver drivers = 1; */ public Builder setDrivers( int index, io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver.Builder builderForValue) { if (driversBuilder_ == null) { ensureDriversIsMutable(); drivers_.set(index, builderForValue.build()); onChanged(); } else { driversBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * drivers is a list of information of all CSI Drivers existing on a node.
       * If all drivers in the list are uninstalled, this can become empty.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINodeDriver drivers = 1; */ public Builder addDrivers(io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver value) { if (driversBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDriversIsMutable(); drivers_.add(value); onChanged(); } else { driversBuilder_.addMessage(value); } return this; } /** * * *
       * drivers is a list of information of all CSI Drivers existing on a node.
       * If all drivers in the list are uninstalled, this can become empty.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINodeDriver drivers = 1; */ public Builder addDrivers( int index, io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver value) { if (driversBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDriversIsMutable(); drivers_.add(index, value); onChanged(); } else { driversBuilder_.addMessage(index, value); } return this; } /** * * *
       * drivers is a list of information of all CSI Drivers existing on a node.
       * If all drivers in the list are uninstalled, this can become empty.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINodeDriver drivers = 1; */ public Builder addDrivers( io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver.Builder builderForValue) { if (driversBuilder_ == null) { ensureDriversIsMutable(); drivers_.add(builderForValue.build()); onChanged(); } else { driversBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * drivers is a list of information of all CSI Drivers existing on a node.
       * If all drivers in the list are uninstalled, this can become empty.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINodeDriver drivers = 1; */ public Builder addDrivers( int index, io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver.Builder builderForValue) { if (driversBuilder_ == null) { ensureDriversIsMutable(); drivers_.add(index, builderForValue.build()); onChanged(); } else { driversBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * drivers is a list of information of all CSI Drivers existing on a node.
       * If all drivers in the list are uninstalled, this can become empty.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINodeDriver drivers = 1; */ public Builder addAllDrivers( java.lang.Iterable values) { if (driversBuilder_ == null) { ensureDriversIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, drivers_); onChanged(); } else { driversBuilder_.addAllMessages(values); } return this; } /** * * *
       * drivers is a list of information of all CSI Drivers existing on a node.
       * If all drivers in the list are uninstalled, this can become empty.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINodeDriver drivers = 1; */ public Builder clearDrivers() { if (driversBuilder_ == null) { drivers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { driversBuilder_.clear(); } return this; } /** * * *
       * drivers is a list of information of all CSI Drivers existing on a node.
       * If all drivers in the list are uninstalled, this can become empty.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINodeDriver drivers = 1; */ public Builder removeDrivers(int index) { if (driversBuilder_ == null) { ensureDriversIsMutable(); drivers_.remove(index); onChanged(); } else { driversBuilder_.remove(index); } return this; } /** * * *
       * drivers is a list of information of all CSI Drivers existing on a node.
       * If all drivers in the list are uninstalled, this can become empty.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINodeDriver drivers = 1; */ public io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver.Builder getDriversBuilder( int index) { return getDriversFieldBuilder().getBuilder(index); } /** * * *
       * drivers is a list of information of all CSI Drivers existing on a node.
       * If all drivers in the list are uninstalled, this can become empty.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINodeDriver drivers = 1; */ public io.kubernetes.client.proto.V1beta1Storage.CSINodeDriverOrBuilder getDriversOrBuilder( int index) { if (driversBuilder_ == null) { return drivers_.get(index); } else { return driversBuilder_.getMessageOrBuilder(index); } } /** * * *
       * drivers is a list of information of all CSI Drivers existing on a node.
       * If all drivers in the list are uninstalled, this can become empty.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINodeDriver drivers = 1; */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Storage.CSINodeDriverOrBuilder> getDriversOrBuilderList() { if (driversBuilder_ != null) { return driversBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(drivers_); } } /** * * *
       * drivers is a list of information of all CSI Drivers existing on a node.
       * If all drivers in the list are uninstalled, this can become empty.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINodeDriver drivers = 1; */ public io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver.Builder addDriversBuilder() { return getDriversFieldBuilder() .addBuilder( io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver.getDefaultInstance()); } /** * * *
       * drivers is a list of information of all CSI Drivers existing on a node.
       * If all drivers in the list are uninstalled, this can become empty.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINodeDriver drivers = 1; */ public io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver.Builder addDriversBuilder( int index) { return getDriversFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver.getDefaultInstance()); } /** * * *
       * drivers is a list of information of all CSI Drivers existing on a node.
       * If all drivers in the list are uninstalled, this can become empty.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSINodeDriver drivers = 1; */ public java.util.List getDriversBuilderList() { return getDriversFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver, io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver.Builder, io.kubernetes.client.proto.V1beta1Storage.CSINodeDriverOrBuilder> getDriversFieldBuilder() { if (driversBuilder_ == null) { driversBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver, io.kubernetes.client.proto.V1beta1Storage.CSINodeDriver.Builder, io.kubernetes.client.proto.V1beta1Storage.CSINodeDriverOrBuilder>( drivers_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); drivers_ = null; } return driversBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.storage.v1beta1.CSINodeSpec) } // @@protoc_insertion_point(class_scope:k8s.io.api.storage.v1beta1.CSINodeSpec) private static final io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec(); } public static io.kubernetes.client.proto.V1beta1Storage.CSINodeSpec getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CSINodeSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CSINodeSpec(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.V1beta1Storage.CSINodeSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CSIStorageCapacityOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.storage.v1beta1.CSIStorageCapacity) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard object's metadata. The name has no particular meaning. It must be
     * be a DNS subdomain (dots allowed, 253 characters). To ensure that
     * there are no conflicts with other CSI drivers on the cluster, the recommendation
     * is to use csisc-<uuid>, a generated name, or a reverse-domain name which ends
     * with the unique CSI driver name.
     * Objects are namespaced.
     * 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. The name has no particular meaning. It must be
     * be a DNS subdomain (dots allowed, 253 characters). To ensure that
     * there are no conflicts with other CSI drivers on the cluster, the recommendation
     * is to use csisc-<uuid>, a generated name, or a reverse-domain name which ends
     * with the unique CSI driver name.
     * Objects are namespaced.
     * 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. The name has no particular meaning. It must be
     * be a DNS subdomain (dots allowed, 253 characters). To ensure that
     * there are no conflicts with other CSI drivers on the cluster, the recommendation
     * is to use csisc-<uuid>, a generated name, or a reverse-domain name which ends
     * with the unique CSI driver name.
     * Objects are namespaced.
     * 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(); /** * * *
     * NodeTopology defines which nodes have access to the storage
     * for which capacity was reported. If not set, the storage is
     * not accessible from any node in the cluster. If empty, the
     * storage is accessible from all nodes. This field is
     * immutable.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector nodeTopology = 2; */ boolean hasNodeTopology(); /** * * *
     * NodeTopology defines which nodes have access to the storage
     * for which capacity was reported. If not set, the storage is
     * not accessible from any node in the cluster. If empty, the
     * storage is accessible from all nodes. This field is
     * immutable.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector nodeTopology = 2; */ io.kubernetes.client.proto.Meta.LabelSelector getNodeTopology(); /** * * *
     * NodeTopology defines which nodes have access to the storage
     * for which capacity was reported. If not set, the storage is
     * not accessible from any node in the cluster. If empty, the
     * storage is accessible from all nodes. This field is
     * immutable.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector nodeTopology = 2; */ io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getNodeTopologyOrBuilder(); /** * * *
     * The name of the StorageClass that the reported capacity applies to.
     * It must meet the same requirements as the name of a StorageClass
     * object (non-empty, DNS subdomain). If that object no longer exists,
     * the CSIStorageCapacity object is obsolete and should be removed by its
     * creator.
     * This field is immutable.
     * 
* * optional string storageClassName = 3; */ boolean hasStorageClassName(); /** * * *
     * The name of the StorageClass that the reported capacity applies to.
     * It must meet the same requirements as the name of a StorageClass
     * object (non-empty, DNS subdomain). If that object no longer exists,
     * the CSIStorageCapacity object is obsolete and should be removed by its
     * creator.
     * This field is immutable.
     * 
* * optional string storageClassName = 3; */ java.lang.String getStorageClassName(); /** * * *
     * The name of the StorageClass that the reported capacity applies to.
     * It must meet the same requirements as the name of a StorageClass
     * object (non-empty, DNS subdomain). If that object no longer exists,
     * the CSIStorageCapacity object is obsolete and should be removed by its
     * creator.
     * This field is immutable.
     * 
* * optional string storageClassName = 3; */ com.google.protobuf.ByteString getStorageClassNameBytes(); /** * * *
     * Capacity is the value reported by the CSI driver in its GetCapacityResponse
     * for a GetCapacityRequest with topology and parameters that match the
     * previous fields.
     * The semantic is currently (CSI spec 1.2) defined as:
     * The available capacity, in bytes, of the storage that can be used
     * to provision volumes. If not set, that information is currently
     * unavailable and treated like zero capacity.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity capacity = 4; */ boolean hasCapacity(); /** * * *
     * Capacity is the value reported by the CSI driver in its GetCapacityResponse
     * for a GetCapacityRequest with topology and parameters that match the
     * previous fields.
     * The semantic is currently (CSI spec 1.2) defined as:
     * The available capacity, in bytes, of the storage that can be used
     * to provision volumes. If not set, that information is currently
     * unavailable and treated like zero capacity.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity capacity = 4; */ io.kubernetes.client.proto.Resource.Quantity getCapacity(); /** * * *
     * Capacity is the value reported by the CSI driver in its GetCapacityResponse
     * for a GetCapacityRequest with topology and parameters that match the
     * previous fields.
     * The semantic is currently (CSI spec 1.2) defined as:
     * The available capacity, in bytes, of the storage that can be used
     * to provision volumes. If not set, that information is currently
     * unavailable and treated like zero capacity.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity capacity = 4; */ io.kubernetes.client.proto.Resource.QuantityOrBuilder getCapacityOrBuilder(); /** * * *
     * MaximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse
     * for a GetCapacityRequest with topology and parameters that match the
     * previous fields.
     * This is defined since CSI spec 1.4.0 as the largest size
     * that may be used in a
     * CreateVolumeRequest.capacity_range.required_bytes field to
     * create a volume with the same parameters as those in
     * GetCapacityRequest. The corresponding value in the Kubernetes
     * API is ResourceRequirements.Requests in a volume claim.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity maximumVolumeSize = 5; */ boolean hasMaximumVolumeSize(); /** * * *
     * MaximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse
     * for a GetCapacityRequest with topology and parameters that match the
     * previous fields.
     * This is defined since CSI spec 1.4.0 as the largest size
     * that may be used in a
     * CreateVolumeRequest.capacity_range.required_bytes field to
     * create a volume with the same parameters as those in
     * GetCapacityRequest. The corresponding value in the Kubernetes
     * API is ResourceRequirements.Requests in a volume claim.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity maximumVolumeSize = 5; */ io.kubernetes.client.proto.Resource.Quantity getMaximumVolumeSize(); /** * * *
     * MaximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse
     * for a GetCapacityRequest with topology and parameters that match the
     * previous fields.
     * This is defined since CSI spec 1.4.0 as the largest size
     * that may be used in a
     * CreateVolumeRequest.capacity_range.required_bytes field to
     * create a volume with the same parameters as those in
     * GetCapacityRequest. The corresponding value in the Kubernetes
     * API is ResourceRequirements.Requests in a volume claim.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity maximumVolumeSize = 5; */ io.kubernetes.client.proto.Resource.QuantityOrBuilder getMaximumVolumeSizeOrBuilder(); } /** * * *
   * CSIStorageCapacity stores the result of one CSI GetCapacity call.
   * For a given StorageClass, this describes the available capacity in a
   * particular topology segment.  This can be used when considering where to
   * instantiate new PersistentVolumes.
   * For example this can express things like:
   * - StorageClass "standard" has "1234 GiB" available in "topology.kubernetes.io/zone=us-east1"
   * - StorageClass "localssd" has "10 GiB" available in "kubernetes.io/hostname=knode-abc123"
   * The following three cases all imply that no capacity is available for
   * a certain combination:
   * - no object exists with suitable topology and storage class name
   * - such an object exists, but the capacity is unset
   * - such an object exists, but the capacity is zero
   * The producer of these objects can decide which approach is more suitable.
   * They are consumed by the kube-scheduler if the CSIStorageCapacity beta feature gate
   * is enabled there and a CSI driver opts into capacity-aware scheduling with
   * CSIDriver.StorageCapacity.
   * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.CSIStorageCapacity} */ public static final class CSIStorageCapacity extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.storage.v1beta1.CSIStorageCapacity) CSIStorageCapacityOrBuilder { private static final long serialVersionUID = 0L; // Use CSIStorageCapacity.newBuilder() to construct. private CSIStorageCapacity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CSIStorageCapacity() { storageClassName_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CSIStorageCapacity( 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.Meta.LabelSelector.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = nodeTopology_.toBuilder(); } nodeTopology_ = input.readMessage( io.kubernetes.client.proto.Meta.LabelSelector.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(nodeTopology_); nodeTopology_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; storageClassName_ = bs; break; } case 34: { io.kubernetes.client.proto.Resource.Quantity.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = capacity_.toBuilder(); } capacity_ = input.readMessage( io.kubernetes.client.proto.Resource.Quantity.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(capacity_); capacity_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 42: { io.kubernetes.client.proto.Resource.Quantity.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = maximumVolumeSize_.toBuilder(); } maximumVolumeSize_ = input.readMessage( io.kubernetes.client.proto.Resource.Quantity.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(maximumVolumeSize_); maximumVolumeSize_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; 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.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSIStorageCapacity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSIStorageCapacity_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity.class, io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity.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. The name has no particular meaning. It must be
     * be a DNS subdomain (dots allowed, 253 characters). To ensure that
     * there are no conflicts with other CSI drivers on the cluster, the recommendation
     * is to use csisc-<uuid>, a generated name, or a reverse-domain name which ends
     * with the unique CSI driver name.
     * Objects are namespaced.
     * 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. The name has no particular meaning. It must be
     * be a DNS subdomain (dots allowed, 253 characters). To ensure that
     * there are no conflicts with other CSI drivers on the cluster, the recommendation
     * is to use csisc-<uuid>, a generated name, or a reverse-domain name which ends
     * with the unique CSI driver name.
     * Objects are namespaced.
     * 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. The name has no particular meaning. It must be
     * be a DNS subdomain (dots allowed, 253 characters). To ensure that
     * there are no conflicts with other CSI drivers on the cluster, the recommendation
     * is to use csisc-<uuid>, a generated name, or a reverse-domain name which ends
     * with the unique CSI driver name.
     * Objects are namespaced.
     * 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 NODETOPOLOGY_FIELD_NUMBER = 2; private io.kubernetes.client.proto.Meta.LabelSelector nodeTopology_; /** * * *
     * NodeTopology defines which nodes have access to the storage
     * for which capacity was reported. If not set, the storage is
     * not accessible from any node in the cluster. If empty, the
     * storage is accessible from all nodes. This field is
     * immutable.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector nodeTopology = 2; */ public boolean hasNodeTopology() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * NodeTopology defines which nodes have access to the storage
     * for which capacity was reported. If not set, the storage is
     * not accessible from any node in the cluster. If empty, the
     * storage is accessible from all nodes. This field is
     * immutable.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector nodeTopology = 2; */ public io.kubernetes.client.proto.Meta.LabelSelector getNodeTopology() { return nodeTopology_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : nodeTopology_; } /** * * *
     * NodeTopology defines which nodes have access to the storage
     * for which capacity was reported. If not set, the storage is
     * not accessible from any node in the cluster. If empty, the
     * storage is accessible from all nodes. This field is
     * immutable.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector nodeTopology = 2; */ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getNodeTopologyOrBuilder() { return nodeTopology_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : nodeTopology_; } public static final int STORAGECLASSNAME_FIELD_NUMBER = 3; private volatile java.lang.Object storageClassName_; /** * * *
     * The name of the StorageClass that the reported capacity applies to.
     * It must meet the same requirements as the name of a StorageClass
     * object (non-empty, DNS subdomain). If that object no longer exists,
     * the CSIStorageCapacity object is obsolete and should be removed by its
     * creator.
     * This field is immutable.
     * 
* * optional string storageClassName = 3; */ public boolean hasStorageClassName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * The name of the StorageClass that the reported capacity applies to.
     * It must meet the same requirements as the name of a StorageClass
     * object (non-empty, DNS subdomain). If that object no longer exists,
     * the CSIStorageCapacity object is obsolete and should be removed by its
     * creator.
     * This field is immutable.
     * 
* * optional string storageClassName = 3; */ public java.lang.String getStorageClassName() { java.lang.Object ref = storageClassName_; 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()) { storageClassName_ = s; } return s; } } /** * * *
     * The name of the StorageClass that the reported capacity applies to.
     * It must meet the same requirements as the name of a StorageClass
     * object (non-empty, DNS subdomain). If that object no longer exists,
     * the CSIStorageCapacity object is obsolete and should be removed by its
     * creator.
     * This field is immutable.
     * 
* * optional string storageClassName = 3; */ public com.google.protobuf.ByteString getStorageClassNameBytes() { java.lang.Object ref = storageClassName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); storageClassName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CAPACITY_FIELD_NUMBER = 4; private io.kubernetes.client.proto.Resource.Quantity capacity_; /** * * *
     * Capacity is the value reported by the CSI driver in its GetCapacityResponse
     * for a GetCapacityRequest with topology and parameters that match the
     * previous fields.
     * The semantic is currently (CSI spec 1.2) defined as:
     * The available capacity, in bytes, of the storage that can be used
     * to provision volumes. If not set, that information is currently
     * unavailable and treated like zero capacity.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity capacity = 4; */ public boolean hasCapacity() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Capacity is the value reported by the CSI driver in its GetCapacityResponse
     * for a GetCapacityRequest with topology and parameters that match the
     * previous fields.
     * The semantic is currently (CSI spec 1.2) defined as:
     * The available capacity, in bytes, of the storage that can be used
     * to provision volumes. If not set, that information is currently
     * unavailable and treated like zero capacity.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity capacity = 4; */ public io.kubernetes.client.proto.Resource.Quantity getCapacity() { return capacity_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : capacity_; } /** * * *
     * Capacity is the value reported by the CSI driver in its GetCapacityResponse
     * for a GetCapacityRequest with topology and parameters that match the
     * previous fields.
     * The semantic is currently (CSI spec 1.2) defined as:
     * The available capacity, in bytes, of the storage that can be used
     * to provision volumes. If not set, that information is currently
     * unavailable and treated like zero capacity.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity capacity = 4; */ public io.kubernetes.client.proto.Resource.QuantityOrBuilder getCapacityOrBuilder() { return capacity_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : capacity_; } public static final int MAXIMUMVOLUMESIZE_FIELD_NUMBER = 5; private io.kubernetes.client.proto.Resource.Quantity maximumVolumeSize_; /** * * *
     * MaximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse
     * for a GetCapacityRequest with topology and parameters that match the
     * previous fields.
     * This is defined since CSI spec 1.4.0 as the largest size
     * that may be used in a
     * CreateVolumeRequest.capacity_range.required_bytes field to
     * create a volume with the same parameters as those in
     * GetCapacityRequest. The corresponding value in the Kubernetes
     * API is ResourceRequirements.Requests in a volume claim.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity maximumVolumeSize = 5; */ public boolean hasMaximumVolumeSize() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * MaximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse
     * for a GetCapacityRequest with topology and parameters that match the
     * previous fields.
     * This is defined since CSI spec 1.4.0 as the largest size
     * that may be used in a
     * CreateVolumeRequest.capacity_range.required_bytes field to
     * create a volume with the same parameters as those in
     * GetCapacityRequest. The corresponding value in the Kubernetes
     * API is ResourceRequirements.Requests in a volume claim.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity maximumVolumeSize = 5; */ public io.kubernetes.client.proto.Resource.Quantity getMaximumVolumeSize() { return maximumVolumeSize_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : maximumVolumeSize_; } /** * * *
     * MaximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse
     * for a GetCapacityRequest with topology and parameters that match the
     * previous fields.
     * This is defined since CSI spec 1.4.0 as the largest size
     * that may be used in a
     * CreateVolumeRequest.capacity_range.required_bytes field to
     * create a volume with the same parameters as those in
     * GetCapacityRequest. The corresponding value in the Kubernetes
     * API is ResourceRequirements.Requests in a volume claim.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity maximumVolumeSize = 5; */ public io.kubernetes.client.proto.Resource.QuantityOrBuilder getMaximumVolumeSizeOrBuilder() { return maximumVolumeSize_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : maximumVolumeSize_; } 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, getNodeTopology()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, storageClassName_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, getCapacity()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(5, getMaximumVolumeSize()); } 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, getNodeTopology()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, storageClassName_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCapacity()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getMaximumVolumeSize()); } 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.V1beta1Storage.CSIStorageCapacity)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity other = (io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity) obj; boolean result = true; result = result && (hasMetadata() == other.hasMetadata()); if (hasMetadata()) { result = result && getMetadata().equals(other.getMetadata()); } result = result && (hasNodeTopology() == other.hasNodeTopology()); if (hasNodeTopology()) { result = result && getNodeTopology().equals(other.getNodeTopology()); } result = result && (hasStorageClassName() == other.hasStorageClassName()); if (hasStorageClassName()) { result = result && getStorageClassName().equals(other.getStorageClassName()); } result = result && (hasCapacity() == other.hasCapacity()); if (hasCapacity()) { result = result && getCapacity().equals(other.getCapacity()); } result = result && (hasMaximumVolumeSize() == other.hasMaximumVolumeSize()); if (hasMaximumVolumeSize()) { result = result && getMaximumVolumeSize().equals(other.getMaximumVolumeSize()); } 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 (hasNodeTopology()) { hash = (37 * hash) + NODETOPOLOGY_FIELD_NUMBER; hash = (53 * hash) + getNodeTopology().hashCode(); } if (hasStorageClassName()) { hash = (37 * hash) + STORAGECLASSNAME_FIELD_NUMBER; hash = (53 * hash) + getStorageClassName().hashCode(); } if (hasCapacity()) { hash = (37 * hash) + CAPACITY_FIELD_NUMBER; hash = (53 * hash) + getCapacity().hashCode(); } if (hasMaximumVolumeSize()) { hash = (37 * hash) + MAXIMUMVOLUMESIZE_FIELD_NUMBER; hash = (53 * hash) + getMaximumVolumeSize().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity 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.V1beta1Storage.CSIStorageCapacity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity 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.V1beta1Storage.CSIStorageCapacity parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity 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.V1beta1Storage.CSIStorageCapacity parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity 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.V1beta1Storage.CSIStorageCapacity parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity 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.V1beta1Storage.CSIStorageCapacity 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; } /** * * *
     * CSIStorageCapacity stores the result of one CSI GetCapacity call.
     * For a given StorageClass, this describes the available capacity in a
     * particular topology segment.  This can be used when considering where to
     * instantiate new PersistentVolumes.
     * For example this can express things like:
     * - StorageClass "standard" has "1234 GiB" available in "topology.kubernetes.io/zone=us-east1"
     * - StorageClass "localssd" has "10 GiB" available in "kubernetes.io/hostname=knode-abc123"
     * The following three cases all imply that no capacity is available for
     * a certain combination:
     * - no object exists with suitable topology and storage class name
     * - such an object exists, but the capacity is unset
     * - such an object exists, but the capacity is zero
     * The producer of these objects can decide which approach is more suitable.
     * They are consumed by the kube-scheduler if the CSIStorageCapacity beta feature gate
     * is enabled there and a CSI driver opts into capacity-aware scheduling with
     * CSIDriver.StorageCapacity.
     * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.CSIStorageCapacity} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.storage.v1beta1.CSIStorageCapacity) io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSIStorageCapacity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSIStorageCapacity_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity.class, io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity.Builder.class); } // Construct using io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity.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(); getNodeTopologyFieldBuilder(); getCapacityFieldBuilder(); getMaximumVolumeSizeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (metadataBuilder_ == null) { metadata_ = null; } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (nodeTopologyBuilder_ == null) { nodeTopology_ = null; } else { nodeTopologyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); storageClassName_ = ""; bitField0_ = (bitField0_ & ~0x00000004); if (capacityBuilder_ == null) { capacity_ = null; } else { capacityBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (maximumVolumeSizeBuilder_ == null) { maximumVolumeSize_ = null; } else { maximumVolumeSizeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSIStorageCapacity_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity build() { io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity buildPartial() { io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity result = new io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity(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 (nodeTopologyBuilder_ == null) { result.nodeTopology_ = nodeTopology_; } else { result.nodeTopology_ = nodeTopologyBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.storageClassName_ = storageClassName_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (capacityBuilder_ == null) { result.capacity_ = capacity_; } else { result.capacity_ = capacityBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (maximumVolumeSizeBuilder_ == null) { result.maximumVolumeSize_ = maximumVolumeSize_; } else { result.maximumVolumeSize_ = maximumVolumeSizeBuilder_.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.V1beta1Storage.CSIStorageCapacity) { return mergeFrom((io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity other) { if (other == io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity.getDefaultInstance()) return this; if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } if (other.hasNodeTopology()) { mergeNodeTopology(other.getNodeTopology()); } if (other.hasStorageClassName()) { bitField0_ |= 0x00000004; storageClassName_ = other.storageClassName_; onChanged(); } if (other.hasCapacity()) { mergeCapacity(other.getCapacity()); } if (other.hasMaximumVolumeSize()) { mergeMaximumVolumeSize(other.getMaximumVolumeSize()); } 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.V1beta1Storage.CSIStorageCapacity parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity) 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. The name has no particular meaning. It must be
       * be a DNS subdomain (dots allowed, 253 characters). To ensure that
       * there are no conflicts with other CSI drivers on the cluster, the recommendation
       * is to use csisc-<uuid>, a generated name, or a reverse-domain name which ends
       * with the unique CSI driver name.
       * Objects are namespaced.
       * 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. The name has no particular meaning. It must be
       * be a DNS subdomain (dots allowed, 253 characters). To ensure that
       * there are no conflicts with other CSI drivers on the cluster, the recommendation
       * is to use csisc-<uuid>, a generated name, or a reverse-domain name which ends
       * with the unique CSI driver name.
       * Objects are namespaced.
       * 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. The name has no particular meaning. It must be
       * be a DNS subdomain (dots allowed, 253 characters). To ensure that
       * there are no conflicts with other CSI drivers on the cluster, the recommendation
       * is to use csisc-<uuid>, a generated name, or a reverse-domain name which ends
       * with the unique CSI driver name.
       * Objects are namespaced.
       * 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. The name has no particular meaning. It must be
       * be a DNS subdomain (dots allowed, 253 characters). To ensure that
       * there are no conflicts with other CSI drivers on the cluster, the recommendation
       * is to use csisc-<uuid>, a generated name, or a reverse-domain name which ends
       * with the unique CSI driver name.
       * Objects are namespaced.
       * 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. The name has no particular meaning. It must be
       * be a DNS subdomain (dots allowed, 253 characters). To ensure that
       * there are no conflicts with other CSI drivers on the cluster, the recommendation
       * is to use csisc-<uuid>, a generated name, or a reverse-domain name which ends
       * with the unique CSI driver name.
       * Objects are namespaced.
       * 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. The name has no particular meaning. It must be
       * be a DNS subdomain (dots allowed, 253 characters). To ensure that
       * there are no conflicts with other CSI drivers on the cluster, the recommendation
       * is to use csisc-<uuid>, a generated name, or a reverse-domain name which ends
       * with the unique CSI driver name.
       * Objects are namespaced.
       * 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. The name has no particular meaning. It must be
       * be a DNS subdomain (dots allowed, 253 characters). To ensure that
       * there are no conflicts with other CSI drivers on the cluster, the recommendation
       * is to use csisc-<uuid>, a generated name, or a reverse-domain name which ends
       * with the unique CSI driver name.
       * Objects are namespaced.
       * 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. The name has no particular meaning. It must be
       * be a DNS subdomain (dots allowed, 253 characters). To ensure that
       * there are no conflicts with other CSI drivers on the cluster, the recommendation
       * is to use csisc-<uuid>, a generated name, or a reverse-domain name which ends
       * with the unique CSI driver name.
       * Objects are namespaced.
       * 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. The name has no particular meaning. It must be
       * be a DNS subdomain (dots allowed, 253 characters). To ensure that
       * there are no conflicts with other CSI drivers on the cluster, the recommendation
       * is to use csisc-<uuid>, a generated name, or a reverse-domain name which ends
       * with the unique CSI driver name.
       * Objects are namespaced.
       * 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.Meta.LabelSelector nodeTopology_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder> nodeTopologyBuilder_; /** * * *
       * NodeTopology defines which nodes have access to the storage
       * for which capacity was reported. If not set, the storage is
       * not accessible from any node in the cluster. If empty, the
       * storage is accessible from all nodes. This field is
       * immutable.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector nodeTopology = 2; */ public boolean hasNodeTopology() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * NodeTopology defines which nodes have access to the storage
       * for which capacity was reported. If not set, the storage is
       * not accessible from any node in the cluster. If empty, the
       * storage is accessible from all nodes. This field is
       * immutable.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector nodeTopology = 2; */ public io.kubernetes.client.proto.Meta.LabelSelector getNodeTopology() { if (nodeTopologyBuilder_ == null) { return nodeTopology_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : nodeTopology_; } else { return nodeTopologyBuilder_.getMessage(); } } /** * * *
       * NodeTopology defines which nodes have access to the storage
       * for which capacity was reported. If not set, the storage is
       * not accessible from any node in the cluster. If empty, the
       * storage is accessible from all nodes. This field is
       * immutable.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector nodeTopology = 2; */ public Builder setNodeTopology(io.kubernetes.client.proto.Meta.LabelSelector value) { if (nodeTopologyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } nodeTopology_ = value; onChanged(); } else { nodeTopologyBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * NodeTopology defines which nodes have access to the storage
       * for which capacity was reported. If not set, the storage is
       * not accessible from any node in the cluster. If empty, the
       * storage is accessible from all nodes. This field is
       * immutable.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector nodeTopology = 2; */ public Builder setNodeTopology( io.kubernetes.client.proto.Meta.LabelSelector.Builder builderForValue) { if (nodeTopologyBuilder_ == null) { nodeTopology_ = builderForValue.build(); onChanged(); } else { nodeTopologyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * NodeTopology defines which nodes have access to the storage
       * for which capacity was reported. If not set, the storage is
       * not accessible from any node in the cluster. If empty, the
       * storage is accessible from all nodes. This field is
       * immutable.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector nodeTopology = 2; */ public Builder mergeNodeTopology(io.kubernetes.client.proto.Meta.LabelSelector value) { if (nodeTopologyBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && nodeTopology_ != null && nodeTopology_ != io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()) { nodeTopology_ = io.kubernetes.client.proto.Meta.LabelSelector.newBuilder(nodeTopology_) .mergeFrom(value) .buildPartial(); } else { nodeTopology_ = value; } onChanged(); } else { nodeTopologyBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * NodeTopology defines which nodes have access to the storage
       * for which capacity was reported. If not set, the storage is
       * not accessible from any node in the cluster. If empty, the
       * storage is accessible from all nodes. This field is
       * immutable.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector nodeTopology = 2; */ public Builder clearNodeTopology() { if (nodeTopologyBuilder_ == null) { nodeTopology_ = null; onChanged(); } else { nodeTopologyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * NodeTopology defines which nodes have access to the storage
       * for which capacity was reported. If not set, the storage is
       * not accessible from any node in the cluster. If empty, the
       * storage is accessible from all nodes. This field is
       * immutable.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector nodeTopology = 2; */ public io.kubernetes.client.proto.Meta.LabelSelector.Builder getNodeTopologyBuilder() { bitField0_ |= 0x00000002; onChanged(); return getNodeTopologyFieldBuilder().getBuilder(); } /** * * *
       * NodeTopology defines which nodes have access to the storage
       * for which capacity was reported. If not set, the storage is
       * not accessible from any node in the cluster. If empty, the
       * storage is accessible from all nodes. This field is
       * immutable.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector nodeTopology = 2; */ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getNodeTopologyOrBuilder() { if (nodeTopologyBuilder_ != null) { return nodeTopologyBuilder_.getMessageOrBuilder(); } else { return nodeTopology_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : nodeTopology_; } } /** * * *
       * NodeTopology defines which nodes have access to the storage
       * for which capacity was reported. If not set, the storage is
       * not accessible from any node in the cluster. If empty, the
       * storage is accessible from all nodes. This field is
       * immutable.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector nodeTopology = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder> getNodeTopologyFieldBuilder() { if (nodeTopologyBuilder_ == null) { nodeTopologyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder>( getNodeTopology(), getParentForChildren(), isClean()); nodeTopology_ = null; } return nodeTopologyBuilder_; } private java.lang.Object storageClassName_ = ""; /** * * *
       * The name of the StorageClass that the reported capacity applies to.
       * It must meet the same requirements as the name of a StorageClass
       * object (non-empty, DNS subdomain). If that object no longer exists,
       * the CSIStorageCapacity object is obsolete and should be removed by its
       * creator.
       * This field is immutable.
       * 
* * optional string storageClassName = 3; */ public boolean hasStorageClassName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * The name of the StorageClass that the reported capacity applies to.
       * It must meet the same requirements as the name of a StorageClass
       * object (non-empty, DNS subdomain). If that object no longer exists,
       * the CSIStorageCapacity object is obsolete and should be removed by its
       * creator.
       * This field is immutable.
       * 
* * optional string storageClassName = 3; */ public java.lang.String getStorageClassName() { java.lang.Object ref = storageClassName_; 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()) { storageClassName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The name of the StorageClass that the reported capacity applies to.
       * It must meet the same requirements as the name of a StorageClass
       * object (non-empty, DNS subdomain). If that object no longer exists,
       * the CSIStorageCapacity object is obsolete and should be removed by its
       * creator.
       * This field is immutable.
       * 
* * optional string storageClassName = 3; */ public com.google.protobuf.ByteString getStorageClassNameBytes() { java.lang.Object ref = storageClassName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); storageClassName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The name of the StorageClass that the reported capacity applies to.
       * It must meet the same requirements as the name of a StorageClass
       * object (non-empty, DNS subdomain). If that object no longer exists,
       * the CSIStorageCapacity object is obsolete and should be removed by its
       * creator.
       * This field is immutable.
       * 
* * optional string storageClassName = 3; */ public Builder setStorageClassName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; storageClassName_ = value; onChanged(); return this; } /** * * *
       * The name of the StorageClass that the reported capacity applies to.
       * It must meet the same requirements as the name of a StorageClass
       * object (non-empty, DNS subdomain). If that object no longer exists,
       * the CSIStorageCapacity object is obsolete and should be removed by its
       * creator.
       * This field is immutable.
       * 
* * optional string storageClassName = 3; */ public Builder clearStorageClassName() { bitField0_ = (bitField0_ & ~0x00000004); storageClassName_ = getDefaultInstance().getStorageClassName(); onChanged(); return this; } /** * * *
       * The name of the StorageClass that the reported capacity applies to.
       * It must meet the same requirements as the name of a StorageClass
       * object (non-empty, DNS subdomain). If that object no longer exists,
       * the CSIStorageCapacity object is obsolete and should be removed by its
       * creator.
       * This field is immutable.
       * 
* * optional string storageClassName = 3; */ public Builder setStorageClassNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; storageClassName_ = value; onChanged(); return this; } private io.kubernetes.client.proto.Resource.Quantity capacity_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Resource.Quantity, io.kubernetes.client.proto.Resource.Quantity.Builder, io.kubernetes.client.proto.Resource.QuantityOrBuilder> capacityBuilder_; /** * * *
       * Capacity is the value reported by the CSI driver in its GetCapacityResponse
       * for a GetCapacityRequest with topology and parameters that match the
       * previous fields.
       * The semantic is currently (CSI spec 1.2) defined as:
       * The available capacity, in bytes, of the storage that can be used
       * to provision volumes. If not set, that information is currently
       * unavailable and treated like zero capacity.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity capacity = 4; */ public boolean hasCapacity() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Capacity is the value reported by the CSI driver in its GetCapacityResponse
       * for a GetCapacityRequest with topology and parameters that match the
       * previous fields.
       * The semantic is currently (CSI spec 1.2) defined as:
       * The available capacity, in bytes, of the storage that can be used
       * to provision volumes. If not set, that information is currently
       * unavailable and treated like zero capacity.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity capacity = 4; */ public io.kubernetes.client.proto.Resource.Quantity getCapacity() { if (capacityBuilder_ == null) { return capacity_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : capacity_; } else { return capacityBuilder_.getMessage(); } } /** * * *
       * Capacity is the value reported by the CSI driver in its GetCapacityResponse
       * for a GetCapacityRequest with topology and parameters that match the
       * previous fields.
       * The semantic is currently (CSI spec 1.2) defined as:
       * The available capacity, in bytes, of the storage that can be used
       * to provision volumes. If not set, that information is currently
       * unavailable and treated like zero capacity.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity capacity = 4; */ public Builder setCapacity(io.kubernetes.client.proto.Resource.Quantity value) { if (capacityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } capacity_ = value; onChanged(); } else { capacityBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * Capacity is the value reported by the CSI driver in its GetCapacityResponse
       * for a GetCapacityRequest with topology and parameters that match the
       * previous fields.
       * The semantic is currently (CSI spec 1.2) defined as:
       * The available capacity, in bytes, of the storage that can be used
       * to provision volumes. If not set, that information is currently
       * unavailable and treated like zero capacity.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity capacity = 4; */ public Builder setCapacity( io.kubernetes.client.proto.Resource.Quantity.Builder builderForValue) { if (capacityBuilder_ == null) { capacity_ = builderForValue.build(); onChanged(); } else { capacityBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * * *
       * Capacity is the value reported by the CSI driver in its GetCapacityResponse
       * for a GetCapacityRequest with topology and parameters that match the
       * previous fields.
       * The semantic is currently (CSI spec 1.2) defined as:
       * The available capacity, in bytes, of the storage that can be used
       * to provision volumes. If not set, that information is currently
       * unavailable and treated like zero capacity.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity capacity = 4; */ public Builder mergeCapacity(io.kubernetes.client.proto.Resource.Quantity value) { if (capacityBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && capacity_ != null && capacity_ != io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance()) { capacity_ = io.kubernetes.client.proto.Resource.Quantity.newBuilder(capacity_) .mergeFrom(value) .buildPartial(); } else { capacity_ = value; } onChanged(); } else { capacityBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * Capacity is the value reported by the CSI driver in its GetCapacityResponse
       * for a GetCapacityRequest with topology and parameters that match the
       * previous fields.
       * The semantic is currently (CSI spec 1.2) defined as:
       * The available capacity, in bytes, of the storage that can be used
       * to provision volumes. If not set, that information is currently
       * unavailable and treated like zero capacity.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity capacity = 4; */ public Builder clearCapacity() { if (capacityBuilder_ == null) { capacity_ = null; onChanged(); } else { capacityBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * * *
       * Capacity is the value reported by the CSI driver in its GetCapacityResponse
       * for a GetCapacityRequest with topology and parameters that match the
       * previous fields.
       * The semantic is currently (CSI spec 1.2) defined as:
       * The available capacity, in bytes, of the storage that can be used
       * to provision volumes. If not set, that information is currently
       * unavailable and treated like zero capacity.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity capacity = 4; */ public io.kubernetes.client.proto.Resource.Quantity.Builder getCapacityBuilder() { bitField0_ |= 0x00000008; onChanged(); return getCapacityFieldBuilder().getBuilder(); } /** * * *
       * Capacity is the value reported by the CSI driver in its GetCapacityResponse
       * for a GetCapacityRequest with topology and parameters that match the
       * previous fields.
       * The semantic is currently (CSI spec 1.2) defined as:
       * The available capacity, in bytes, of the storage that can be used
       * to provision volumes. If not set, that information is currently
       * unavailable and treated like zero capacity.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity capacity = 4; */ public io.kubernetes.client.proto.Resource.QuantityOrBuilder getCapacityOrBuilder() { if (capacityBuilder_ != null) { return capacityBuilder_.getMessageOrBuilder(); } else { return capacity_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : capacity_; } } /** * * *
       * Capacity is the value reported by the CSI driver in its GetCapacityResponse
       * for a GetCapacityRequest with topology and parameters that match the
       * previous fields.
       * The semantic is currently (CSI spec 1.2) defined as:
       * The available capacity, in bytes, of the storage that can be used
       * to provision volumes. If not set, that information is currently
       * unavailable and treated like zero capacity.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity capacity = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Resource.Quantity, io.kubernetes.client.proto.Resource.Quantity.Builder, io.kubernetes.client.proto.Resource.QuantityOrBuilder> getCapacityFieldBuilder() { if (capacityBuilder_ == null) { capacityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Resource.Quantity, io.kubernetes.client.proto.Resource.Quantity.Builder, io.kubernetes.client.proto.Resource.QuantityOrBuilder>( getCapacity(), getParentForChildren(), isClean()); capacity_ = null; } return capacityBuilder_; } private io.kubernetes.client.proto.Resource.Quantity maximumVolumeSize_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Resource.Quantity, io.kubernetes.client.proto.Resource.Quantity.Builder, io.kubernetes.client.proto.Resource.QuantityOrBuilder> maximumVolumeSizeBuilder_; /** * * *
       * MaximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse
       * for a GetCapacityRequest with topology and parameters that match the
       * previous fields.
       * This is defined since CSI spec 1.4.0 as the largest size
       * that may be used in a
       * CreateVolumeRequest.capacity_range.required_bytes field to
       * create a volume with the same parameters as those in
       * GetCapacityRequest. The corresponding value in the Kubernetes
       * API is ResourceRequirements.Requests in a volume claim.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity maximumVolumeSize = 5; */ public boolean hasMaximumVolumeSize() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * MaximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse
       * for a GetCapacityRequest with topology and parameters that match the
       * previous fields.
       * This is defined since CSI spec 1.4.0 as the largest size
       * that may be used in a
       * CreateVolumeRequest.capacity_range.required_bytes field to
       * create a volume with the same parameters as those in
       * GetCapacityRequest. The corresponding value in the Kubernetes
       * API is ResourceRequirements.Requests in a volume claim.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity maximumVolumeSize = 5; */ public io.kubernetes.client.proto.Resource.Quantity getMaximumVolumeSize() { if (maximumVolumeSizeBuilder_ == null) { return maximumVolumeSize_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : maximumVolumeSize_; } else { return maximumVolumeSizeBuilder_.getMessage(); } } /** * * *
       * MaximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse
       * for a GetCapacityRequest with topology and parameters that match the
       * previous fields.
       * This is defined since CSI spec 1.4.0 as the largest size
       * that may be used in a
       * CreateVolumeRequest.capacity_range.required_bytes field to
       * create a volume with the same parameters as those in
       * GetCapacityRequest. The corresponding value in the Kubernetes
       * API is ResourceRequirements.Requests in a volume claim.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity maximumVolumeSize = 5; */ public Builder setMaximumVolumeSize(io.kubernetes.client.proto.Resource.Quantity value) { if (maximumVolumeSizeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maximumVolumeSize_ = value; onChanged(); } else { maximumVolumeSizeBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * * *
       * MaximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse
       * for a GetCapacityRequest with topology and parameters that match the
       * previous fields.
       * This is defined since CSI spec 1.4.0 as the largest size
       * that may be used in a
       * CreateVolumeRequest.capacity_range.required_bytes field to
       * create a volume with the same parameters as those in
       * GetCapacityRequest. The corresponding value in the Kubernetes
       * API is ResourceRequirements.Requests in a volume claim.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity maximumVolumeSize = 5; */ public Builder setMaximumVolumeSize( io.kubernetes.client.proto.Resource.Quantity.Builder builderForValue) { if (maximumVolumeSizeBuilder_ == null) { maximumVolumeSize_ = builderForValue.build(); onChanged(); } else { maximumVolumeSizeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * * *
       * MaximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse
       * for a GetCapacityRequest with topology and parameters that match the
       * previous fields.
       * This is defined since CSI spec 1.4.0 as the largest size
       * that may be used in a
       * CreateVolumeRequest.capacity_range.required_bytes field to
       * create a volume with the same parameters as those in
       * GetCapacityRequest. The corresponding value in the Kubernetes
       * API is ResourceRequirements.Requests in a volume claim.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity maximumVolumeSize = 5; */ public Builder mergeMaximumVolumeSize(io.kubernetes.client.proto.Resource.Quantity value) { if (maximumVolumeSizeBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && maximumVolumeSize_ != null && maximumVolumeSize_ != io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance()) { maximumVolumeSize_ = io.kubernetes.client.proto.Resource.Quantity.newBuilder(maximumVolumeSize_) .mergeFrom(value) .buildPartial(); } else { maximumVolumeSize_ = value; } onChanged(); } else { maximumVolumeSizeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * * *
       * MaximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse
       * for a GetCapacityRequest with topology and parameters that match the
       * previous fields.
       * This is defined since CSI spec 1.4.0 as the largest size
       * that may be used in a
       * CreateVolumeRequest.capacity_range.required_bytes field to
       * create a volume with the same parameters as those in
       * GetCapacityRequest. The corresponding value in the Kubernetes
       * API is ResourceRequirements.Requests in a volume claim.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity maximumVolumeSize = 5; */ public Builder clearMaximumVolumeSize() { if (maximumVolumeSizeBuilder_ == null) { maximumVolumeSize_ = null; onChanged(); } else { maximumVolumeSizeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * * *
       * MaximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse
       * for a GetCapacityRequest with topology and parameters that match the
       * previous fields.
       * This is defined since CSI spec 1.4.0 as the largest size
       * that may be used in a
       * CreateVolumeRequest.capacity_range.required_bytes field to
       * create a volume with the same parameters as those in
       * GetCapacityRequest. The corresponding value in the Kubernetes
       * API is ResourceRequirements.Requests in a volume claim.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity maximumVolumeSize = 5; */ public io.kubernetes.client.proto.Resource.Quantity.Builder getMaximumVolumeSizeBuilder() { bitField0_ |= 0x00000010; onChanged(); return getMaximumVolumeSizeFieldBuilder().getBuilder(); } /** * * *
       * MaximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse
       * for a GetCapacityRequest with topology and parameters that match the
       * previous fields.
       * This is defined since CSI spec 1.4.0 as the largest size
       * that may be used in a
       * CreateVolumeRequest.capacity_range.required_bytes field to
       * create a volume with the same parameters as those in
       * GetCapacityRequest. The corresponding value in the Kubernetes
       * API is ResourceRequirements.Requests in a volume claim.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity maximumVolumeSize = 5; */ public io.kubernetes.client.proto.Resource.QuantityOrBuilder getMaximumVolumeSizeOrBuilder() { if (maximumVolumeSizeBuilder_ != null) { return maximumVolumeSizeBuilder_.getMessageOrBuilder(); } else { return maximumVolumeSize_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : maximumVolumeSize_; } } /** * * *
       * MaximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse
       * for a GetCapacityRequest with topology and parameters that match the
       * previous fields.
       * This is defined since CSI spec 1.4.0 as the largest size
       * that may be used in a
       * CreateVolumeRequest.capacity_range.required_bytes field to
       * create a volume with the same parameters as those in
       * GetCapacityRequest. The corresponding value in the Kubernetes
       * API is ResourceRequirements.Requests in a volume claim.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity maximumVolumeSize = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Resource.Quantity, io.kubernetes.client.proto.Resource.Quantity.Builder, io.kubernetes.client.proto.Resource.QuantityOrBuilder> getMaximumVolumeSizeFieldBuilder() { if (maximumVolumeSizeBuilder_ == null) { maximumVolumeSizeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Resource.Quantity, io.kubernetes.client.proto.Resource.Quantity.Builder, io.kubernetes.client.proto.Resource.QuantityOrBuilder>( getMaximumVolumeSize(), getParentForChildren(), isClean()); maximumVolumeSize_ = null; } return maximumVolumeSizeBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.storage.v1beta1.CSIStorageCapacity) } // @@protoc_insertion_point(class_scope:k8s.io.api.storage.v1beta1.CSIStorageCapacity) private static final io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity(); } public static io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CSIStorageCapacity parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CSIStorageCapacity(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.V1beta1Storage.CSIStorageCapacity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CSIStorageCapacityListOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.storage.v1beta1.CSIStorageCapacityList) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard list 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 list 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 list 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 is the list of CSIStorageCapacity objects.
     * +listType=map
     * +listMapKey=name
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSIStorageCapacity items = 2; */ java.util.List getItemsList(); /** * * *
     * Items is the list of CSIStorageCapacity objects.
     * +listType=map
     * +listMapKey=name
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSIStorageCapacity items = 2; */ io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity getItems(int index); /** * * *
     * Items is the list of CSIStorageCapacity objects.
     * +listType=map
     * +listMapKey=name
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSIStorageCapacity items = 2; */ int getItemsCount(); /** * * *
     * Items is the list of CSIStorageCapacity objects.
     * +listType=map
     * +listMapKey=name
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSIStorageCapacity items = 2; */ java.util.List getItemsOrBuilderList(); /** * * *
     * Items is the list of CSIStorageCapacity objects.
     * +listType=map
     * +listMapKey=name
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSIStorageCapacity items = 2; */ io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityOrBuilder getItemsOrBuilder( int index); } /** * * *
   * CSIStorageCapacityList is a collection of CSIStorageCapacity objects.
   * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.CSIStorageCapacityList} */ public static final class CSIStorageCapacityList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.storage.v1beta1.CSIStorageCapacityList) CSIStorageCapacityListOrBuilder { private static final long serialVersionUID = 0L; // Use CSIStorageCapacityList.newBuilder() to construct. private CSIStorageCapacityList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CSIStorageCapacityList() { items_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CSIStorageCapacityList( 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.V1beta1Storage.CSIStorageCapacity>(); mutable_bitField0_ |= 0x00000002; } items_.add( input.readMessage( io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity.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.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSIStorageCapacityList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSIStorageCapacityList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityList.class, io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityList.Builder.class); } private int bitField0_; public static final int METADATA_FIELD_NUMBER = 1; private io.kubernetes.client.proto.Meta.ListMeta metadata_; /** * * *
     * Standard list 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 list 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 list 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 is the list of CSIStorageCapacity objects.
     * +listType=map
     * +listMapKey=name
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSIStorageCapacity items = 2; */ public java.util.List getItemsList() { return items_; } /** * * *
     * Items is the list of CSIStorageCapacity objects.
     * +listType=map
     * +listMapKey=name
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSIStorageCapacity items = 2; */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityOrBuilder> getItemsOrBuilderList() { return items_; } /** * * *
     * Items is the list of CSIStorageCapacity objects.
     * +listType=map
     * +listMapKey=name
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSIStorageCapacity items = 2; */ public int getItemsCount() { return items_.size(); } /** * * *
     * Items is the list of CSIStorageCapacity objects.
     * +listType=map
     * +listMapKey=name
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSIStorageCapacity items = 2; */ public io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity getItems(int index) { return items_.get(index); } /** * * *
     * Items is the list of CSIStorageCapacity objects.
     * +listType=map
     * +listMapKey=name
     * 
* * repeated .k8s.io.api.storage.v1beta1.CSIStorageCapacity items = 2; */ public io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityOrBuilder 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.V1beta1Storage.CSIStorageCapacityList)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityList other = (io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityList) 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.V1beta1Storage.CSIStorageCapacityList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityList 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.V1beta1Storage.CSIStorageCapacityList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityList 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.V1beta1Storage.CSIStorageCapacityList parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityList parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityList 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.V1beta1Storage.CSIStorageCapacityList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityList 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.V1beta1Storage.CSIStorageCapacityList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityList 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.V1beta1Storage.CSIStorageCapacityList 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; } /** * * *
     * CSIStorageCapacityList is a collection of CSIStorageCapacity objects.
     * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.CSIStorageCapacityList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.storage.v1beta1.CSIStorageCapacityList) io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSIStorageCapacityList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSIStorageCapacityList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityList.class, io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityList.Builder.class); } // Construct using // io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityList.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.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_CSIStorageCapacityList_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityList getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityList .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityList build() { io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityList buildPartial() { io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityList result = new io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityList(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.V1beta1Storage.CSIStorageCapacityList) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityList) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityList other) { if (other == io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityList .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.V1beta1Storage.CSIStorageCapacityList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityList) 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 list 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 list 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 list 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 list 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 list 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 list 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 list 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 list 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 list 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 items_ = java.util.Collections.emptyList(); private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { items_ = new java.util.ArrayList( items_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity, io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity.Builder, io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityOrBuilder> itemsBuilder_; /** * * *
       * Items is the list of CSIStorageCapacity objects.
       * +listType=map
       * +listMapKey=name
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIStorageCapacity items = 2; */ public java.util.List getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { return itemsBuilder_.getMessageList(); } } /** * * *
       * Items is the list of CSIStorageCapacity objects.
       * +listType=map
       * +listMapKey=name
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIStorageCapacity items = 2; */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** * * *
       * Items is the list of CSIStorageCapacity objects.
       * +listType=map
       * +listMapKey=name
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIStorageCapacity items = 2; */ public io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity getItems(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** * * *
       * Items is the list of CSIStorageCapacity objects.
       * +listType=map
       * +listMapKey=name
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIStorageCapacity items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.set(index, value); onChanged(); } else { itemsBuilder_.setMessage(index, value); } return this; } /** * * *
       * Items is the list of CSIStorageCapacity objects.
       * +listType=map
       * +listMapKey=name
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIStorageCapacity items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Items is the list of CSIStorageCapacity objects.
       * +listType=map
       * +listMapKey=name
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIStorageCapacity items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(value); onChanged(); } else { itemsBuilder_.addMessage(value); } return this; } /** * * *
       * Items is the list of CSIStorageCapacity objects.
       * +listType=map
       * +listMapKey=name
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIStorageCapacity items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(index, value); onChanged(); } else { itemsBuilder_.addMessage(index, value); } return this; } /** * * *
       * Items is the list of CSIStorageCapacity objects.
       * +listType=map
       * +listMapKey=name
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIStorageCapacity items = 2; */ public Builder addItems( io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Items is the list of CSIStorageCapacity objects.
       * +listType=map
       * +listMapKey=name
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIStorageCapacity items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Items is the list of CSIStorageCapacity objects.
       * +listType=map
       * +listMapKey=name
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIStorageCapacity items = 2; */ public Builder addAllItems( java.lang.Iterable values) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); onChanged(); } else { itemsBuilder_.addAllMessages(values); } return this; } /** * * *
       * Items is the list of CSIStorageCapacity objects.
       * +listType=map
       * +listMapKey=name
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIStorageCapacity items = 2; */ public Builder clearItems() { if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { itemsBuilder_.clear(); } return this; } /** * * *
       * Items is the list of CSIStorageCapacity objects.
       * +listType=map
       * +listMapKey=name
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIStorageCapacity items = 2; */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.remove(index); onChanged(); } else { itemsBuilder_.remove(index); } return this; } /** * * *
       * Items is the list of CSIStorageCapacity objects.
       * +listType=map
       * +listMapKey=name
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIStorageCapacity items = 2; */ public io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity.Builder getItemsBuilder( int index) { return getItemsFieldBuilder().getBuilder(index); } /** * * *
       * Items is the list of CSIStorageCapacity objects.
       * +listType=map
       * +listMapKey=name
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIStorageCapacity items = 2; */ public io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityOrBuilder getItemsOrBuilder(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Items is the list of CSIStorageCapacity objects.
       * +listType=map
       * +listMapKey=name
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIStorageCapacity items = 2; */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityOrBuilder> getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(items_); } } /** * * *
       * Items is the list of CSIStorageCapacity objects.
       * +listType=map
       * +listMapKey=name
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIStorageCapacity items = 2; */ public io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity.Builder addItemsBuilder() { return getItemsFieldBuilder() .addBuilder( io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity.getDefaultInstance()); } /** * * *
       * Items is the list of CSIStorageCapacity objects.
       * +listType=map
       * +listMapKey=name
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIStorageCapacity items = 2; */ public io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity.Builder addItemsBuilder( int index) { return getItemsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity.getDefaultInstance()); } /** * * *
       * Items is the list of CSIStorageCapacity objects.
       * +listType=map
       * +listMapKey=name
       * 
* * repeated .k8s.io.api.storage.v1beta1.CSIStorageCapacity items = 2; */ public java.util.List getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity, io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity.Builder, io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity, io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacity.Builder, io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityOrBuilder>( 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.api.storage.v1beta1.CSIStorageCapacityList) } // @@protoc_insertion_point(class_scope:k8s.io.api.storage.v1beta1.CSIStorageCapacityList) private static final io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityList(); } public static io.kubernetes.client.proto.V1beta1Storage.CSIStorageCapacityList getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CSIStorageCapacityList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CSIStorageCapacityList(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.V1beta1Storage.CSIStorageCapacityList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StorageClassOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.storage.v1beta1.StorageClass) 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(); /** * * *
     * Provisioner indicates the type of the provisioner.
     * 
* * optional string provisioner = 2; */ boolean hasProvisioner(); /** * * *
     * Provisioner indicates the type of the provisioner.
     * 
* * optional string provisioner = 2; */ java.lang.String getProvisioner(); /** * * *
     * Provisioner indicates the type of the provisioner.
     * 
* * optional string provisioner = 2; */ com.google.protobuf.ByteString getProvisionerBytes(); /** * * *
     * Parameters holds the parameters for the provisioner that should
     * create volumes of this storage class.
     * +optional
     * 
* * map<string, string> parameters = 3; */ int getParametersCount(); /** * * *
     * Parameters holds the parameters for the provisioner that should
     * create volumes of this storage class.
     * +optional
     * 
* * map<string, string> parameters = 3; */ boolean containsParameters(java.lang.String key); /** Use {@link #getParametersMap()} instead. */ @java.lang.Deprecated java.util.Map getParameters(); /** * * *
     * Parameters holds the parameters for the provisioner that should
     * create volumes of this storage class.
     * +optional
     * 
* * map<string, string> parameters = 3; */ java.util.Map getParametersMap(); /** * * *
     * Parameters holds the parameters for the provisioner that should
     * create volumes of this storage class.
     * +optional
     * 
* * map<string, string> parameters = 3; */ java.lang.String getParametersOrDefault(java.lang.String key, java.lang.String defaultValue); /** * * *
     * Parameters holds the parameters for the provisioner that should
     * create volumes of this storage class.
     * +optional
     * 
* * map<string, string> parameters = 3; */ java.lang.String getParametersOrThrow(java.lang.String key); /** * * *
     * Dynamically provisioned PersistentVolumes of this storage class are
     * created with this reclaimPolicy. Defaults to Delete.
     * +optional
     * 
* * optional string reclaimPolicy = 4; */ boolean hasReclaimPolicy(); /** * * *
     * Dynamically provisioned PersistentVolumes of this storage class are
     * created with this reclaimPolicy. Defaults to Delete.
     * +optional
     * 
* * optional string reclaimPolicy = 4; */ java.lang.String getReclaimPolicy(); /** * * *
     * Dynamically provisioned PersistentVolumes of this storage class are
     * created with this reclaimPolicy. Defaults to Delete.
     * +optional
     * 
* * optional string reclaimPolicy = 4; */ com.google.protobuf.ByteString getReclaimPolicyBytes(); /** * * *
     * Dynamically provisioned PersistentVolumes of this storage class are
     * created with these mountOptions, e.g. ["ro", "soft"]. Not validated -
     * mount of the PVs will simply fail if one is invalid.
     * +optional
     * 
* * repeated string mountOptions = 5; */ java.util.List getMountOptionsList(); /** * * *
     * Dynamically provisioned PersistentVolumes of this storage class are
     * created with these mountOptions, e.g. ["ro", "soft"]. Not validated -
     * mount of the PVs will simply fail if one is invalid.
     * +optional
     * 
* * repeated string mountOptions = 5; */ int getMountOptionsCount(); /** * * *
     * Dynamically provisioned PersistentVolumes of this storage class are
     * created with these mountOptions, e.g. ["ro", "soft"]. Not validated -
     * mount of the PVs will simply fail if one is invalid.
     * +optional
     * 
* * repeated string mountOptions = 5; */ java.lang.String getMountOptions(int index); /** * * *
     * Dynamically provisioned PersistentVolumes of this storage class are
     * created with these mountOptions, e.g. ["ro", "soft"]. Not validated -
     * mount of the PVs will simply fail if one is invalid.
     * +optional
     * 
* * repeated string mountOptions = 5; */ com.google.protobuf.ByteString getMountOptionsBytes(int index); /** * * *
     * AllowVolumeExpansion shows whether the storage class allow volume expand
     * +optional
     * 
* * optional bool allowVolumeExpansion = 6; */ boolean hasAllowVolumeExpansion(); /** * * *
     * AllowVolumeExpansion shows whether the storage class allow volume expand
     * +optional
     * 
* * optional bool allowVolumeExpansion = 6; */ boolean getAllowVolumeExpansion(); /** * * *
     * VolumeBindingMode indicates how PersistentVolumeClaims should be
     * provisioned and bound.  When unset, VolumeBindingImmediate is used.
     * This field is only honored by servers that enable the VolumeScheduling feature.
     * +optional
     * 
* * optional string volumeBindingMode = 7; */ boolean hasVolumeBindingMode(); /** * * *
     * VolumeBindingMode indicates how PersistentVolumeClaims should be
     * provisioned and bound.  When unset, VolumeBindingImmediate is used.
     * This field is only honored by servers that enable the VolumeScheduling feature.
     * +optional
     * 
* * optional string volumeBindingMode = 7; */ java.lang.String getVolumeBindingMode(); /** * * *
     * VolumeBindingMode indicates how PersistentVolumeClaims should be
     * provisioned and bound.  When unset, VolumeBindingImmediate is used.
     * This field is only honored by servers that enable the VolumeScheduling feature.
     * +optional
     * 
* * optional string volumeBindingMode = 7; */ com.google.protobuf.ByteString getVolumeBindingModeBytes(); /** * * *
     * Restrict the node topologies where volumes can be dynamically provisioned.
     * Each volume plugin defines its own supported topology specifications.
     * An empty TopologySelectorTerm list means there is no topology restriction.
     * This field is only honored by servers that enable the VolumeScheduling feature.
     * +optional
     * +listType=atomic
     * 
* * repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8; */ java.util.List getAllowedTopologiesList(); /** * * *
     * Restrict the node topologies where volumes can be dynamically provisioned.
     * Each volume plugin defines its own supported topology specifications.
     * An empty TopologySelectorTerm list means there is no topology restriction.
     * This field is only honored by servers that enable the VolumeScheduling feature.
     * +optional
     * +listType=atomic
     * 
* * repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8; */ io.kubernetes.client.proto.V1.TopologySelectorTerm getAllowedTopologies(int index); /** * * *
     * Restrict the node topologies where volumes can be dynamically provisioned.
     * Each volume plugin defines its own supported topology specifications.
     * An empty TopologySelectorTerm list means there is no topology restriction.
     * This field is only honored by servers that enable the VolumeScheduling feature.
     * +optional
     * +listType=atomic
     * 
* * repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8; */ int getAllowedTopologiesCount(); /** * * *
     * Restrict the node topologies where volumes can be dynamically provisioned.
     * Each volume plugin defines its own supported topology specifications.
     * An empty TopologySelectorTerm list means there is no topology restriction.
     * This field is only honored by servers that enable the VolumeScheduling feature.
     * +optional
     * +listType=atomic
     * 
* * repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8; */ java.util.List getAllowedTopologiesOrBuilderList(); /** * * *
     * Restrict the node topologies where volumes can be dynamically provisioned.
     * Each volume plugin defines its own supported topology specifications.
     * An empty TopologySelectorTerm list means there is no topology restriction.
     * This field is only honored by servers that enable the VolumeScheduling feature.
     * +optional
     * +listType=atomic
     * 
* * repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8; */ io.kubernetes.client.proto.V1.TopologySelectorTermOrBuilder getAllowedTopologiesOrBuilder( int index); } /** * * *
   * StorageClass describes the parameters for a class of storage for
   * which PersistentVolumes can be dynamically provisioned.
   * StorageClasses are non-namespaced; the name of the storage class
   * according to etcd is in ObjectMeta.Name.
   * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.StorageClass} */ public static final class StorageClass extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.storage.v1beta1.StorageClass) StorageClassOrBuilder { private static final long serialVersionUID = 0L; // Use StorageClass.newBuilder() to construct. private StorageClass(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StorageClass() { provisioner_ = ""; reclaimPolicy_ = ""; mountOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; allowVolumeExpansion_ = false; volumeBindingMode_ = ""; allowedTopologies_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StorageClass( 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: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; provisioner_ = bs; break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { parameters_ = com.google.protobuf.MapField.newMapField( ParametersDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000004; } com.google.protobuf.MapEntry parameters__ = input.readMessage( ParametersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); parameters_.getMutableMap().put(parameters__.getKey(), parameters__.getValue()); break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; reclaimPolicy_ = bs; break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { mountOptions_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000010; } mountOptions_.add(bs); break; } case 48: { bitField0_ |= 0x00000008; allowVolumeExpansion_ = input.readBool(); break; } case 58: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; volumeBindingMode_ = bs; break; } case 66: { if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { allowedTopologies_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000080; } allowedTopologies_.add( input.readMessage( io.kubernetes.client.proto.V1.TopologySelectorTerm.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_ & 0x00000010) == 0x00000010)) { mountOptions_ = mountOptions_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { allowedTopologies_ = java.util.Collections.unmodifiableList(allowedTopologies_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_StorageClass_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetParameters(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_StorageClass_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.StorageClass.class, io.kubernetes.client.proto.V1beta1Storage.StorageClass.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 PROVISIONER_FIELD_NUMBER = 2; private volatile java.lang.Object provisioner_; /** * * *
     * Provisioner indicates the type of the provisioner.
     * 
* * optional string provisioner = 2; */ public boolean hasProvisioner() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Provisioner indicates the type of the provisioner.
     * 
* * optional string provisioner = 2; */ public java.lang.String getProvisioner() { java.lang.Object ref = provisioner_; 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()) { provisioner_ = s; } return s; } } /** * * *
     * Provisioner indicates the type of the provisioner.
     * 
* * optional string provisioner = 2; */ public com.google.protobuf.ByteString getProvisionerBytes() { java.lang.Object ref = provisioner_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); provisioner_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PARAMETERS_FIELD_NUMBER = 3; private static final class ParametersDefaultEntryHolder { static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry.newDefaultInstance( io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_StorageClass_ParametersEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField parameters_; private com.google.protobuf.MapField internalGetParameters() { if (parameters_ == null) { return com.google.protobuf.MapField.emptyMapField( ParametersDefaultEntryHolder.defaultEntry); } return parameters_; } public int getParametersCount() { return internalGetParameters().getMap().size(); } /** * * *
     * Parameters holds the parameters for the provisioner that should
     * create volumes of this storage class.
     * +optional
     * 
* * map<string, string> parameters = 3; */ public boolean containsParameters(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetParameters().getMap().containsKey(key); } /** Use {@link #getParametersMap()} instead. */ @java.lang.Deprecated public java.util.Map getParameters() { return getParametersMap(); } /** * * *
     * Parameters holds the parameters for the provisioner that should
     * create volumes of this storage class.
     * +optional
     * 
* * map<string, string> parameters = 3; */ public java.util.Map getParametersMap() { return internalGetParameters().getMap(); } /** * * *
     * Parameters holds the parameters for the provisioner that should
     * create volumes of this storage class.
     * +optional
     * 
* * map<string, string> parameters = 3; */ public java.lang.String getParametersOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetParameters().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * Parameters holds the parameters for the provisioner that should
     * create volumes of this storage class.
     * +optional
     * 
* * map<string, string> parameters = 3; */ public java.lang.String getParametersOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetParameters().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int RECLAIMPOLICY_FIELD_NUMBER = 4; private volatile java.lang.Object reclaimPolicy_; /** * * *
     * Dynamically provisioned PersistentVolumes of this storage class are
     * created with this reclaimPolicy. Defaults to Delete.
     * +optional
     * 
* * optional string reclaimPolicy = 4; */ public boolean hasReclaimPolicy() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Dynamically provisioned PersistentVolumes of this storage class are
     * created with this reclaimPolicy. Defaults to Delete.
     * +optional
     * 
* * optional string reclaimPolicy = 4; */ public java.lang.String getReclaimPolicy() { java.lang.Object ref = reclaimPolicy_; 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()) { reclaimPolicy_ = s; } return s; } } /** * * *
     * Dynamically provisioned PersistentVolumes of this storage class are
     * created with this reclaimPolicy. Defaults to Delete.
     * +optional
     * 
* * optional string reclaimPolicy = 4; */ public com.google.protobuf.ByteString getReclaimPolicyBytes() { java.lang.Object ref = reclaimPolicy_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reclaimPolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MOUNTOPTIONS_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList mountOptions_; /** * * *
     * Dynamically provisioned PersistentVolumes of this storage class are
     * created with these mountOptions, e.g. ["ro", "soft"]. Not validated -
     * mount of the PVs will simply fail if one is invalid.
     * +optional
     * 
* * repeated string mountOptions = 5; */ public com.google.protobuf.ProtocolStringList getMountOptionsList() { return mountOptions_; } /** * * *
     * Dynamically provisioned PersistentVolumes of this storage class are
     * created with these mountOptions, e.g. ["ro", "soft"]. Not validated -
     * mount of the PVs will simply fail if one is invalid.
     * +optional
     * 
* * repeated string mountOptions = 5; */ public int getMountOptionsCount() { return mountOptions_.size(); } /** * * *
     * Dynamically provisioned PersistentVolumes of this storage class are
     * created with these mountOptions, e.g. ["ro", "soft"]. Not validated -
     * mount of the PVs will simply fail if one is invalid.
     * +optional
     * 
* * repeated string mountOptions = 5; */ public java.lang.String getMountOptions(int index) { return mountOptions_.get(index); } /** * * *
     * Dynamically provisioned PersistentVolumes of this storage class are
     * created with these mountOptions, e.g. ["ro", "soft"]. Not validated -
     * mount of the PVs will simply fail if one is invalid.
     * +optional
     * 
* * repeated string mountOptions = 5; */ public com.google.protobuf.ByteString getMountOptionsBytes(int index) { return mountOptions_.getByteString(index); } public static final int ALLOWVOLUMEEXPANSION_FIELD_NUMBER = 6; private boolean allowVolumeExpansion_; /** * * *
     * AllowVolumeExpansion shows whether the storage class allow volume expand
     * +optional
     * 
* * optional bool allowVolumeExpansion = 6; */ public boolean hasAllowVolumeExpansion() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * AllowVolumeExpansion shows whether the storage class allow volume expand
     * +optional
     * 
* * optional bool allowVolumeExpansion = 6; */ public boolean getAllowVolumeExpansion() { return allowVolumeExpansion_; } public static final int VOLUMEBINDINGMODE_FIELD_NUMBER = 7; private volatile java.lang.Object volumeBindingMode_; /** * * *
     * VolumeBindingMode indicates how PersistentVolumeClaims should be
     * provisioned and bound.  When unset, VolumeBindingImmediate is used.
     * This field is only honored by servers that enable the VolumeScheduling feature.
     * +optional
     * 
* * optional string volumeBindingMode = 7; */ public boolean hasVolumeBindingMode() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * VolumeBindingMode indicates how PersistentVolumeClaims should be
     * provisioned and bound.  When unset, VolumeBindingImmediate is used.
     * This field is only honored by servers that enable the VolumeScheduling feature.
     * +optional
     * 
* * optional string volumeBindingMode = 7; */ public java.lang.String getVolumeBindingMode() { java.lang.Object ref = volumeBindingMode_; 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()) { volumeBindingMode_ = s; } return s; } } /** * * *
     * VolumeBindingMode indicates how PersistentVolumeClaims should be
     * provisioned and bound.  When unset, VolumeBindingImmediate is used.
     * This field is only honored by servers that enable the VolumeScheduling feature.
     * +optional
     * 
* * optional string volumeBindingMode = 7; */ public com.google.protobuf.ByteString getVolumeBindingModeBytes() { java.lang.Object ref = volumeBindingMode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeBindingMode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ALLOWEDTOPOLOGIES_FIELD_NUMBER = 8; private java.util.List allowedTopologies_; /** * * *
     * Restrict the node topologies where volumes can be dynamically provisioned.
     * Each volume plugin defines its own supported topology specifications.
     * An empty TopologySelectorTerm list means there is no topology restriction.
     * This field is only honored by servers that enable the VolumeScheduling feature.
     * +optional
     * +listType=atomic
     * 
* * repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8; */ public java.util.List getAllowedTopologiesList() { return allowedTopologies_; } /** * * *
     * Restrict the node topologies where volumes can be dynamically provisioned.
     * Each volume plugin defines its own supported topology specifications.
     * An empty TopologySelectorTerm list means there is no topology restriction.
     * This field is only honored by servers that enable the VolumeScheduling feature.
     * +optional
     * +listType=atomic
     * 
* * repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8; */ public java.util.List getAllowedTopologiesOrBuilderList() { return allowedTopologies_; } /** * * *
     * Restrict the node topologies where volumes can be dynamically provisioned.
     * Each volume plugin defines its own supported topology specifications.
     * An empty TopologySelectorTerm list means there is no topology restriction.
     * This field is only honored by servers that enable the VolumeScheduling feature.
     * +optional
     * +listType=atomic
     * 
* * repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8; */ public int getAllowedTopologiesCount() { return allowedTopologies_.size(); } /** * * *
     * Restrict the node topologies where volumes can be dynamically provisioned.
     * Each volume plugin defines its own supported topology specifications.
     * An empty TopologySelectorTerm list means there is no topology restriction.
     * This field is only honored by servers that enable the VolumeScheduling feature.
     * +optional
     * +listType=atomic
     * 
* * repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8; */ public io.kubernetes.client.proto.V1.TopologySelectorTerm getAllowedTopologies(int index) { return allowedTopologies_.get(index); } /** * * *
     * Restrict the node topologies where volumes can be dynamically provisioned.
     * Each volume plugin defines its own supported topology specifications.
     * An empty TopologySelectorTerm list means there is no topology restriction.
     * This field is only honored by servers that enable the VolumeScheduling feature.
     * +optional
     * +listType=atomic
     * 
* * repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8; */ public io.kubernetes.client.proto.V1.TopologySelectorTermOrBuilder getAllowedTopologiesOrBuilder(int index) { return allowedTopologies_.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()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, provisioner_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetParameters(), ParametersDefaultEntryHolder.defaultEntry, 3); if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, reclaimPolicy_); } for (int i = 0; i < mountOptions_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, mountOptions_.getRaw(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(6, allowVolumeExpansion_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, volumeBindingMode_); } for (int i = 0; i < allowedTopologies_.size(); i++) { output.writeMessage(8, allowedTopologies_.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()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, provisioner_); } for (java.util.Map.Entry entry : internalGetParameters().getMap().entrySet()) { com.google.protobuf.MapEntry parameters__ = ParametersDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, parameters__); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, reclaimPolicy_); } { int dataSize = 0; for (int i = 0; i < mountOptions_.size(); i++) { dataSize += computeStringSizeNoTag(mountOptions_.getRaw(i)); } size += dataSize; size += 1 * getMountOptionsList().size(); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, allowVolumeExpansion_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, volumeBindingMode_); } for (int i = 0; i < allowedTopologies_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, allowedTopologies_.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.V1beta1Storage.StorageClass)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Storage.StorageClass other = (io.kubernetes.client.proto.V1beta1Storage.StorageClass) obj; boolean result = true; result = result && (hasMetadata() == other.hasMetadata()); if (hasMetadata()) { result = result && getMetadata().equals(other.getMetadata()); } result = result && (hasProvisioner() == other.hasProvisioner()); if (hasProvisioner()) { result = result && getProvisioner().equals(other.getProvisioner()); } result = result && internalGetParameters().equals(other.internalGetParameters()); result = result && (hasReclaimPolicy() == other.hasReclaimPolicy()); if (hasReclaimPolicy()) { result = result && getReclaimPolicy().equals(other.getReclaimPolicy()); } result = result && getMountOptionsList().equals(other.getMountOptionsList()); result = result && (hasAllowVolumeExpansion() == other.hasAllowVolumeExpansion()); if (hasAllowVolumeExpansion()) { result = result && (getAllowVolumeExpansion() == other.getAllowVolumeExpansion()); } result = result && (hasVolumeBindingMode() == other.hasVolumeBindingMode()); if (hasVolumeBindingMode()) { result = result && getVolumeBindingMode().equals(other.getVolumeBindingMode()); } result = result && getAllowedTopologiesList().equals(other.getAllowedTopologiesList()); 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 (hasProvisioner()) { hash = (37 * hash) + PROVISIONER_FIELD_NUMBER; hash = (53 * hash) + getProvisioner().hashCode(); } if (!internalGetParameters().getMap().isEmpty()) { hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + internalGetParameters().hashCode(); } if (hasReclaimPolicy()) { hash = (37 * hash) + RECLAIMPOLICY_FIELD_NUMBER; hash = (53 * hash) + getReclaimPolicy().hashCode(); } if (getMountOptionsCount() > 0) { hash = (37 * hash) + MOUNTOPTIONS_FIELD_NUMBER; hash = (53 * hash) + getMountOptionsList().hashCode(); } if (hasAllowVolumeExpansion()) { hash = (37 * hash) + ALLOWVOLUMEEXPANSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowVolumeExpansion()); } if (hasVolumeBindingMode()) { hash = (37 * hash) + VOLUMEBINDINGMODE_FIELD_NUMBER; hash = (53 * hash) + getVolumeBindingMode().hashCode(); } if (getAllowedTopologiesCount() > 0) { hash = (37 * hash) + ALLOWEDTOPOLOGIES_FIELD_NUMBER; hash = (53 * hash) + getAllowedTopologiesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Storage.StorageClass parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.StorageClass 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.V1beta1Storage.StorageClass parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.StorageClass 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.V1beta1Storage.StorageClass parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.StorageClass parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Storage.StorageClass parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.StorageClass 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.V1beta1Storage.StorageClass parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.StorageClass 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.V1beta1Storage.StorageClass parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.StorageClass 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.V1beta1Storage.StorageClass 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; } /** * * *
     * StorageClass describes the parameters for a class of storage for
     * which PersistentVolumes can be dynamically provisioned.
     * StorageClasses are non-namespaced; the name of the storage class
     * according to etcd is in ObjectMeta.Name.
     * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.StorageClass} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.storage.v1beta1.StorageClass) io.kubernetes.client.proto.V1beta1Storage.StorageClassOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_StorageClass_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetParameters(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 3: return internalGetMutableParameters(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_StorageClass_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.StorageClass.class, io.kubernetes.client.proto.V1beta1Storage.StorageClass.Builder.class); } // Construct using io.kubernetes.client.proto.V1beta1Storage.StorageClass.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(); getAllowedTopologiesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (metadataBuilder_ == null) { metadata_ = null; } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); provisioner_ = ""; bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableParameters().clear(); reclaimPolicy_ = ""; bitField0_ = (bitField0_ & ~0x00000008); mountOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); allowVolumeExpansion_ = false; bitField0_ = (bitField0_ & ~0x00000020); volumeBindingMode_ = ""; bitField0_ = (bitField0_ & ~0x00000040); if (allowedTopologiesBuilder_ == null) { allowedTopologies_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); } else { allowedTopologiesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_StorageClass_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.StorageClass getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Storage.StorageClass.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.StorageClass build() { io.kubernetes.client.proto.V1beta1Storage.StorageClass result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.StorageClass buildPartial() { io.kubernetes.client.proto.V1beta1Storage.StorageClass result = new io.kubernetes.client.proto.V1beta1Storage.StorageClass(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; } result.provisioner_ = provisioner_; result.parameters_ = internalGetParameters(); result.parameters_.makeImmutable(); if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.reclaimPolicy_ = reclaimPolicy_; if (((bitField0_ & 0x00000010) == 0x00000010)) { mountOptions_ = mountOptions_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000010); } result.mountOptions_ = mountOptions_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000008; } result.allowVolumeExpansion_ = allowVolumeExpansion_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000010; } result.volumeBindingMode_ = volumeBindingMode_; if (allowedTopologiesBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080)) { allowedTopologies_ = java.util.Collections.unmodifiableList(allowedTopologies_); bitField0_ = (bitField0_ & ~0x00000080); } result.allowedTopologies_ = allowedTopologies_; } else { result.allowedTopologies_ = allowedTopologiesBuilder_.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.V1beta1Storage.StorageClass) { return mergeFrom((io.kubernetes.client.proto.V1beta1Storage.StorageClass) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Storage.StorageClass other) { if (other == io.kubernetes.client.proto.V1beta1Storage.StorageClass.getDefaultInstance()) return this; if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } if (other.hasProvisioner()) { bitField0_ |= 0x00000002; provisioner_ = other.provisioner_; onChanged(); } internalGetMutableParameters().mergeFrom(other.internalGetParameters()); if (other.hasReclaimPolicy()) { bitField0_ |= 0x00000008; reclaimPolicy_ = other.reclaimPolicy_; onChanged(); } if (!other.mountOptions_.isEmpty()) { if (mountOptions_.isEmpty()) { mountOptions_ = other.mountOptions_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureMountOptionsIsMutable(); mountOptions_.addAll(other.mountOptions_); } onChanged(); } if (other.hasAllowVolumeExpansion()) { setAllowVolumeExpansion(other.getAllowVolumeExpansion()); } if (other.hasVolumeBindingMode()) { bitField0_ |= 0x00000040; volumeBindingMode_ = other.volumeBindingMode_; onChanged(); } if (allowedTopologiesBuilder_ == null) { if (!other.allowedTopologies_.isEmpty()) { if (allowedTopologies_.isEmpty()) { allowedTopologies_ = other.allowedTopologies_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureAllowedTopologiesIsMutable(); allowedTopologies_.addAll(other.allowedTopologies_); } onChanged(); } } else { if (!other.allowedTopologies_.isEmpty()) { if (allowedTopologiesBuilder_.isEmpty()) { allowedTopologiesBuilder_.dispose(); allowedTopologiesBuilder_ = null; allowedTopologies_ = other.allowedTopologies_; bitField0_ = (bitField0_ & ~0x00000080); allowedTopologiesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAllowedTopologiesFieldBuilder() : null; } else { allowedTopologiesBuilder_.addAllMessages(other.allowedTopologies_); } } } 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.V1beta1Storage.StorageClass parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Storage.StorageClass) 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 java.lang.Object provisioner_ = ""; /** * * *
       * Provisioner indicates the type of the provisioner.
       * 
* * optional string provisioner = 2; */ public boolean hasProvisioner() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Provisioner indicates the type of the provisioner.
       * 
* * optional string provisioner = 2; */ public java.lang.String getProvisioner() { java.lang.Object ref = provisioner_; 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()) { provisioner_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Provisioner indicates the type of the provisioner.
       * 
* * optional string provisioner = 2; */ public com.google.protobuf.ByteString getProvisionerBytes() { java.lang.Object ref = provisioner_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); provisioner_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Provisioner indicates the type of the provisioner.
       * 
* * optional string provisioner = 2; */ public Builder setProvisioner(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; provisioner_ = value; onChanged(); return this; } /** * * *
       * Provisioner indicates the type of the provisioner.
       * 
* * optional string provisioner = 2; */ public Builder clearProvisioner() { bitField0_ = (bitField0_ & ~0x00000002); provisioner_ = getDefaultInstance().getProvisioner(); onChanged(); return this; } /** * * *
       * Provisioner indicates the type of the provisioner.
       * 
* * optional string provisioner = 2; */ public Builder setProvisionerBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; provisioner_ = value; onChanged(); return this; } private com.google.protobuf.MapField parameters_; private com.google.protobuf.MapField internalGetParameters() { if (parameters_ == null) { return com.google.protobuf.MapField.emptyMapField( ParametersDefaultEntryHolder.defaultEntry); } return parameters_; } private com.google.protobuf.MapField internalGetMutableParameters() { onChanged(); ; if (parameters_ == null) { parameters_ = com.google.protobuf.MapField.newMapField(ParametersDefaultEntryHolder.defaultEntry); } if (!parameters_.isMutable()) { parameters_ = parameters_.copy(); } return parameters_; } public int getParametersCount() { return internalGetParameters().getMap().size(); } /** * * *
       * Parameters holds the parameters for the provisioner that should
       * create volumes of this storage class.
       * +optional
       * 
* * map<string, string> parameters = 3; */ public boolean containsParameters(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetParameters().getMap().containsKey(key); } /** Use {@link #getParametersMap()} instead. */ @java.lang.Deprecated public java.util.Map getParameters() { return getParametersMap(); } /** * * *
       * Parameters holds the parameters for the provisioner that should
       * create volumes of this storage class.
       * +optional
       * 
* * map<string, string> parameters = 3; */ public java.util.Map getParametersMap() { return internalGetParameters().getMap(); } /** * * *
       * Parameters holds the parameters for the provisioner that should
       * create volumes of this storage class.
       * +optional
       * 
* * map<string, string> parameters = 3; */ public java.lang.String getParametersOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetParameters().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * Parameters holds the parameters for the provisioner that should
       * create volumes of this storage class.
       * +optional
       * 
* * map<string, string> parameters = 3; */ public java.lang.String getParametersOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetParameters().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearParameters() { internalGetMutableParameters().getMutableMap().clear(); return this; } /** * * *
       * Parameters holds the parameters for the provisioner that should
       * create volumes of this storage class.
       * +optional
       * 
* * map<string, string> parameters = 3; */ public Builder removeParameters(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableParameters().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableParameters() { return internalGetMutableParameters().getMutableMap(); } /** * * *
       * Parameters holds the parameters for the provisioner that should
       * create volumes of this storage class.
       * +optional
       * 
* * map<string, string> parameters = 3; */ public Builder putParameters(java.lang.String key, java.lang.String value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableParameters().getMutableMap().put(key, value); return this; } /** * * *
       * Parameters holds the parameters for the provisioner that should
       * create volumes of this storage class.
       * +optional
       * 
* * map<string, string> parameters = 3; */ public Builder putAllParameters(java.util.Map values) { internalGetMutableParameters().getMutableMap().putAll(values); return this; } private java.lang.Object reclaimPolicy_ = ""; /** * * *
       * Dynamically provisioned PersistentVolumes of this storage class are
       * created with this reclaimPolicy. Defaults to Delete.
       * +optional
       * 
* * optional string reclaimPolicy = 4; */ public boolean hasReclaimPolicy() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Dynamically provisioned PersistentVolumes of this storage class are
       * created with this reclaimPolicy. Defaults to Delete.
       * +optional
       * 
* * optional string reclaimPolicy = 4; */ public java.lang.String getReclaimPolicy() { java.lang.Object ref = reclaimPolicy_; 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()) { reclaimPolicy_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Dynamically provisioned PersistentVolumes of this storage class are
       * created with this reclaimPolicy. Defaults to Delete.
       * +optional
       * 
* * optional string reclaimPolicy = 4; */ public com.google.protobuf.ByteString getReclaimPolicyBytes() { java.lang.Object ref = reclaimPolicy_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reclaimPolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Dynamically provisioned PersistentVolumes of this storage class are
       * created with this reclaimPolicy. Defaults to Delete.
       * +optional
       * 
* * optional string reclaimPolicy = 4; */ public Builder setReclaimPolicy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; reclaimPolicy_ = value; onChanged(); return this; } /** * * *
       * Dynamically provisioned PersistentVolumes of this storage class are
       * created with this reclaimPolicy. Defaults to Delete.
       * +optional
       * 
* * optional string reclaimPolicy = 4; */ public Builder clearReclaimPolicy() { bitField0_ = (bitField0_ & ~0x00000008); reclaimPolicy_ = getDefaultInstance().getReclaimPolicy(); onChanged(); return this; } /** * * *
       * Dynamically provisioned PersistentVolumes of this storage class are
       * created with this reclaimPolicy. Defaults to Delete.
       * +optional
       * 
* * optional string reclaimPolicy = 4; */ public Builder setReclaimPolicyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; reclaimPolicy_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList mountOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureMountOptionsIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { mountOptions_ = new com.google.protobuf.LazyStringArrayList(mountOptions_); bitField0_ |= 0x00000010; } } /** * * *
       * Dynamically provisioned PersistentVolumes of this storage class are
       * created with these mountOptions, e.g. ["ro", "soft"]. Not validated -
       * mount of the PVs will simply fail if one is invalid.
       * +optional
       * 
* * repeated string mountOptions = 5; */ public com.google.protobuf.ProtocolStringList getMountOptionsList() { return mountOptions_.getUnmodifiableView(); } /** * * *
       * Dynamically provisioned PersistentVolumes of this storage class are
       * created with these mountOptions, e.g. ["ro", "soft"]. Not validated -
       * mount of the PVs will simply fail if one is invalid.
       * +optional
       * 
* * repeated string mountOptions = 5; */ public int getMountOptionsCount() { return mountOptions_.size(); } /** * * *
       * Dynamically provisioned PersistentVolumes of this storage class are
       * created with these mountOptions, e.g. ["ro", "soft"]. Not validated -
       * mount of the PVs will simply fail if one is invalid.
       * +optional
       * 
* * repeated string mountOptions = 5; */ public java.lang.String getMountOptions(int index) { return mountOptions_.get(index); } /** * * *
       * Dynamically provisioned PersistentVolumes of this storage class are
       * created with these mountOptions, e.g. ["ro", "soft"]. Not validated -
       * mount of the PVs will simply fail if one is invalid.
       * +optional
       * 
* * repeated string mountOptions = 5; */ public com.google.protobuf.ByteString getMountOptionsBytes(int index) { return mountOptions_.getByteString(index); } /** * * *
       * Dynamically provisioned PersistentVolumes of this storage class are
       * created with these mountOptions, e.g. ["ro", "soft"]. Not validated -
       * mount of the PVs will simply fail if one is invalid.
       * +optional
       * 
* * repeated string mountOptions = 5; */ public Builder setMountOptions(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureMountOptionsIsMutable(); mountOptions_.set(index, value); onChanged(); return this; } /** * * *
       * Dynamically provisioned PersistentVolumes of this storage class are
       * created with these mountOptions, e.g. ["ro", "soft"]. Not validated -
       * mount of the PVs will simply fail if one is invalid.
       * +optional
       * 
* * repeated string mountOptions = 5; */ public Builder addMountOptions(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureMountOptionsIsMutable(); mountOptions_.add(value); onChanged(); return this; } /** * * *
       * Dynamically provisioned PersistentVolumes of this storage class are
       * created with these mountOptions, e.g. ["ro", "soft"]. Not validated -
       * mount of the PVs will simply fail if one is invalid.
       * +optional
       * 
* * repeated string mountOptions = 5; */ public Builder addAllMountOptions(java.lang.Iterable values) { ensureMountOptionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mountOptions_); onChanged(); return this; } /** * * *
       * Dynamically provisioned PersistentVolumes of this storage class are
       * created with these mountOptions, e.g. ["ro", "soft"]. Not validated -
       * mount of the PVs will simply fail if one is invalid.
       * +optional
       * 
* * repeated string mountOptions = 5; */ public Builder clearMountOptions() { mountOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * * *
       * Dynamically provisioned PersistentVolumes of this storage class are
       * created with these mountOptions, e.g. ["ro", "soft"]. Not validated -
       * mount of the PVs will simply fail if one is invalid.
       * +optional
       * 
* * repeated string mountOptions = 5; */ public Builder addMountOptionsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureMountOptionsIsMutable(); mountOptions_.add(value); onChanged(); return this; } private boolean allowVolumeExpansion_; /** * * *
       * AllowVolumeExpansion shows whether the storage class allow volume expand
       * +optional
       * 
* * optional bool allowVolumeExpansion = 6; */ public boolean hasAllowVolumeExpansion() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * AllowVolumeExpansion shows whether the storage class allow volume expand
       * +optional
       * 
* * optional bool allowVolumeExpansion = 6; */ public boolean getAllowVolumeExpansion() { return allowVolumeExpansion_; } /** * * *
       * AllowVolumeExpansion shows whether the storage class allow volume expand
       * +optional
       * 
* * optional bool allowVolumeExpansion = 6; */ public Builder setAllowVolumeExpansion(boolean value) { bitField0_ |= 0x00000020; allowVolumeExpansion_ = value; onChanged(); return this; } /** * * *
       * AllowVolumeExpansion shows whether the storage class allow volume expand
       * +optional
       * 
* * optional bool allowVolumeExpansion = 6; */ public Builder clearAllowVolumeExpansion() { bitField0_ = (bitField0_ & ~0x00000020); allowVolumeExpansion_ = false; onChanged(); return this; } private java.lang.Object volumeBindingMode_ = ""; /** * * *
       * VolumeBindingMode indicates how PersistentVolumeClaims should be
       * provisioned and bound.  When unset, VolumeBindingImmediate is used.
       * This field is only honored by servers that enable the VolumeScheduling feature.
       * +optional
       * 
* * optional string volumeBindingMode = 7; */ public boolean hasVolumeBindingMode() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
       * VolumeBindingMode indicates how PersistentVolumeClaims should be
       * provisioned and bound.  When unset, VolumeBindingImmediate is used.
       * This field is only honored by servers that enable the VolumeScheduling feature.
       * +optional
       * 
* * optional string volumeBindingMode = 7; */ public java.lang.String getVolumeBindingMode() { java.lang.Object ref = volumeBindingMode_; 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()) { volumeBindingMode_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * VolumeBindingMode indicates how PersistentVolumeClaims should be
       * provisioned and bound.  When unset, VolumeBindingImmediate is used.
       * This field is only honored by servers that enable the VolumeScheduling feature.
       * +optional
       * 
* * optional string volumeBindingMode = 7; */ public com.google.protobuf.ByteString getVolumeBindingModeBytes() { java.lang.Object ref = volumeBindingMode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeBindingMode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * VolumeBindingMode indicates how PersistentVolumeClaims should be
       * provisioned and bound.  When unset, VolumeBindingImmediate is used.
       * This field is only honored by servers that enable the VolumeScheduling feature.
       * +optional
       * 
* * optional string volumeBindingMode = 7; */ public Builder setVolumeBindingMode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; volumeBindingMode_ = value; onChanged(); return this; } /** * * *
       * VolumeBindingMode indicates how PersistentVolumeClaims should be
       * provisioned and bound.  When unset, VolumeBindingImmediate is used.
       * This field is only honored by servers that enable the VolumeScheduling feature.
       * +optional
       * 
* * optional string volumeBindingMode = 7; */ public Builder clearVolumeBindingMode() { bitField0_ = (bitField0_ & ~0x00000040); volumeBindingMode_ = getDefaultInstance().getVolumeBindingMode(); onChanged(); return this; } /** * * *
       * VolumeBindingMode indicates how PersistentVolumeClaims should be
       * provisioned and bound.  When unset, VolumeBindingImmediate is used.
       * This field is only honored by servers that enable the VolumeScheduling feature.
       * +optional
       * 
* * optional string volumeBindingMode = 7; */ public Builder setVolumeBindingModeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; volumeBindingMode_ = value; onChanged(); return this; } private java.util.List allowedTopologies_ = java.util.Collections.emptyList(); private void ensureAllowedTopologiesIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { allowedTopologies_ = new java.util.ArrayList( allowedTopologies_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.TopologySelectorTerm, io.kubernetes.client.proto.V1.TopologySelectorTerm.Builder, io.kubernetes.client.proto.V1.TopologySelectorTermOrBuilder> allowedTopologiesBuilder_; /** * * *
       * Restrict the node topologies where volumes can be dynamically provisioned.
       * Each volume plugin defines its own supported topology specifications.
       * An empty TopologySelectorTerm list means there is no topology restriction.
       * This field is only honored by servers that enable the VolumeScheduling feature.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8; */ public java.util.List getAllowedTopologiesList() { if (allowedTopologiesBuilder_ == null) { return java.util.Collections.unmodifiableList(allowedTopologies_); } else { return allowedTopologiesBuilder_.getMessageList(); } } /** * * *
       * Restrict the node topologies where volumes can be dynamically provisioned.
       * Each volume plugin defines its own supported topology specifications.
       * An empty TopologySelectorTerm list means there is no topology restriction.
       * This field is only honored by servers that enable the VolumeScheduling feature.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8; */ public int getAllowedTopologiesCount() { if (allowedTopologiesBuilder_ == null) { return allowedTopologies_.size(); } else { return allowedTopologiesBuilder_.getCount(); } } /** * * *
       * Restrict the node topologies where volumes can be dynamically provisioned.
       * Each volume plugin defines its own supported topology specifications.
       * An empty TopologySelectorTerm list means there is no topology restriction.
       * This field is only honored by servers that enable the VolumeScheduling feature.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8; */ public io.kubernetes.client.proto.V1.TopologySelectorTerm getAllowedTopologies(int index) { if (allowedTopologiesBuilder_ == null) { return allowedTopologies_.get(index); } else { return allowedTopologiesBuilder_.getMessage(index); } } /** * * *
       * Restrict the node topologies where volumes can be dynamically provisioned.
       * Each volume plugin defines its own supported topology specifications.
       * An empty TopologySelectorTerm list means there is no topology restriction.
       * This field is only honored by servers that enable the VolumeScheduling feature.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8; */ public Builder setAllowedTopologies( int index, io.kubernetes.client.proto.V1.TopologySelectorTerm value) { if (allowedTopologiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAllowedTopologiesIsMutable(); allowedTopologies_.set(index, value); onChanged(); } else { allowedTopologiesBuilder_.setMessage(index, value); } return this; } /** * * *
       * Restrict the node topologies where volumes can be dynamically provisioned.
       * Each volume plugin defines its own supported topology specifications.
       * An empty TopologySelectorTerm list means there is no topology restriction.
       * This field is only honored by servers that enable the VolumeScheduling feature.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8; */ public Builder setAllowedTopologies( int index, io.kubernetes.client.proto.V1.TopologySelectorTerm.Builder builderForValue) { if (allowedTopologiesBuilder_ == null) { ensureAllowedTopologiesIsMutable(); allowedTopologies_.set(index, builderForValue.build()); onChanged(); } else { allowedTopologiesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Restrict the node topologies where volumes can be dynamically provisioned.
       * Each volume plugin defines its own supported topology specifications.
       * An empty TopologySelectorTerm list means there is no topology restriction.
       * This field is only honored by servers that enable the VolumeScheduling feature.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8; */ public Builder addAllowedTopologies( io.kubernetes.client.proto.V1.TopologySelectorTerm value) { if (allowedTopologiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAllowedTopologiesIsMutable(); allowedTopologies_.add(value); onChanged(); } else { allowedTopologiesBuilder_.addMessage(value); } return this; } /** * * *
       * Restrict the node topologies where volumes can be dynamically provisioned.
       * Each volume plugin defines its own supported topology specifications.
       * An empty TopologySelectorTerm list means there is no topology restriction.
       * This field is only honored by servers that enable the VolumeScheduling feature.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8; */ public Builder addAllowedTopologies( int index, io.kubernetes.client.proto.V1.TopologySelectorTerm value) { if (allowedTopologiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAllowedTopologiesIsMutable(); allowedTopologies_.add(index, value); onChanged(); } else { allowedTopologiesBuilder_.addMessage(index, value); } return this; } /** * * *
       * Restrict the node topologies where volumes can be dynamically provisioned.
       * Each volume plugin defines its own supported topology specifications.
       * An empty TopologySelectorTerm list means there is no topology restriction.
       * This field is only honored by servers that enable the VolumeScheduling feature.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8; */ public Builder addAllowedTopologies( io.kubernetes.client.proto.V1.TopologySelectorTerm.Builder builderForValue) { if (allowedTopologiesBuilder_ == null) { ensureAllowedTopologiesIsMutable(); allowedTopologies_.add(builderForValue.build()); onChanged(); } else { allowedTopologiesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Restrict the node topologies where volumes can be dynamically provisioned.
       * Each volume plugin defines its own supported topology specifications.
       * An empty TopologySelectorTerm list means there is no topology restriction.
       * This field is only honored by servers that enable the VolumeScheduling feature.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8; */ public Builder addAllowedTopologies( int index, io.kubernetes.client.proto.V1.TopologySelectorTerm.Builder builderForValue) { if (allowedTopologiesBuilder_ == null) { ensureAllowedTopologiesIsMutable(); allowedTopologies_.add(index, builderForValue.build()); onChanged(); } else { allowedTopologiesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Restrict the node topologies where volumes can be dynamically provisioned.
       * Each volume plugin defines its own supported topology specifications.
       * An empty TopologySelectorTerm list means there is no topology restriction.
       * This field is only honored by servers that enable the VolumeScheduling feature.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8; */ public Builder addAllAllowedTopologies( java.lang.Iterable values) { if (allowedTopologiesBuilder_ == null) { ensureAllowedTopologiesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedTopologies_); onChanged(); } else { allowedTopologiesBuilder_.addAllMessages(values); } return this; } /** * * *
       * Restrict the node topologies where volumes can be dynamically provisioned.
       * Each volume plugin defines its own supported topology specifications.
       * An empty TopologySelectorTerm list means there is no topology restriction.
       * This field is only honored by servers that enable the VolumeScheduling feature.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8; */ public Builder clearAllowedTopologies() { if (allowedTopologiesBuilder_ == null) { allowedTopologies_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { allowedTopologiesBuilder_.clear(); } return this; } /** * * *
       * Restrict the node topologies where volumes can be dynamically provisioned.
       * Each volume plugin defines its own supported topology specifications.
       * An empty TopologySelectorTerm list means there is no topology restriction.
       * This field is only honored by servers that enable the VolumeScheduling feature.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8; */ public Builder removeAllowedTopologies(int index) { if (allowedTopologiesBuilder_ == null) { ensureAllowedTopologiesIsMutable(); allowedTopologies_.remove(index); onChanged(); } else { allowedTopologiesBuilder_.remove(index); } return this; } /** * * *
       * Restrict the node topologies where volumes can be dynamically provisioned.
       * Each volume plugin defines its own supported topology specifications.
       * An empty TopologySelectorTerm list means there is no topology restriction.
       * This field is only honored by servers that enable the VolumeScheduling feature.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8; */ public io.kubernetes.client.proto.V1.TopologySelectorTerm.Builder getAllowedTopologiesBuilder( int index) { return getAllowedTopologiesFieldBuilder().getBuilder(index); } /** * * *
       * Restrict the node topologies where volumes can be dynamically provisioned.
       * Each volume plugin defines its own supported topology specifications.
       * An empty TopologySelectorTerm list means there is no topology restriction.
       * This field is only honored by servers that enable the VolumeScheduling feature.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8; */ public io.kubernetes.client.proto.V1.TopologySelectorTermOrBuilder getAllowedTopologiesOrBuilder(int index) { if (allowedTopologiesBuilder_ == null) { return allowedTopologies_.get(index); } else { return allowedTopologiesBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Restrict the node topologies where volumes can be dynamically provisioned.
       * Each volume plugin defines its own supported topology specifications.
       * An empty TopologySelectorTerm list means there is no topology restriction.
       * This field is only honored by servers that enable the VolumeScheduling feature.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8; */ public java.util.List getAllowedTopologiesOrBuilderList() { if (allowedTopologiesBuilder_ != null) { return allowedTopologiesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(allowedTopologies_); } } /** * * *
       * Restrict the node topologies where volumes can be dynamically provisioned.
       * Each volume plugin defines its own supported topology specifications.
       * An empty TopologySelectorTerm list means there is no topology restriction.
       * This field is only honored by servers that enable the VolumeScheduling feature.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8; */ public io.kubernetes.client.proto.V1.TopologySelectorTerm.Builder addAllowedTopologiesBuilder() { return getAllowedTopologiesFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.TopologySelectorTerm.getDefaultInstance()); } /** * * *
       * Restrict the node topologies where volumes can be dynamically provisioned.
       * Each volume plugin defines its own supported topology specifications.
       * An empty TopologySelectorTerm list means there is no topology restriction.
       * This field is only honored by servers that enable the VolumeScheduling feature.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8; */ public io.kubernetes.client.proto.V1.TopologySelectorTerm.Builder addAllowedTopologiesBuilder( int index) { return getAllowedTopologiesFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1.TopologySelectorTerm.getDefaultInstance()); } /** * * *
       * Restrict the node topologies where volumes can be dynamically provisioned.
       * Each volume plugin defines its own supported topology specifications.
       * An empty TopologySelectorTerm list means there is no topology restriction.
       * This field is only honored by servers that enable the VolumeScheduling feature.
       * +optional
       * +listType=atomic
       * 
* * repeated .k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8; */ public java.util.List getAllowedTopologiesBuilderList() { return getAllowedTopologiesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.TopologySelectorTerm, io.kubernetes.client.proto.V1.TopologySelectorTerm.Builder, io.kubernetes.client.proto.V1.TopologySelectorTermOrBuilder> getAllowedTopologiesFieldBuilder() { if (allowedTopologiesBuilder_ == null) { allowedTopologiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.TopologySelectorTerm, io.kubernetes.client.proto.V1.TopologySelectorTerm.Builder, io.kubernetes.client.proto.V1.TopologySelectorTermOrBuilder>( allowedTopologies_, ((bitField0_ & 0x00000080) == 0x00000080), getParentForChildren(), isClean()); allowedTopologies_ = null; } return allowedTopologiesBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.storage.v1beta1.StorageClass) } // @@protoc_insertion_point(class_scope:k8s.io.api.storage.v1beta1.StorageClass) private static final io.kubernetes.client.proto.V1beta1Storage.StorageClass DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Storage.StorageClass(); } public static io.kubernetes.client.proto.V1beta1Storage.StorageClass getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StorageClass parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StorageClass(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.V1beta1Storage.StorageClass getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StorageClassListOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.storage.v1beta1.StorageClassList) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard list 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 list 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 list 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 is the list of StorageClasses
     * 
* * repeated .k8s.io.api.storage.v1beta1.StorageClass items = 2; */ java.util.List getItemsList(); /** * * *
     * Items is the list of StorageClasses
     * 
* * repeated .k8s.io.api.storage.v1beta1.StorageClass items = 2; */ io.kubernetes.client.proto.V1beta1Storage.StorageClass getItems(int index); /** * * *
     * Items is the list of StorageClasses
     * 
* * repeated .k8s.io.api.storage.v1beta1.StorageClass items = 2; */ int getItemsCount(); /** * * *
     * Items is the list of StorageClasses
     * 
* * repeated .k8s.io.api.storage.v1beta1.StorageClass items = 2; */ java.util.List getItemsOrBuilderList(); /** * * *
     * Items is the list of StorageClasses
     * 
* * repeated .k8s.io.api.storage.v1beta1.StorageClass items = 2; */ io.kubernetes.client.proto.V1beta1Storage.StorageClassOrBuilder getItemsOrBuilder(int index); } /** * * *
   * StorageClassList is a collection of storage classes.
   * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.StorageClassList} */ public static final class StorageClassList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.storage.v1beta1.StorageClassList) StorageClassListOrBuilder { private static final long serialVersionUID = 0L; // Use StorageClassList.newBuilder() to construct. private StorageClassList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StorageClassList() { items_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StorageClassList( 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.V1beta1Storage.StorageClass>(); mutable_bitField0_ |= 0x00000002; } items_.add( input.readMessage( io.kubernetes.client.proto.V1beta1Storage.StorageClass.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.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_StorageClassList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_StorageClassList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.StorageClassList.class, io.kubernetes.client.proto.V1beta1Storage.StorageClassList.Builder.class); } private int bitField0_; public static final int METADATA_FIELD_NUMBER = 1; private io.kubernetes.client.proto.Meta.ListMeta metadata_; /** * * *
     * Standard list 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 list 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 list 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 is the list of StorageClasses
     * 
* * repeated .k8s.io.api.storage.v1beta1.StorageClass items = 2; */ public java.util.List getItemsList() { return items_; } /** * * *
     * Items is the list of StorageClasses
     * 
* * repeated .k8s.io.api.storage.v1beta1.StorageClass items = 2; */ public java.util.List getItemsOrBuilderList() { return items_; } /** * * *
     * Items is the list of StorageClasses
     * 
* * repeated .k8s.io.api.storage.v1beta1.StorageClass items = 2; */ public int getItemsCount() { return items_.size(); } /** * * *
     * Items is the list of StorageClasses
     * 
* * repeated .k8s.io.api.storage.v1beta1.StorageClass items = 2; */ public io.kubernetes.client.proto.V1beta1Storage.StorageClass getItems(int index) { return items_.get(index); } /** * * *
     * Items is the list of StorageClasses
     * 
* * repeated .k8s.io.api.storage.v1beta1.StorageClass items = 2; */ public io.kubernetes.client.proto.V1beta1Storage.StorageClassOrBuilder 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.V1beta1Storage.StorageClassList)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Storage.StorageClassList other = (io.kubernetes.client.proto.V1beta1Storage.StorageClassList) 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.V1beta1Storage.StorageClassList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.StorageClassList 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.V1beta1Storage.StorageClassList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.StorageClassList 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.V1beta1Storage.StorageClassList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.StorageClassList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Storage.StorageClassList parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.StorageClassList 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.V1beta1Storage.StorageClassList parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.StorageClassList 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.V1beta1Storage.StorageClassList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.StorageClassList 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.V1beta1Storage.StorageClassList 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; } /** * * *
     * StorageClassList is a collection of storage classes.
     * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.StorageClassList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.storage.v1beta1.StorageClassList) io.kubernetes.client.proto.V1beta1Storage.StorageClassListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_StorageClassList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_StorageClassList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.StorageClassList.class, io.kubernetes.client.proto.V1beta1Storage.StorageClassList.Builder.class); } // Construct using io.kubernetes.client.proto.V1beta1Storage.StorageClassList.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.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_StorageClassList_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.StorageClassList getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Storage.StorageClassList.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.StorageClassList build() { io.kubernetes.client.proto.V1beta1Storage.StorageClassList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.StorageClassList buildPartial() { io.kubernetes.client.proto.V1beta1Storage.StorageClassList result = new io.kubernetes.client.proto.V1beta1Storage.StorageClassList(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.V1beta1Storage.StorageClassList) { return mergeFrom((io.kubernetes.client.proto.V1beta1Storage.StorageClassList) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Storage.StorageClassList other) { if (other == io.kubernetes.client.proto.V1beta1Storage.StorageClassList.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.V1beta1Storage.StorageClassList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Storage.StorageClassList) 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 list 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 list 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 list 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 list 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 list 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 list 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 list 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 list 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 list 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 items_ = java.util.Collections.emptyList(); private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { items_ = new java.util.ArrayList( items_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.StorageClass, io.kubernetes.client.proto.V1beta1Storage.StorageClass.Builder, io.kubernetes.client.proto.V1beta1Storage.StorageClassOrBuilder> itemsBuilder_; /** * * *
       * Items is the list of StorageClasses
       * 
* * repeated .k8s.io.api.storage.v1beta1.StorageClass items = 2; */ public java.util.List getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { return itemsBuilder_.getMessageList(); } } /** * * *
       * Items is the list of StorageClasses
       * 
* * repeated .k8s.io.api.storage.v1beta1.StorageClass items = 2; */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** * * *
       * Items is the list of StorageClasses
       * 
* * repeated .k8s.io.api.storage.v1beta1.StorageClass items = 2; */ public io.kubernetes.client.proto.V1beta1Storage.StorageClass getItems(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** * * *
       * Items is the list of StorageClasses
       * 
* * repeated .k8s.io.api.storage.v1beta1.StorageClass items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.V1beta1Storage.StorageClass value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.set(index, value); onChanged(); } else { itemsBuilder_.setMessage(index, value); } return this; } /** * * *
       * Items is the list of StorageClasses
       * 
* * repeated .k8s.io.api.storage.v1beta1.StorageClass items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.V1beta1Storage.StorageClass.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Items is the list of StorageClasses
       * 
* * repeated .k8s.io.api.storage.v1beta1.StorageClass items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1beta1Storage.StorageClass value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(value); onChanged(); } else { itemsBuilder_.addMessage(value); } return this; } /** * * *
       * Items is the list of StorageClasses
       * 
* * repeated .k8s.io.api.storage.v1beta1.StorageClass items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.V1beta1Storage.StorageClass value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(index, value); onChanged(); } else { itemsBuilder_.addMessage(index, value); } return this; } /** * * *
       * Items is the list of StorageClasses
       * 
* * repeated .k8s.io.api.storage.v1beta1.StorageClass items = 2; */ public Builder addItems( io.kubernetes.client.proto.V1beta1Storage.StorageClass.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Items is the list of StorageClasses
       * 
* * repeated .k8s.io.api.storage.v1beta1.StorageClass items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.V1beta1Storage.StorageClass.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Items is the list of StorageClasses
       * 
* * repeated .k8s.io.api.storage.v1beta1.StorageClass items = 2; */ public Builder addAllItems( java.lang.Iterable values) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); onChanged(); } else { itemsBuilder_.addAllMessages(values); } return this; } /** * * *
       * Items is the list of StorageClasses
       * 
* * repeated .k8s.io.api.storage.v1beta1.StorageClass items = 2; */ public Builder clearItems() { if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { itemsBuilder_.clear(); } return this; } /** * * *
       * Items is the list of StorageClasses
       * 
* * repeated .k8s.io.api.storage.v1beta1.StorageClass items = 2; */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.remove(index); onChanged(); } else { itemsBuilder_.remove(index); } return this; } /** * * *
       * Items is the list of StorageClasses
       * 
* * repeated .k8s.io.api.storage.v1beta1.StorageClass items = 2; */ public io.kubernetes.client.proto.V1beta1Storage.StorageClass.Builder getItemsBuilder( int index) { return getItemsFieldBuilder().getBuilder(index); } /** * * *
       * Items is the list of StorageClasses
       * 
* * repeated .k8s.io.api.storage.v1beta1.StorageClass items = 2; */ public io.kubernetes.client.proto.V1beta1Storage.StorageClassOrBuilder getItemsOrBuilder( int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Items is the list of StorageClasses
       * 
* * repeated .k8s.io.api.storage.v1beta1.StorageClass items = 2; */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Storage.StorageClassOrBuilder> getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(items_); } } /** * * *
       * Items is the list of StorageClasses
       * 
* * repeated .k8s.io.api.storage.v1beta1.StorageClass items = 2; */ public io.kubernetes.client.proto.V1beta1Storage.StorageClass.Builder addItemsBuilder() { return getItemsFieldBuilder() .addBuilder( io.kubernetes.client.proto.V1beta1Storage.StorageClass.getDefaultInstance()); } /** * * *
       * Items is the list of StorageClasses
       * 
* * repeated .k8s.io.api.storage.v1beta1.StorageClass items = 2; */ public io.kubernetes.client.proto.V1beta1Storage.StorageClass.Builder addItemsBuilder( int index) { return getItemsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1beta1Storage.StorageClass.getDefaultInstance()); } /** * * *
       * Items is the list of StorageClasses
       * 
* * repeated .k8s.io.api.storage.v1beta1.StorageClass items = 2; */ public java.util.List getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.StorageClass, io.kubernetes.client.proto.V1beta1Storage.StorageClass.Builder, io.kubernetes.client.proto.V1beta1Storage.StorageClassOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.StorageClass, io.kubernetes.client.proto.V1beta1Storage.StorageClass.Builder, io.kubernetes.client.proto.V1beta1Storage.StorageClassOrBuilder>( 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.api.storage.v1beta1.StorageClassList) } // @@protoc_insertion_point(class_scope:k8s.io.api.storage.v1beta1.StorageClassList) private static final io.kubernetes.client.proto.V1beta1Storage.StorageClassList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Storage.StorageClassList(); } public static io.kubernetes.client.proto.V1beta1Storage.StorageClassList getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StorageClassList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StorageClassList(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.V1beta1Storage.StorageClassList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TokenRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.storage.v1beta1.TokenRequest) com.google.protobuf.MessageOrBuilder { /** * * *
     * Audience is the intended audience of the token in "TokenRequestSpec".
     * It will default to the audiences of kube apiserver.
     * 
* * optional string audience = 1; */ boolean hasAudience(); /** * * *
     * Audience is the intended audience of the token in "TokenRequestSpec".
     * It will default to the audiences of kube apiserver.
     * 
* * optional string audience = 1; */ java.lang.String getAudience(); /** * * *
     * Audience is the intended audience of the token in "TokenRequestSpec".
     * It will default to the audiences of kube apiserver.
     * 
* * optional string audience = 1; */ com.google.protobuf.ByteString getAudienceBytes(); /** * * *
     * ExpirationSeconds is the duration of validity of the token in "TokenRequestSpec".
     * It has the same default value of "ExpirationSeconds" in "TokenRequestSpec"
     * +optional
     * 
* * optional int64 expirationSeconds = 2; */ boolean hasExpirationSeconds(); /** * * *
     * ExpirationSeconds is the duration of validity of the token in "TokenRequestSpec".
     * It has the same default value of "ExpirationSeconds" in "TokenRequestSpec"
     * +optional
     * 
* * optional int64 expirationSeconds = 2; */ long getExpirationSeconds(); } /** * * *
   * TokenRequest contains parameters of a service account token.
   * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.TokenRequest} */ public static final class TokenRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.storage.v1beta1.TokenRequest) TokenRequestOrBuilder { private static final long serialVersionUID = 0L; // Use TokenRequest.newBuilder() to construct. private TokenRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TokenRequest() { audience_ = ""; expirationSeconds_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TokenRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; audience_ = bs; break; } case 16: { bitField0_ |= 0x00000002; expirationSeconds_ = input.readInt64(); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_TokenRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_TokenRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.TokenRequest.class, io.kubernetes.client.proto.V1beta1Storage.TokenRequest.Builder.class); } private int bitField0_; public static final int AUDIENCE_FIELD_NUMBER = 1; private volatile java.lang.Object audience_; /** * * *
     * Audience is the intended audience of the token in "TokenRequestSpec".
     * It will default to the audiences of kube apiserver.
     * 
* * optional string audience = 1; */ public boolean hasAudience() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Audience is the intended audience of the token in "TokenRequestSpec".
     * It will default to the audiences of kube apiserver.
     * 
* * optional string audience = 1; */ public java.lang.String getAudience() { java.lang.Object ref = audience_; 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()) { audience_ = s; } return s; } } /** * * *
     * Audience is the intended audience of the token in "TokenRequestSpec".
     * It will default to the audiences of kube apiserver.
     * 
* * optional string audience = 1; */ public com.google.protobuf.ByteString getAudienceBytes() { java.lang.Object ref = audience_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); audience_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EXPIRATIONSECONDS_FIELD_NUMBER = 2; private long expirationSeconds_; /** * * *
     * ExpirationSeconds is the duration of validity of the token in "TokenRequestSpec".
     * It has the same default value of "ExpirationSeconds" in "TokenRequestSpec"
     * +optional
     * 
* * optional int64 expirationSeconds = 2; */ public boolean hasExpirationSeconds() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * ExpirationSeconds is the duration of validity of the token in "TokenRequestSpec".
     * It has the same default value of "ExpirationSeconds" in "TokenRequestSpec"
     * +optional
     * 
* * optional int64 expirationSeconds = 2; */ public long getExpirationSeconds() { return expirationSeconds_; } 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, audience_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(2, expirationSeconds_); } 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, audience_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, expirationSeconds_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.kubernetes.client.proto.V1beta1Storage.TokenRequest)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Storage.TokenRequest other = (io.kubernetes.client.proto.V1beta1Storage.TokenRequest) obj; boolean result = true; result = result && (hasAudience() == other.hasAudience()); if (hasAudience()) { result = result && getAudience().equals(other.getAudience()); } result = result && (hasExpirationSeconds() == other.hasExpirationSeconds()); if (hasExpirationSeconds()) { result = result && (getExpirationSeconds() == other.getExpirationSeconds()); } 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 (hasAudience()) { hash = (37 * hash) + AUDIENCE_FIELD_NUMBER; hash = (53 * hash) + getAudience().hashCode(); } if (hasExpirationSeconds()) { hash = (37 * hash) + EXPIRATIONSECONDS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getExpirationSeconds()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Storage.TokenRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.TokenRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Storage.TokenRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.TokenRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Storage.TokenRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.TokenRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Storage.TokenRequest parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.TokenRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Storage.TokenRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.TokenRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Storage.TokenRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.TokenRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( io.kubernetes.client.proto.V1beta1Storage.TokenRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * TokenRequest contains parameters of a service account token.
     * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.TokenRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.storage.v1beta1.TokenRequest) io.kubernetes.client.proto.V1beta1Storage.TokenRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_TokenRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_TokenRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.TokenRequest.class, io.kubernetes.client.proto.V1beta1Storage.TokenRequest.Builder.class); } // Construct using io.kubernetes.client.proto.V1beta1Storage.TokenRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); audience_ = ""; bitField0_ = (bitField0_ & ~0x00000001); expirationSeconds_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_TokenRequest_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.TokenRequest getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Storage.TokenRequest.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.TokenRequest build() { io.kubernetes.client.proto.V1beta1Storage.TokenRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.TokenRequest buildPartial() { io.kubernetes.client.proto.V1beta1Storage.TokenRequest result = new io.kubernetes.client.proto.V1beta1Storage.TokenRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.audience_ = audience_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.expirationSeconds_ = expirationSeconds_; 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.V1beta1Storage.TokenRequest) { return mergeFrom((io.kubernetes.client.proto.V1beta1Storage.TokenRequest) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Storage.TokenRequest other) { if (other == io.kubernetes.client.proto.V1beta1Storage.TokenRequest.getDefaultInstance()) return this; if (other.hasAudience()) { bitField0_ |= 0x00000001; audience_ = other.audience_; onChanged(); } if (other.hasExpirationSeconds()) { setExpirationSeconds(other.getExpirationSeconds()); } 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.V1beta1Storage.TokenRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Storage.TokenRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object audience_ = ""; /** * * *
       * Audience is the intended audience of the token in "TokenRequestSpec".
       * It will default to the audiences of kube apiserver.
       * 
* * optional string audience = 1; */ public boolean hasAudience() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Audience is the intended audience of the token in "TokenRequestSpec".
       * It will default to the audiences of kube apiserver.
       * 
* * optional string audience = 1; */ public java.lang.String getAudience() { java.lang.Object ref = audience_; 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()) { audience_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Audience is the intended audience of the token in "TokenRequestSpec".
       * It will default to the audiences of kube apiserver.
       * 
* * optional string audience = 1; */ public com.google.protobuf.ByteString getAudienceBytes() { java.lang.Object ref = audience_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); audience_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Audience is the intended audience of the token in "TokenRequestSpec".
       * It will default to the audiences of kube apiserver.
       * 
* * optional string audience = 1; */ public Builder setAudience(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; audience_ = value; onChanged(); return this; } /** * * *
       * Audience is the intended audience of the token in "TokenRequestSpec".
       * It will default to the audiences of kube apiserver.
       * 
* * optional string audience = 1; */ public Builder clearAudience() { bitField0_ = (bitField0_ & ~0x00000001); audience_ = getDefaultInstance().getAudience(); onChanged(); return this; } /** * * *
       * Audience is the intended audience of the token in "TokenRequestSpec".
       * It will default to the audiences of kube apiserver.
       * 
* * optional string audience = 1; */ public Builder setAudienceBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; audience_ = value; onChanged(); return this; } private long expirationSeconds_; /** * * *
       * ExpirationSeconds is the duration of validity of the token in "TokenRequestSpec".
       * It has the same default value of "ExpirationSeconds" in "TokenRequestSpec"
       * +optional
       * 
* * optional int64 expirationSeconds = 2; */ public boolean hasExpirationSeconds() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * ExpirationSeconds is the duration of validity of the token in "TokenRequestSpec".
       * It has the same default value of "ExpirationSeconds" in "TokenRequestSpec"
       * +optional
       * 
* * optional int64 expirationSeconds = 2; */ public long getExpirationSeconds() { return expirationSeconds_; } /** * * *
       * ExpirationSeconds is the duration of validity of the token in "TokenRequestSpec".
       * It has the same default value of "ExpirationSeconds" in "TokenRequestSpec"
       * +optional
       * 
* * optional int64 expirationSeconds = 2; */ public Builder setExpirationSeconds(long value) { bitField0_ |= 0x00000002; expirationSeconds_ = value; onChanged(); return this; } /** * * *
       * ExpirationSeconds is the duration of validity of the token in "TokenRequestSpec".
       * It has the same default value of "ExpirationSeconds" in "TokenRequestSpec"
       * +optional
       * 
* * optional int64 expirationSeconds = 2; */ public Builder clearExpirationSeconds() { bitField0_ = (bitField0_ & ~0x00000002); expirationSeconds_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.storage.v1beta1.TokenRequest) } // @@protoc_insertion_point(class_scope:k8s.io.api.storage.v1beta1.TokenRequest) private static final io.kubernetes.client.proto.V1beta1Storage.TokenRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Storage.TokenRequest(); } public static io.kubernetes.client.proto.V1beta1Storage.TokenRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TokenRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TokenRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.TokenRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VolumeAttachmentOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.storage.v1beta1.VolumeAttachment) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard object 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 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 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(); /** * * *
     * Specification of the desired attach/detach volume behavior.
     * Populated by the Kubernetes system.
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentSpec spec = 2; */ boolean hasSpec(); /** * * *
     * Specification of the desired attach/detach volume behavior.
     * Populated by the Kubernetes system.
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentSpec spec = 2; */ io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec getSpec(); /** * * *
     * Specification of the desired attach/detach volume behavior.
     * Populated by the Kubernetes system.
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentSpec spec = 2; */ io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpecOrBuilder getSpecOrBuilder(); /** * * *
     * Status of the VolumeAttachment request.
     * Populated by the entity completing the attach or detach
     * operation, i.e. the external-attacher.
     * +optional
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentStatus status = 3; */ boolean hasStatus(); /** * * *
     * Status of the VolumeAttachment request.
     * Populated by the entity completing the attach or detach
     * operation, i.e. the external-attacher.
     * +optional
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentStatus status = 3; */ io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus getStatus(); /** * * *
     * Status of the VolumeAttachment request.
     * Populated by the entity completing the attach or detach
     * operation, i.e. the external-attacher.
     * +optional
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentStatus status = 3; */ io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatusOrBuilder getStatusOrBuilder(); } /** * * *
   * VolumeAttachment captures the intent to attach or detach the specified volume
   * to/from the specified node.
   * VolumeAttachment objects are non-namespaced.
   * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.VolumeAttachment} */ public static final class VolumeAttachment extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.storage.v1beta1.VolumeAttachment) VolumeAttachmentOrBuilder { private static final long serialVersionUID = 0L; // Use VolumeAttachment.newBuilder() to construct. private VolumeAttachment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VolumeAttachment() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VolumeAttachment( 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.V1beta1Storage.VolumeAttachmentSpec.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = spec_.toBuilder(); } spec_ = input.readMessage( io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(spec_); spec_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = status_.toBuilder(); } status_ = input.readMessage( io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus.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.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeAttachment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeAttachment_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment.class, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment.Builder.class); } private int bitField0_; public static final int METADATA_FIELD_NUMBER = 1; private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; /** * * *
     * Standard object 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 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 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.V1beta1Storage.VolumeAttachmentSpec spec_; /** * * *
     * Specification of the desired attach/detach volume behavior.
     * Populated by the Kubernetes system.
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentSpec spec = 2; */ public boolean hasSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Specification of the desired attach/detach volume behavior.
     * Populated by the Kubernetes system.
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentSpec spec = 2; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec getSpec() { return spec_ == null ? io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec.getDefaultInstance() : spec_; } /** * * *
     * Specification of the desired attach/detach volume behavior.
     * Populated by the Kubernetes system.
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentSpec spec = 2; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpecOrBuilder getSpecOrBuilder() { return spec_ == null ? io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec.getDefaultInstance() : spec_; } public static final int STATUS_FIELD_NUMBER = 3; private io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus status_; /** * * *
     * Status of the VolumeAttachment request.
     * Populated by the entity completing the attach or detach
     * operation, i.e. the external-attacher.
     * +optional
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentStatus status = 3; */ public boolean hasStatus() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Status of the VolumeAttachment request.
     * Populated by the entity completing the attach or detach
     * operation, i.e. the external-attacher.
     * +optional
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentStatus status = 3; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus getStatus() { return status_ == null ? io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus.getDefaultInstance() : status_; } /** * * *
     * Status of the VolumeAttachment request.
     * Populated by the entity completing the attach or detach
     * operation, i.e. the external-attacher.
     * +optional
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentStatus status = 3; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatusOrBuilder getStatusOrBuilder() { return status_ == null ? io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus.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.V1beta1Storage.VolumeAttachment)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment other = (io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment) 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.V1beta1Storage.VolumeAttachment parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment 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.V1beta1Storage.VolumeAttachment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment 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.V1beta1Storage.VolumeAttachment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment 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.V1beta1Storage.VolumeAttachment parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment 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.V1beta1Storage.VolumeAttachment parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment 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.V1beta1Storage.VolumeAttachment 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; } /** * * *
     * VolumeAttachment captures the intent to attach or detach the specified volume
     * to/from the specified node.
     * VolumeAttachment objects are non-namespaced.
     * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.VolumeAttachment} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.storage.v1beta1.VolumeAttachment) io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeAttachment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeAttachment_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment.class, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment.Builder.class); } // Construct using io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment.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.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeAttachment_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment build() { io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment buildPartial() { io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment result = new io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment(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.V1beta1Storage.VolumeAttachment) { return mergeFrom((io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment other) { if (other == io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment.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.V1beta1Storage.VolumeAttachment parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment) 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 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 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 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 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 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 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 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 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 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.V1beta1Storage.VolumeAttachmentSpec spec_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec.Builder, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpecOrBuilder> specBuilder_; /** * * *
       * Specification of the desired attach/detach volume behavior.
       * Populated by the Kubernetes system.
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentSpec spec = 2; */ public boolean hasSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Specification of the desired attach/detach volume behavior.
       * Populated by the Kubernetes system.
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentSpec spec = 2; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec getSpec() { if (specBuilder_ == null) { return spec_ == null ? io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec.getDefaultInstance() : spec_; } else { return specBuilder_.getMessage(); } } /** * * *
       * Specification of the desired attach/detach volume behavior.
       * Populated by the Kubernetes system.
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentSpec spec = 2; */ public Builder setSpec(io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec value) { if (specBuilder_ == null) { if (value == null) { throw new NullPointerException(); } spec_ = value; onChanged(); } else { specBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Specification of the desired attach/detach volume behavior.
       * Populated by the Kubernetes system.
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentSpec spec = 2; */ public Builder setSpec( io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec.Builder builderForValue) { if (specBuilder_ == null) { spec_ = builderForValue.build(); onChanged(); } else { specBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Specification of the desired attach/detach volume behavior.
       * Populated by the Kubernetes system.
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentSpec spec = 2; */ public Builder mergeSpec( io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec value) { if (specBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && spec_ != null && spec_ != io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec .getDefaultInstance()) { spec_ = io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec.newBuilder(spec_) .mergeFrom(value) .buildPartial(); } else { spec_ = value; } onChanged(); } else { specBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Specification of the desired attach/detach volume behavior.
       * Populated by the Kubernetes system.
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentSpec spec = 2; */ public Builder clearSpec() { if (specBuilder_ == null) { spec_ = null; onChanged(); } else { specBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * Specification of the desired attach/detach volume behavior.
       * Populated by the Kubernetes system.
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentSpec spec = 2; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec.Builder getSpecBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSpecFieldBuilder().getBuilder(); } /** * * *
       * Specification of the desired attach/detach volume behavior.
       * Populated by the Kubernetes system.
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentSpec spec = 2; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpecOrBuilder getSpecOrBuilder() { if (specBuilder_ != null) { return specBuilder_.getMessageOrBuilder(); } else { return spec_ == null ? io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec.getDefaultInstance() : spec_; } } /** * * *
       * Specification of the desired attach/detach volume behavior.
       * Populated by the Kubernetes system.
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentSpec spec = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec.Builder, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpecOrBuilder> getSpecFieldBuilder() { if (specBuilder_ == null) { specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec.Builder, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpecOrBuilder>( getSpec(), getParentForChildren(), isClean()); spec_ = null; } return specBuilder_; } private io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus status_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus.Builder, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatusOrBuilder> statusBuilder_; /** * * *
       * Status of the VolumeAttachment request.
       * Populated by the entity completing the attach or detach
       * operation, i.e. the external-attacher.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentStatus status = 3; */ public boolean hasStatus() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Status of the VolumeAttachment request.
       * Populated by the entity completing the attach or detach
       * operation, i.e. the external-attacher.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentStatus status = 3; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus getStatus() { if (statusBuilder_ == null) { return status_ == null ? io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus .getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** * * *
       * Status of the VolumeAttachment request.
       * Populated by the entity completing the attach or detach
       * operation, i.e. the external-attacher.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentStatus status = 3; */ public Builder setStatus( io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } status_ = value; onChanged(); } else { statusBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Status of the VolumeAttachment request.
       * Populated by the entity completing the attach or detach
       * operation, i.e. the external-attacher.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentStatus status = 3; */ public Builder setStatus( io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); } else { statusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Status of the VolumeAttachment request.
       * Populated by the entity completing the attach or detach
       * operation, i.e. the external-attacher.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentStatus status = 3; */ public Builder mergeStatus( io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus value) { if (statusBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && status_ != null && status_ != io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus .getDefaultInstance()) { status_ = io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus.newBuilder(status_) .mergeFrom(value) .buildPartial(); } else { status_ = value; } onChanged(); } else { statusBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Status of the VolumeAttachment request.
       * Populated by the entity completing the attach or detach
       * operation, i.e. the external-attacher.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentStatus status = 3; */ public Builder clearStatus() { if (statusBuilder_ == null) { status_ = null; onChanged(); } else { statusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * Status of the VolumeAttachment request.
       * Populated by the entity completing the attach or detach
       * operation, i.e. the external-attacher.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentStatus status = 3; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus.Builder getStatusBuilder() { bitField0_ |= 0x00000004; onChanged(); return getStatusFieldBuilder().getBuilder(); } /** * * *
       * Status of the VolumeAttachment request.
       * Populated by the entity completing the attach or detach
       * operation, i.e. the external-attacher.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentStatus status = 3; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { return status_ == null ? io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus .getDefaultInstance() : status_; } } /** * * *
       * Status of the VolumeAttachment request.
       * Populated by the entity completing the attach or detach
       * operation, i.e. the external-attacher.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentStatus status = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus.Builder, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus.Builder, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatusOrBuilder>( getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.storage.v1beta1.VolumeAttachment) } // @@protoc_insertion_point(class_scope:k8s.io.api.storage.v1beta1.VolumeAttachment) private static final io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment(); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VolumeAttachment parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VolumeAttachment(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.V1beta1Storage.VolumeAttachment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VolumeAttachmentListOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.storage.v1beta1.VolumeAttachmentList) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard list 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 list 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 list 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 is the list of VolumeAttachments
     * 
* * repeated .k8s.io.api.storage.v1beta1.VolumeAttachment items = 2; */ java.util.List getItemsList(); /** * * *
     * Items is the list of VolumeAttachments
     * 
* * repeated .k8s.io.api.storage.v1beta1.VolumeAttachment items = 2; */ io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment getItems(int index); /** * * *
     * Items is the list of VolumeAttachments
     * 
* * repeated .k8s.io.api.storage.v1beta1.VolumeAttachment items = 2; */ int getItemsCount(); /** * * *
     * Items is the list of VolumeAttachments
     * 
* * repeated .k8s.io.api.storage.v1beta1.VolumeAttachment items = 2; */ java.util.List getItemsOrBuilderList(); /** * * *
     * Items is the list of VolumeAttachments
     * 
* * repeated .k8s.io.api.storage.v1beta1.VolumeAttachment items = 2; */ io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentOrBuilder getItemsOrBuilder( int index); } /** * * *
   * VolumeAttachmentList is a collection of VolumeAttachment objects.
   * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.VolumeAttachmentList} */ public static final class VolumeAttachmentList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.storage.v1beta1.VolumeAttachmentList) VolumeAttachmentListOrBuilder { private static final long serialVersionUID = 0L; // Use VolumeAttachmentList.newBuilder() to construct. private VolumeAttachmentList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VolumeAttachmentList() { items_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VolumeAttachmentList( 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.V1beta1Storage.VolumeAttachment>(); mutable_bitField0_ |= 0x00000002; } items_.add( input.readMessage( io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment.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.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentList.class, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentList.Builder.class); } private int bitField0_; public static final int METADATA_FIELD_NUMBER = 1; private io.kubernetes.client.proto.Meta.ListMeta metadata_; /** * * *
     * Standard list 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 list 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 list 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 is the list of VolumeAttachments
     * 
* * repeated .k8s.io.api.storage.v1beta1.VolumeAttachment items = 2; */ public java.util.List getItemsList() { return items_; } /** * * *
     * Items is the list of VolumeAttachments
     * 
* * repeated .k8s.io.api.storage.v1beta1.VolumeAttachment items = 2; */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentOrBuilder> getItemsOrBuilderList() { return items_; } /** * * *
     * Items is the list of VolumeAttachments
     * 
* * repeated .k8s.io.api.storage.v1beta1.VolumeAttachment items = 2; */ public int getItemsCount() { return items_.size(); } /** * * *
     * Items is the list of VolumeAttachments
     * 
* * repeated .k8s.io.api.storage.v1beta1.VolumeAttachment items = 2; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment getItems(int index) { return items_.get(index); } /** * * *
     * Items is the list of VolumeAttachments
     * 
* * repeated .k8s.io.api.storage.v1beta1.VolumeAttachment items = 2; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentOrBuilder 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.V1beta1Storage.VolumeAttachmentList)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentList other = (io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentList) 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.V1beta1Storage.VolumeAttachmentList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentList 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.V1beta1Storage.VolumeAttachmentList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentList 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.V1beta1Storage.VolumeAttachmentList parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentList parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentList 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.V1beta1Storage.VolumeAttachmentList parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentList 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.V1beta1Storage.VolumeAttachmentList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentList 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.V1beta1Storage.VolumeAttachmentList 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; } /** * * *
     * VolumeAttachmentList is a collection of VolumeAttachment objects.
     * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.VolumeAttachmentList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.storage.v1beta1.VolumeAttachmentList) io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentList.class, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentList.Builder.class); } // Construct using io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentList.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.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentList_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentList getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentList.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentList build() { io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentList buildPartial() { io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentList result = new io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentList(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.V1beta1Storage.VolumeAttachmentList) { return mergeFrom((io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentList) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentList other) { if (other == io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentList.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.V1beta1Storage.VolumeAttachmentList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentList) 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 list 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 list 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 list 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 list 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 list 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 list 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 list 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 list 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 list 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 items_ = java.util.Collections.emptyList(); private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { items_ = new java.util.ArrayList( items_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment.Builder, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentOrBuilder> itemsBuilder_; /** * * *
       * Items is the list of VolumeAttachments
       * 
* * repeated .k8s.io.api.storage.v1beta1.VolumeAttachment items = 2; */ public java.util.List getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { return itemsBuilder_.getMessageList(); } } /** * * *
       * Items is the list of VolumeAttachments
       * 
* * repeated .k8s.io.api.storage.v1beta1.VolumeAttachment items = 2; */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** * * *
       * Items is the list of VolumeAttachments
       * 
* * repeated .k8s.io.api.storage.v1beta1.VolumeAttachment items = 2; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment getItems(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** * * *
       * Items is the list of VolumeAttachments
       * 
* * repeated .k8s.io.api.storage.v1beta1.VolumeAttachment items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.set(index, value); onChanged(); } else { itemsBuilder_.setMessage(index, value); } return this; } /** * * *
       * Items is the list of VolumeAttachments
       * 
* * repeated .k8s.io.api.storage.v1beta1.VolumeAttachment items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Items is the list of VolumeAttachments
       * 
* * repeated .k8s.io.api.storage.v1beta1.VolumeAttachment items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(value); onChanged(); } else { itemsBuilder_.addMessage(value); } return this; } /** * * *
       * Items is the list of VolumeAttachments
       * 
* * repeated .k8s.io.api.storage.v1beta1.VolumeAttachment items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(index, value); onChanged(); } else { itemsBuilder_.addMessage(index, value); } return this; } /** * * *
       * Items is the list of VolumeAttachments
       * 
* * repeated .k8s.io.api.storage.v1beta1.VolumeAttachment items = 2; */ public Builder addItems( io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Items is the list of VolumeAttachments
       * 
* * repeated .k8s.io.api.storage.v1beta1.VolumeAttachment items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Items is the list of VolumeAttachments
       * 
* * repeated .k8s.io.api.storage.v1beta1.VolumeAttachment items = 2; */ public Builder addAllItems( java.lang.Iterable values) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); onChanged(); } else { itemsBuilder_.addAllMessages(values); } return this; } /** * * *
       * Items is the list of VolumeAttachments
       * 
* * repeated .k8s.io.api.storage.v1beta1.VolumeAttachment items = 2; */ public Builder clearItems() { if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { itemsBuilder_.clear(); } return this; } /** * * *
       * Items is the list of VolumeAttachments
       * 
* * repeated .k8s.io.api.storage.v1beta1.VolumeAttachment items = 2; */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.remove(index); onChanged(); } else { itemsBuilder_.remove(index); } return this; } /** * * *
       * Items is the list of VolumeAttachments
       * 
* * repeated .k8s.io.api.storage.v1beta1.VolumeAttachment items = 2; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment.Builder getItemsBuilder( int index) { return getItemsFieldBuilder().getBuilder(index); } /** * * *
       * Items is the list of VolumeAttachments
       * 
* * repeated .k8s.io.api.storage.v1beta1.VolumeAttachment items = 2; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentOrBuilder getItemsOrBuilder( int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Items is the list of VolumeAttachments
       * 
* * repeated .k8s.io.api.storage.v1beta1.VolumeAttachment items = 2; */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentOrBuilder> getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(items_); } } /** * * *
       * Items is the list of VolumeAttachments
       * 
* * repeated .k8s.io.api.storage.v1beta1.VolumeAttachment items = 2; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment.Builder addItemsBuilder() { return getItemsFieldBuilder() .addBuilder( io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment.getDefaultInstance()); } /** * * *
       * Items is the list of VolumeAttachments
       * 
* * repeated .k8s.io.api.storage.v1beta1.VolumeAttachment items = 2; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment.Builder addItemsBuilder( int index) { return getItemsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment.getDefaultInstance()); } /** * * *
       * Items is the list of VolumeAttachments
       * 
* * repeated .k8s.io.api.storage.v1beta1.VolumeAttachment items = 2; */ public java.util.List getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment.Builder, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachment.Builder, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentOrBuilder>( 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.api.storage.v1beta1.VolumeAttachmentList) } // @@protoc_insertion_point(class_scope:k8s.io.api.storage.v1beta1.VolumeAttachmentList) private static final io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentList(); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentList getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VolumeAttachmentList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VolumeAttachmentList(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.V1beta1Storage.VolumeAttachmentList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VolumeAttachmentSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.storage.v1beta1.VolumeAttachmentSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * Name of the persistent volume to attach.
     * +optional
     * 
* * optional string persistentVolumeName = 1; */ boolean hasPersistentVolumeName(); /** * * *
     * Name of the persistent volume to attach.
     * +optional
     * 
* * optional string persistentVolumeName = 1; */ java.lang.String getPersistentVolumeName(); /** * * *
     * Name of the persistent volume to attach.
     * +optional
     * 
* * optional string persistentVolumeName = 1; */ com.google.protobuf.ByteString getPersistentVolumeNameBytes(); /** * * *
     * inlineVolumeSpec contains all the information necessary to attach
     * a persistent volume defined by a pod's inline VolumeSource. This field
     * is populated only for the CSIMigration feature. It contains
     * translated fields from a pod's inline VolumeSource to a
     * PersistentVolumeSpec. This field is beta-level and is only
     * honored by servers that enabled the CSIMigration feature.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSpec inlineVolumeSpec = 2; */ boolean hasInlineVolumeSpec(); /** * * *
     * inlineVolumeSpec contains all the information necessary to attach
     * a persistent volume defined by a pod's inline VolumeSource. This field
     * is populated only for the CSIMigration feature. It contains
     * translated fields from a pod's inline VolumeSource to a
     * PersistentVolumeSpec. This field is beta-level and is only
     * honored by servers that enabled the CSIMigration feature.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSpec inlineVolumeSpec = 2; */ io.kubernetes.client.proto.V1.PersistentVolumeSpec getInlineVolumeSpec(); /** * * *
     * inlineVolumeSpec contains all the information necessary to attach
     * a persistent volume defined by a pod's inline VolumeSource. This field
     * is populated only for the CSIMigration feature. It contains
     * translated fields from a pod's inline VolumeSource to a
     * PersistentVolumeSpec. This field is beta-level and is only
     * honored by servers that enabled the CSIMigration feature.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSpec inlineVolumeSpec = 2; */ io.kubernetes.client.proto.V1.PersistentVolumeSpecOrBuilder getInlineVolumeSpecOrBuilder(); } /** * * *
   * VolumeAttachmentSource represents a volume that should be attached.
   * Right now only PersistenVolumes can be attached via external attacher,
   * in future we may allow also inline volumes in pods.
   * Exactly one member can be set.
   * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.VolumeAttachmentSource} */ public static final class VolumeAttachmentSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.storage.v1beta1.VolumeAttachmentSource) VolumeAttachmentSourceOrBuilder { private static final long serialVersionUID = 0L; // Use VolumeAttachmentSource.newBuilder() to construct. private VolumeAttachmentSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VolumeAttachmentSource() { persistentVolumeName_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VolumeAttachmentSource( 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; persistentVolumeName_ = bs; break; } case 18: { io.kubernetes.client.proto.V1.PersistentVolumeSpec.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = inlineVolumeSpec_.toBuilder(); } inlineVolumeSpec_ = input.readMessage( io.kubernetes.client.proto.V1.PersistentVolumeSpec.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(inlineVolumeSpec_); inlineVolumeSpec_ = 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.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource.class, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource.Builder.class); } private int bitField0_; public static final int PERSISTENTVOLUMENAME_FIELD_NUMBER = 1; private volatile java.lang.Object persistentVolumeName_; /** * * *
     * Name of the persistent volume to attach.
     * +optional
     * 
* * optional string persistentVolumeName = 1; */ public boolean hasPersistentVolumeName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Name of the persistent volume to attach.
     * +optional
     * 
* * optional string persistentVolumeName = 1; */ public java.lang.String getPersistentVolumeName() { java.lang.Object ref = persistentVolumeName_; 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()) { persistentVolumeName_ = s; } return s; } } /** * * *
     * Name of the persistent volume to attach.
     * +optional
     * 
* * optional string persistentVolumeName = 1; */ public com.google.protobuf.ByteString getPersistentVolumeNameBytes() { java.lang.Object ref = persistentVolumeName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); persistentVolumeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INLINEVOLUMESPEC_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.PersistentVolumeSpec inlineVolumeSpec_; /** * * *
     * inlineVolumeSpec contains all the information necessary to attach
     * a persistent volume defined by a pod's inline VolumeSource. This field
     * is populated only for the CSIMigration feature. It contains
     * translated fields from a pod's inline VolumeSource to a
     * PersistentVolumeSpec. This field is beta-level and is only
     * honored by servers that enabled the CSIMigration feature.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSpec inlineVolumeSpec = 2; */ public boolean hasInlineVolumeSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * inlineVolumeSpec contains all the information necessary to attach
     * a persistent volume defined by a pod's inline VolumeSource. This field
     * is populated only for the CSIMigration feature. It contains
     * translated fields from a pod's inline VolumeSource to a
     * PersistentVolumeSpec. This field is beta-level and is only
     * honored by servers that enabled the CSIMigration feature.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSpec inlineVolumeSpec = 2; */ public io.kubernetes.client.proto.V1.PersistentVolumeSpec getInlineVolumeSpec() { return inlineVolumeSpec_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeSpec.getDefaultInstance() : inlineVolumeSpec_; } /** * * *
     * inlineVolumeSpec contains all the information necessary to attach
     * a persistent volume defined by a pod's inline VolumeSource. This field
     * is populated only for the CSIMigration feature. It contains
     * translated fields from a pod's inline VolumeSource to a
     * PersistentVolumeSpec. This field is beta-level and is only
     * honored by servers that enabled the CSIMigration feature.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSpec inlineVolumeSpec = 2; */ public io.kubernetes.client.proto.V1.PersistentVolumeSpecOrBuilder getInlineVolumeSpecOrBuilder() { return inlineVolumeSpec_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeSpec.getDefaultInstance() : inlineVolumeSpec_; } 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, persistentVolumeName_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getInlineVolumeSpec()); } 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, persistentVolumeName_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInlineVolumeSpec()); } 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.V1beta1Storage.VolumeAttachmentSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource other = (io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource) obj; boolean result = true; result = result && (hasPersistentVolumeName() == other.hasPersistentVolumeName()); if (hasPersistentVolumeName()) { result = result && getPersistentVolumeName().equals(other.getPersistentVolumeName()); } result = result && (hasInlineVolumeSpec() == other.hasInlineVolumeSpec()); if (hasInlineVolumeSpec()) { result = result && getInlineVolumeSpec().equals(other.getInlineVolumeSpec()); } 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 (hasPersistentVolumeName()) { hash = (37 * hash) + PERSISTENTVOLUMENAME_FIELD_NUMBER; hash = (53 * hash) + getPersistentVolumeName().hashCode(); } if (hasInlineVolumeSpec()) { hash = (37 * hash) + INLINEVOLUMESPEC_FIELD_NUMBER; hash = (53 * hash) + getInlineVolumeSpec().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource 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.V1beta1Storage.VolumeAttachmentSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource 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.V1beta1Storage.VolumeAttachmentSource parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource 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.V1beta1Storage.VolumeAttachmentSource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource 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.V1beta1Storage.VolumeAttachmentSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource 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.V1beta1Storage.VolumeAttachmentSource 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; } /** * * *
     * VolumeAttachmentSource represents a volume that should be attached.
     * Right now only PersistenVolumes can be attached via external attacher,
     * in future we may allow also inline volumes in pods.
     * Exactly one member can be set.
     * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.VolumeAttachmentSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.storage.v1beta1.VolumeAttachmentSource) io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource.class, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource.Builder.class); } // Construct using // io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getInlineVolumeSpecFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); persistentVolumeName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (inlineVolumeSpecBuilder_ == null) { inlineVolumeSpec_ = null; } else { inlineVolumeSpecBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource build() { io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource buildPartial() { io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource result = new io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.persistentVolumeName_ = persistentVolumeName_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (inlineVolumeSpecBuilder_ == null) { result.inlineVolumeSpec_ = inlineVolumeSpec_; } else { result.inlineVolumeSpec_ = inlineVolumeSpecBuilder_.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.V1beta1Storage.VolumeAttachmentSource) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource other) { if (other == io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource .getDefaultInstance()) return this; if (other.hasPersistentVolumeName()) { bitField0_ |= 0x00000001; persistentVolumeName_ = other.persistentVolumeName_; onChanged(); } if (other.hasInlineVolumeSpec()) { mergeInlineVolumeSpec(other.getInlineVolumeSpec()); } 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.V1beta1Storage.VolumeAttachmentSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object persistentVolumeName_ = ""; /** * * *
       * Name of the persistent volume to attach.
       * +optional
       * 
* * optional string persistentVolumeName = 1; */ public boolean hasPersistentVolumeName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Name of the persistent volume to attach.
       * +optional
       * 
* * optional string persistentVolumeName = 1; */ public java.lang.String getPersistentVolumeName() { java.lang.Object ref = persistentVolumeName_; 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()) { persistentVolumeName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Name of the persistent volume to attach.
       * +optional
       * 
* * optional string persistentVolumeName = 1; */ public com.google.protobuf.ByteString getPersistentVolumeNameBytes() { java.lang.Object ref = persistentVolumeName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); persistentVolumeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Name of the persistent volume to attach.
       * +optional
       * 
* * optional string persistentVolumeName = 1; */ public Builder setPersistentVolumeName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; persistentVolumeName_ = value; onChanged(); return this; } /** * * *
       * Name of the persistent volume to attach.
       * +optional
       * 
* * optional string persistentVolumeName = 1; */ public Builder clearPersistentVolumeName() { bitField0_ = (bitField0_ & ~0x00000001); persistentVolumeName_ = getDefaultInstance().getPersistentVolumeName(); onChanged(); return this; } /** * * *
       * Name of the persistent volume to attach.
       * +optional
       * 
* * optional string persistentVolumeName = 1; */ public Builder setPersistentVolumeNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; persistentVolumeName_ = value; onChanged(); return this; } private io.kubernetes.client.proto.V1.PersistentVolumeSpec inlineVolumeSpec_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PersistentVolumeSpec, io.kubernetes.client.proto.V1.PersistentVolumeSpec.Builder, io.kubernetes.client.proto.V1.PersistentVolumeSpecOrBuilder> inlineVolumeSpecBuilder_; /** * * *
       * inlineVolumeSpec contains all the information necessary to attach
       * a persistent volume defined by a pod's inline VolumeSource. This field
       * is populated only for the CSIMigration feature. It contains
       * translated fields from a pod's inline VolumeSource to a
       * PersistentVolumeSpec. This field is beta-level and is only
       * honored by servers that enabled the CSIMigration feature.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSpec inlineVolumeSpec = 2; */ public boolean hasInlineVolumeSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * inlineVolumeSpec contains all the information necessary to attach
       * a persistent volume defined by a pod's inline VolumeSource. This field
       * is populated only for the CSIMigration feature. It contains
       * translated fields from a pod's inline VolumeSource to a
       * PersistentVolumeSpec. This field is beta-level and is only
       * honored by servers that enabled the CSIMigration feature.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSpec inlineVolumeSpec = 2; */ public io.kubernetes.client.proto.V1.PersistentVolumeSpec getInlineVolumeSpec() { if (inlineVolumeSpecBuilder_ == null) { return inlineVolumeSpec_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeSpec.getDefaultInstance() : inlineVolumeSpec_; } else { return inlineVolumeSpecBuilder_.getMessage(); } } /** * * *
       * inlineVolumeSpec contains all the information necessary to attach
       * a persistent volume defined by a pod's inline VolumeSource. This field
       * is populated only for the CSIMigration feature. It contains
       * translated fields from a pod's inline VolumeSource to a
       * PersistentVolumeSpec. This field is beta-level and is only
       * honored by servers that enabled the CSIMigration feature.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSpec inlineVolumeSpec = 2; */ public Builder setInlineVolumeSpec(io.kubernetes.client.proto.V1.PersistentVolumeSpec value) { if (inlineVolumeSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } inlineVolumeSpec_ = value; onChanged(); } else { inlineVolumeSpecBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * inlineVolumeSpec contains all the information necessary to attach
       * a persistent volume defined by a pod's inline VolumeSource. This field
       * is populated only for the CSIMigration feature. It contains
       * translated fields from a pod's inline VolumeSource to a
       * PersistentVolumeSpec. This field is beta-level and is only
       * honored by servers that enabled the CSIMigration feature.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSpec inlineVolumeSpec = 2; */ public Builder setInlineVolumeSpec( io.kubernetes.client.proto.V1.PersistentVolumeSpec.Builder builderForValue) { if (inlineVolumeSpecBuilder_ == null) { inlineVolumeSpec_ = builderForValue.build(); onChanged(); } else { inlineVolumeSpecBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * inlineVolumeSpec contains all the information necessary to attach
       * a persistent volume defined by a pod's inline VolumeSource. This field
       * is populated only for the CSIMigration feature. It contains
       * translated fields from a pod's inline VolumeSource to a
       * PersistentVolumeSpec. This field is beta-level and is only
       * honored by servers that enabled the CSIMigration feature.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSpec inlineVolumeSpec = 2; */ public Builder mergeInlineVolumeSpec( io.kubernetes.client.proto.V1.PersistentVolumeSpec value) { if (inlineVolumeSpecBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && inlineVolumeSpec_ != null && inlineVolumeSpec_ != io.kubernetes.client.proto.V1.PersistentVolumeSpec.getDefaultInstance()) { inlineVolumeSpec_ = io.kubernetes.client.proto.V1.PersistentVolumeSpec.newBuilder(inlineVolumeSpec_) .mergeFrom(value) .buildPartial(); } else { inlineVolumeSpec_ = value; } onChanged(); } else { inlineVolumeSpecBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * inlineVolumeSpec contains all the information necessary to attach
       * a persistent volume defined by a pod's inline VolumeSource. This field
       * is populated only for the CSIMigration feature. It contains
       * translated fields from a pod's inline VolumeSource to a
       * PersistentVolumeSpec. This field is beta-level and is only
       * honored by servers that enabled the CSIMigration feature.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSpec inlineVolumeSpec = 2; */ public Builder clearInlineVolumeSpec() { if (inlineVolumeSpecBuilder_ == null) { inlineVolumeSpec_ = null; onChanged(); } else { inlineVolumeSpecBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * inlineVolumeSpec contains all the information necessary to attach
       * a persistent volume defined by a pod's inline VolumeSource. This field
       * is populated only for the CSIMigration feature. It contains
       * translated fields from a pod's inline VolumeSource to a
       * PersistentVolumeSpec. This field is beta-level and is only
       * honored by servers that enabled the CSIMigration feature.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSpec inlineVolumeSpec = 2; */ public io.kubernetes.client.proto.V1.PersistentVolumeSpec.Builder getInlineVolumeSpecBuilder() { bitField0_ |= 0x00000002; onChanged(); return getInlineVolumeSpecFieldBuilder().getBuilder(); } /** * * *
       * inlineVolumeSpec contains all the information necessary to attach
       * a persistent volume defined by a pod's inline VolumeSource. This field
       * is populated only for the CSIMigration feature. It contains
       * translated fields from a pod's inline VolumeSource to a
       * PersistentVolumeSpec. This field is beta-level and is only
       * honored by servers that enabled the CSIMigration feature.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSpec inlineVolumeSpec = 2; */ public io.kubernetes.client.proto.V1.PersistentVolumeSpecOrBuilder getInlineVolumeSpecOrBuilder() { if (inlineVolumeSpecBuilder_ != null) { return inlineVolumeSpecBuilder_.getMessageOrBuilder(); } else { return inlineVolumeSpec_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeSpec.getDefaultInstance() : inlineVolumeSpec_; } } /** * * *
       * inlineVolumeSpec contains all the information necessary to attach
       * a persistent volume defined by a pod's inline VolumeSource. This field
       * is populated only for the CSIMigration feature. It contains
       * translated fields from a pod's inline VolumeSource to a
       * PersistentVolumeSpec. This field is beta-level and is only
       * honored by servers that enabled the CSIMigration feature.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSpec inlineVolumeSpec = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PersistentVolumeSpec, io.kubernetes.client.proto.V1.PersistentVolumeSpec.Builder, io.kubernetes.client.proto.V1.PersistentVolumeSpecOrBuilder> getInlineVolumeSpecFieldBuilder() { if (inlineVolumeSpecBuilder_ == null) { inlineVolumeSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PersistentVolumeSpec, io.kubernetes.client.proto.V1.PersistentVolumeSpec.Builder, io.kubernetes.client.proto.V1.PersistentVolumeSpecOrBuilder>( getInlineVolumeSpec(), getParentForChildren(), isClean()); inlineVolumeSpec_ = null; } return inlineVolumeSpecBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.storage.v1beta1.VolumeAttachmentSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.storage.v1beta1.VolumeAttachmentSource) private static final io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource(); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VolumeAttachmentSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VolumeAttachmentSource(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.V1beta1Storage.VolumeAttachmentSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VolumeAttachmentSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.storage.v1beta1.VolumeAttachmentSpec) com.google.protobuf.MessageOrBuilder { /** * * *
     * Attacher indicates the name of the volume driver that MUST handle this
     * request. This is the name returned by GetPluginName().
     * 
* * optional string attacher = 1; */ boolean hasAttacher(); /** * * *
     * Attacher indicates the name of the volume driver that MUST handle this
     * request. This is the name returned by GetPluginName().
     * 
* * optional string attacher = 1; */ java.lang.String getAttacher(); /** * * *
     * Attacher indicates the name of the volume driver that MUST handle this
     * request. This is the name returned by GetPluginName().
     * 
* * optional string attacher = 1; */ com.google.protobuf.ByteString getAttacherBytes(); /** * * *
     * Source represents the volume that should be attached.
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentSource source = 2; */ boolean hasSource(); /** * * *
     * Source represents the volume that should be attached.
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentSource source = 2; */ io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource getSource(); /** * * *
     * Source represents the volume that should be attached.
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentSource source = 2; */ io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSourceOrBuilder getSourceOrBuilder(); /** * * *
     * The node that the volume should be attached to.
     * 
* * optional string nodeName = 3; */ boolean hasNodeName(); /** * * *
     * The node that the volume should be attached to.
     * 
* * optional string nodeName = 3; */ java.lang.String getNodeName(); /** * * *
     * The node that the volume should be attached to.
     * 
* * optional string nodeName = 3; */ com.google.protobuf.ByteString getNodeNameBytes(); } /** * * *
   * VolumeAttachmentSpec is the specification of a VolumeAttachment request.
   * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.VolumeAttachmentSpec} */ public static final class VolumeAttachmentSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.storage.v1beta1.VolumeAttachmentSpec) VolumeAttachmentSpecOrBuilder { private static final long serialVersionUID = 0L; // Use VolumeAttachmentSpec.newBuilder() to construct. private VolumeAttachmentSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VolumeAttachmentSpec() { attacher_ = ""; nodeName_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VolumeAttachmentSpec( 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; attacher_ = bs; break; } case 18: { io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = source_.toBuilder(); } source_ = input.readMessage( io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(source_); source_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; nodeName_ = 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.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec.class, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec.Builder.class); } private int bitField0_; public static final int ATTACHER_FIELD_NUMBER = 1; private volatile java.lang.Object attacher_; /** * * *
     * Attacher indicates the name of the volume driver that MUST handle this
     * request. This is the name returned by GetPluginName().
     * 
* * optional string attacher = 1; */ public boolean hasAttacher() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Attacher indicates the name of the volume driver that MUST handle this
     * request. This is the name returned by GetPluginName().
     * 
* * optional string attacher = 1; */ public java.lang.String getAttacher() { java.lang.Object ref = attacher_; 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()) { attacher_ = s; } return s; } } /** * * *
     * Attacher indicates the name of the volume driver that MUST handle this
     * request. This is the name returned by GetPluginName().
     * 
* * optional string attacher = 1; */ public com.google.protobuf.ByteString getAttacherBytes() { java.lang.Object ref = attacher_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); attacher_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SOURCE_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource source_; /** * * *
     * Source represents the volume that should be attached.
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentSource source = 2; */ public boolean hasSource() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Source represents the volume that should be attached.
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentSource source = 2; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource getSource() { return source_ == null ? io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource.getDefaultInstance() : source_; } /** * * *
     * Source represents the volume that should be attached.
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentSource source = 2; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSourceOrBuilder getSourceOrBuilder() { return source_ == null ? io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource.getDefaultInstance() : source_; } public static final int NODENAME_FIELD_NUMBER = 3; private volatile java.lang.Object nodeName_; /** * * *
     * The node that the volume should be attached to.
     * 
* * optional string nodeName = 3; */ public boolean hasNodeName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * The node that the volume should be attached to.
     * 
* * optional string nodeName = 3; */ public java.lang.String getNodeName() { java.lang.Object ref = nodeName_; 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()) { nodeName_ = s; } return s; } } /** * * *
     * The node that the volume should be attached to.
     * 
* * optional string nodeName = 3; */ public com.google.protobuf.ByteString getNodeNameBytes() { java.lang.Object ref = nodeName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nodeName_ = 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, attacher_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getSource()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nodeName_); } 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, attacher_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSource()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nodeName_); } 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.V1beta1Storage.VolumeAttachmentSpec)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec other = (io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec) obj; boolean result = true; result = result && (hasAttacher() == other.hasAttacher()); if (hasAttacher()) { result = result && getAttacher().equals(other.getAttacher()); } result = result && (hasSource() == other.hasSource()); if (hasSource()) { result = result && getSource().equals(other.getSource()); } result = result && (hasNodeName() == other.hasNodeName()); if (hasNodeName()) { result = result && getNodeName().equals(other.getNodeName()); } 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 (hasAttacher()) { hash = (37 * hash) + ATTACHER_FIELD_NUMBER; hash = (53 * hash) + getAttacher().hashCode(); } if (hasSource()) { hash = (37 * hash) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + getSource().hashCode(); } if (hasNodeName()) { hash = (37 * hash) + NODENAME_FIELD_NUMBER; hash = (53 * hash) + getNodeName().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec 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.V1beta1Storage.VolumeAttachmentSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec 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.V1beta1Storage.VolumeAttachmentSpec parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec 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.V1beta1Storage.VolumeAttachmentSpec parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec 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.V1beta1Storage.VolumeAttachmentSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec 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.V1beta1Storage.VolumeAttachmentSpec 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; } /** * * *
     * VolumeAttachmentSpec is the specification of a VolumeAttachment request.
     * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.VolumeAttachmentSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.storage.v1beta1.VolumeAttachmentSpec) io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec.class, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec.Builder.class); } // Construct using io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSourceFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); attacher_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (sourceBuilder_ == null) { source_ = null; } else { sourceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); nodeName_ = ""; bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentSpec_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec build() { io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec buildPartial() { io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec result = new io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.attacher_ = attacher_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (sourceBuilder_ == null) { result.source_ = source_; } else { result.source_ = sourceBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.nodeName_ = nodeName_; 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.V1beta1Storage.VolumeAttachmentSpec) { return mergeFrom((io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec other) { if (other == io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec.getDefaultInstance()) return this; if (other.hasAttacher()) { bitField0_ |= 0x00000001; attacher_ = other.attacher_; onChanged(); } if (other.hasSource()) { mergeSource(other.getSource()); } if (other.hasNodeName()) { bitField0_ |= 0x00000004; nodeName_ = other.nodeName_; 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.V1beta1Storage.VolumeAttachmentSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object attacher_ = ""; /** * * *
       * Attacher indicates the name of the volume driver that MUST handle this
       * request. This is the name returned by GetPluginName().
       * 
* * optional string attacher = 1; */ public boolean hasAttacher() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Attacher indicates the name of the volume driver that MUST handle this
       * request. This is the name returned by GetPluginName().
       * 
* * optional string attacher = 1; */ public java.lang.String getAttacher() { java.lang.Object ref = attacher_; 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()) { attacher_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Attacher indicates the name of the volume driver that MUST handle this
       * request. This is the name returned by GetPluginName().
       * 
* * optional string attacher = 1; */ public com.google.protobuf.ByteString getAttacherBytes() { java.lang.Object ref = attacher_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); attacher_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Attacher indicates the name of the volume driver that MUST handle this
       * request. This is the name returned by GetPluginName().
       * 
* * optional string attacher = 1; */ public Builder setAttacher(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; attacher_ = value; onChanged(); return this; } /** * * *
       * Attacher indicates the name of the volume driver that MUST handle this
       * request. This is the name returned by GetPluginName().
       * 
* * optional string attacher = 1; */ public Builder clearAttacher() { bitField0_ = (bitField0_ & ~0x00000001); attacher_ = getDefaultInstance().getAttacher(); onChanged(); return this; } /** * * *
       * Attacher indicates the name of the volume driver that MUST handle this
       * request. This is the name returned by GetPluginName().
       * 
* * optional string attacher = 1; */ public Builder setAttacherBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; attacher_ = value; onChanged(); return this; } private io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource source_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource.Builder, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSourceOrBuilder> sourceBuilder_; /** * * *
       * Source represents the volume that should be attached.
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentSource source = 2; */ public boolean hasSource() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Source represents the volume that should be attached.
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentSource source = 2; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource getSource() { if (sourceBuilder_ == null) { return source_ == null ? io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource .getDefaultInstance() : source_; } else { return sourceBuilder_.getMessage(); } } /** * * *
       * Source represents the volume that should be attached.
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentSource source = 2; */ public Builder setSource( io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource value) { if (sourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } source_ = value; onChanged(); } else { sourceBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Source represents the volume that should be attached.
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentSource source = 2; */ public Builder setSource( io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource.Builder builderForValue) { if (sourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); } else { sourceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Source represents the volume that should be attached.
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentSource source = 2; */ public Builder mergeSource( io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource value) { if (sourceBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && source_ != null && source_ != io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource .getDefaultInstance()) { source_ = io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource.newBuilder(source_) .mergeFrom(value) .buildPartial(); } else { source_ = value; } onChanged(); } else { sourceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Source represents the volume that should be attached.
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentSource source = 2; */ public Builder clearSource() { if (sourceBuilder_ == null) { source_ = null; onChanged(); } else { sourceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * Source represents the volume that should be attached.
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentSource source = 2; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource.Builder getSourceBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSourceFieldBuilder().getBuilder(); } /** * * *
       * Source represents the volume that should be attached.
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentSource source = 2; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSourceOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { return source_ == null ? io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource .getDefaultInstance() : source_; } } /** * * *
       * Source represents the volume that should be attached.
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeAttachmentSource source = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource.Builder, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSourceOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSource.Builder, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSourceOrBuilder>( getSource(), getParentForChildren(), isClean()); source_ = null; } return sourceBuilder_; } private java.lang.Object nodeName_ = ""; /** * * *
       * The node that the volume should be attached to.
       * 
* * optional string nodeName = 3; */ public boolean hasNodeName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * The node that the volume should be attached to.
       * 
* * optional string nodeName = 3; */ public java.lang.String getNodeName() { java.lang.Object ref = nodeName_; 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()) { nodeName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The node that the volume should be attached to.
       * 
* * optional string nodeName = 3; */ public com.google.protobuf.ByteString getNodeNameBytes() { java.lang.Object ref = nodeName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nodeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The node that the volume should be attached to.
       * 
* * optional string nodeName = 3; */ public Builder setNodeName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; nodeName_ = value; onChanged(); return this; } /** * * *
       * The node that the volume should be attached to.
       * 
* * optional string nodeName = 3; */ public Builder clearNodeName() { bitField0_ = (bitField0_ & ~0x00000004); nodeName_ = getDefaultInstance().getNodeName(); onChanged(); return this; } /** * * *
       * The node that the volume should be attached to.
       * 
* * optional string nodeName = 3; */ public Builder setNodeNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; nodeName_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.storage.v1beta1.VolumeAttachmentSpec) } // @@protoc_insertion_point(class_scope:k8s.io.api.storage.v1beta1.VolumeAttachmentSpec) private static final io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec(); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentSpec getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VolumeAttachmentSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VolumeAttachmentSpec(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.V1beta1Storage.VolumeAttachmentSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VolumeAttachmentStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.storage.v1beta1.VolumeAttachmentStatus) com.google.protobuf.MessageOrBuilder { /** * * *
     * Indicates the volume is successfully attached.
     * This field must only be set by the entity completing the attach
     * operation, i.e. the external-attacher.
     * 
* * optional bool attached = 1; */ boolean hasAttached(); /** * * *
     * Indicates the volume is successfully attached.
     * This field must only be set by the entity completing the attach
     * operation, i.e. the external-attacher.
     * 
* * optional bool attached = 1; */ boolean getAttached(); /** * * *
     * Upon successful attach, this field is populated with any
     * information returned by the attach operation that must be passed
     * into subsequent WaitForAttach or Mount calls.
     * This field must only be set by the entity completing the attach
     * operation, i.e. the external-attacher.
     * +optional
     * 
* * map<string, string> attachmentMetadata = 2; */ int getAttachmentMetadataCount(); /** * * *
     * Upon successful attach, this field is populated with any
     * information returned by the attach operation that must be passed
     * into subsequent WaitForAttach or Mount calls.
     * This field must only be set by the entity completing the attach
     * operation, i.e. the external-attacher.
     * +optional
     * 
* * map<string, string> attachmentMetadata = 2; */ boolean containsAttachmentMetadata(java.lang.String key); /** Use {@link #getAttachmentMetadataMap()} instead. */ @java.lang.Deprecated java.util.Map getAttachmentMetadata(); /** * * *
     * Upon successful attach, this field is populated with any
     * information returned by the attach operation that must be passed
     * into subsequent WaitForAttach or Mount calls.
     * This field must only be set by the entity completing the attach
     * operation, i.e. the external-attacher.
     * +optional
     * 
* * map<string, string> attachmentMetadata = 2; */ java.util.Map getAttachmentMetadataMap(); /** * * *
     * Upon successful attach, this field is populated with any
     * information returned by the attach operation that must be passed
     * into subsequent WaitForAttach or Mount calls.
     * This field must only be set by the entity completing the attach
     * operation, i.e. the external-attacher.
     * +optional
     * 
* * map<string, string> attachmentMetadata = 2; */ java.lang.String getAttachmentMetadataOrDefault( java.lang.String key, java.lang.String defaultValue); /** * * *
     * Upon successful attach, this field is populated with any
     * information returned by the attach operation that must be passed
     * into subsequent WaitForAttach or Mount calls.
     * This field must only be set by the entity completing the attach
     * operation, i.e. the external-attacher.
     * +optional
     * 
* * map<string, string> attachmentMetadata = 2; */ java.lang.String getAttachmentMetadataOrThrow(java.lang.String key); /** * * *
     * The last error encountered during attach operation, if any.
     * This field must only be set by the entity completing the attach
     * operation, i.e. the external-attacher.
     * +optional
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeError attachError = 3; */ boolean hasAttachError(); /** * * *
     * The last error encountered during attach operation, if any.
     * This field must only be set by the entity completing the attach
     * operation, i.e. the external-attacher.
     * +optional
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeError attachError = 3; */ io.kubernetes.client.proto.V1beta1Storage.VolumeError getAttachError(); /** * * *
     * The last error encountered during attach operation, if any.
     * This field must only be set by the entity completing the attach
     * operation, i.e. the external-attacher.
     * +optional
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeError attachError = 3; */ io.kubernetes.client.proto.V1beta1Storage.VolumeErrorOrBuilder getAttachErrorOrBuilder(); /** * * *
     * The last error encountered during detach operation, if any.
     * This field must only be set by the entity completing the detach
     * operation, i.e. the external-attacher.
     * +optional
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeError detachError = 4; */ boolean hasDetachError(); /** * * *
     * The last error encountered during detach operation, if any.
     * This field must only be set by the entity completing the detach
     * operation, i.e. the external-attacher.
     * +optional
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeError detachError = 4; */ io.kubernetes.client.proto.V1beta1Storage.VolumeError getDetachError(); /** * * *
     * The last error encountered during detach operation, if any.
     * This field must only be set by the entity completing the detach
     * operation, i.e. the external-attacher.
     * +optional
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeError detachError = 4; */ io.kubernetes.client.proto.V1beta1Storage.VolumeErrorOrBuilder getDetachErrorOrBuilder(); } /** * * *
   * VolumeAttachmentStatus is the status of a VolumeAttachment request.
   * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.VolumeAttachmentStatus} */ public static final class VolumeAttachmentStatus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.storage.v1beta1.VolumeAttachmentStatus) VolumeAttachmentStatusOrBuilder { private static final long serialVersionUID = 0L; // Use VolumeAttachmentStatus.newBuilder() to construct. private VolumeAttachmentStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VolumeAttachmentStatus() { attached_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VolumeAttachmentStatus( 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; attached_ = input.readBool(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { attachmentMetadata_ = com.google.protobuf.MapField.newMapField( AttachmentMetadataDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000002; } com.google.protobuf.MapEntry attachmentMetadata__ = input.readMessage( AttachmentMetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); attachmentMetadata_ .getMutableMap() .put(attachmentMetadata__.getKey(), attachmentMetadata__.getValue()); break; } case 26: { io.kubernetes.client.proto.V1beta1Storage.VolumeError.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = attachError_.toBuilder(); } attachError_ = input.readMessage( io.kubernetes.client.proto.V1beta1Storage.VolumeError.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(attachError_); attachError_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 34: { io.kubernetes.client.proto.V1beta1Storage.VolumeError.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = detachError_.toBuilder(); } detachError_ = input.readMessage( io.kubernetes.client.proto.V1beta1Storage.VolumeError.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(detachError_); detachError_ = 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.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentStatus_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetAttachmentMetadata(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus.class, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus.Builder.class); } private int bitField0_; public static final int ATTACHED_FIELD_NUMBER = 1; private boolean attached_; /** * * *
     * Indicates the volume is successfully attached.
     * This field must only be set by the entity completing the attach
     * operation, i.e. the external-attacher.
     * 
* * optional bool attached = 1; */ public boolean hasAttached() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Indicates the volume is successfully attached.
     * This field must only be set by the entity completing the attach
     * operation, i.e. the external-attacher.
     * 
* * optional bool attached = 1; */ public boolean getAttached() { return attached_; } public static final int ATTACHMENTMETADATA_FIELD_NUMBER = 2; private static final class AttachmentMetadataDefaultEntryHolder { static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry.newDefaultInstance( io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentStatus_AttachmentMetadataEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField attachmentMetadata_; private com.google.protobuf.MapField internalGetAttachmentMetadata() { if (attachmentMetadata_ == null) { return com.google.protobuf.MapField.emptyMapField( AttachmentMetadataDefaultEntryHolder.defaultEntry); } return attachmentMetadata_; } public int getAttachmentMetadataCount() { return internalGetAttachmentMetadata().getMap().size(); } /** * * *
     * Upon successful attach, this field is populated with any
     * information returned by the attach operation that must be passed
     * into subsequent WaitForAttach or Mount calls.
     * This field must only be set by the entity completing the attach
     * operation, i.e. the external-attacher.
     * +optional
     * 
* * map<string, string> attachmentMetadata = 2; */ public boolean containsAttachmentMetadata(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetAttachmentMetadata().getMap().containsKey(key); } /** Use {@link #getAttachmentMetadataMap()} instead. */ @java.lang.Deprecated public java.util.Map getAttachmentMetadata() { return getAttachmentMetadataMap(); } /** * * *
     * Upon successful attach, this field is populated with any
     * information returned by the attach operation that must be passed
     * into subsequent WaitForAttach or Mount calls.
     * This field must only be set by the entity completing the attach
     * operation, i.e. the external-attacher.
     * +optional
     * 
* * map<string, string> attachmentMetadata = 2; */ public java.util.Map getAttachmentMetadataMap() { return internalGetAttachmentMetadata().getMap(); } /** * * *
     * Upon successful attach, this field is populated with any
     * information returned by the attach operation that must be passed
     * into subsequent WaitForAttach or Mount calls.
     * This field must only be set by the entity completing the attach
     * operation, i.e. the external-attacher.
     * +optional
     * 
* * map<string, string> attachmentMetadata = 2; */ public java.lang.String getAttachmentMetadataOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAttachmentMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * Upon successful attach, this field is populated with any
     * information returned by the attach operation that must be passed
     * into subsequent WaitForAttach or Mount calls.
     * This field must only be set by the entity completing the attach
     * operation, i.e. the external-attacher.
     * +optional
     * 
* * map<string, string> attachmentMetadata = 2; */ public java.lang.String getAttachmentMetadataOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAttachmentMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int ATTACHERROR_FIELD_NUMBER = 3; private io.kubernetes.client.proto.V1beta1Storage.VolumeError attachError_; /** * * *
     * The last error encountered during attach operation, if any.
     * This field must only be set by the entity completing the attach
     * operation, i.e. the external-attacher.
     * +optional
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeError attachError = 3; */ public boolean hasAttachError() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * The last error encountered during attach operation, if any.
     * This field must only be set by the entity completing the attach
     * operation, i.e. the external-attacher.
     * +optional
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeError attachError = 3; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeError getAttachError() { return attachError_ == null ? io.kubernetes.client.proto.V1beta1Storage.VolumeError.getDefaultInstance() : attachError_; } /** * * *
     * The last error encountered during attach operation, if any.
     * This field must only be set by the entity completing the attach
     * operation, i.e. the external-attacher.
     * +optional
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeError attachError = 3; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeErrorOrBuilder getAttachErrorOrBuilder() { return attachError_ == null ? io.kubernetes.client.proto.V1beta1Storage.VolumeError.getDefaultInstance() : attachError_; } public static final int DETACHERROR_FIELD_NUMBER = 4; private io.kubernetes.client.proto.V1beta1Storage.VolumeError detachError_; /** * * *
     * The last error encountered during detach operation, if any.
     * This field must only be set by the entity completing the detach
     * operation, i.e. the external-attacher.
     * +optional
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeError detachError = 4; */ public boolean hasDetachError() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * The last error encountered during detach operation, if any.
     * This field must only be set by the entity completing the detach
     * operation, i.e. the external-attacher.
     * +optional
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeError detachError = 4; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeError getDetachError() { return detachError_ == null ? io.kubernetes.client.proto.V1beta1Storage.VolumeError.getDefaultInstance() : detachError_; } /** * * *
     * The last error encountered during detach operation, if any.
     * This field must only be set by the entity completing the detach
     * operation, i.e. the external-attacher.
     * +optional
     * 
* * optional .k8s.io.api.storage.v1beta1.VolumeError detachError = 4; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeErrorOrBuilder getDetachErrorOrBuilder() { return detachError_ == null ? io.kubernetes.client.proto.V1beta1Storage.VolumeError.getDefaultInstance() : detachError_; } 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, attached_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetAttachmentMetadata(), AttachmentMetadataDefaultEntryHolder.defaultEntry, 2); if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(3, getAttachError()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(4, getDetachError()); } 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, attached_); } for (java.util.Map.Entry entry : internalGetAttachmentMetadata().getMap().entrySet()) { com.google.protobuf.MapEntry attachmentMetadata__ = AttachmentMetadataDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, attachmentMetadata__); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAttachError()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDetachError()); } 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.V1beta1Storage.VolumeAttachmentStatus)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus other = (io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus) obj; boolean result = true; result = result && (hasAttached() == other.hasAttached()); if (hasAttached()) { result = result && (getAttached() == other.getAttached()); } result = result && internalGetAttachmentMetadata().equals(other.internalGetAttachmentMetadata()); result = result && (hasAttachError() == other.hasAttachError()); if (hasAttachError()) { result = result && getAttachError().equals(other.getAttachError()); } result = result && (hasDetachError() == other.hasDetachError()); if (hasDetachError()) { result = result && getDetachError().equals(other.getDetachError()); } 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 (hasAttached()) { hash = (37 * hash) + ATTACHED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAttached()); } if (!internalGetAttachmentMetadata().getMap().isEmpty()) { hash = (37 * hash) + ATTACHMENTMETADATA_FIELD_NUMBER; hash = (53 * hash) + internalGetAttachmentMetadata().hashCode(); } if (hasAttachError()) { hash = (37 * hash) + ATTACHERROR_FIELD_NUMBER; hash = (53 * hash) + getAttachError().hashCode(); } if (hasDetachError()) { hash = (37 * hash) + DETACHERROR_FIELD_NUMBER; hash = (53 * hash) + getDetachError().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus 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.V1beta1Storage.VolumeAttachmentStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus 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.V1beta1Storage.VolumeAttachmentStatus parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus 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.V1beta1Storage.VolumeAttachmentStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus 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.V1beta1Storage.VolumeAttachmentStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus 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.V1beta1Storage.VolumeAttachmentStatus 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; } /** * * *
     * VolumeAttachmentStatus is the status of a VolumeAttachment request.
     * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.VolumeAttachmentStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.storage.v1beta1.VolumeAttachmentStatus) io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentStatus_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetAttachmentMetadata(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 2: return internalGetMutableAttachmentMetadata(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus.class, io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus.Builder.class); } // Construct using // io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getAttachErrorFieldBuilder(); getDetachErrorFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); attached_ = false; bitField0_ = (bitField0_ & ~0x00000001); internalGetMutableAttachmentMetadata().clear(); if (attachErrorBuilder_ == null) { attachError_ = null; } else { attachErrorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (detachErrorBuilder_ == null) { detachError_ = null; } else { detachErrorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentStatus_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus build() { io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus buildPartial() { io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus result = new io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.attached_ = attached_; result.attachmentMetadata_ = internalGetAttachmentMetadata(); result.attachmentMetadata_.makeImmutable(); if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } if (attachErrorBuilder_ == null) { result.attachError_ = attachError_; } else { result.attachError_ = attachErrorBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } if (detachErrorBuilder_ == null) { result.detachError_ = detachError_; } else { result.detachError_ = detachErrorBuilder_.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.V1beta1Storage.VolumeAttachmentStatus) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus other) { if (other == io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus .getDefaultInstance()) return this; if (other.hasAttached()) { setAttached(other.getAttached()); } internalGetMutableAttachmentMetadata().mergeFrom(other.internalGetAttachmentMetadata()); if (other.hasAttachError()) { mergeAttachError(other.getAttachError()); } if (other.hasDetachError()) { mergeDetachError(other.getDetachError()); } 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.V1beta1Storage.VolumeAttachmentStatus parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private boolean attached_; /** * * *
       * Indicates the volume is successfully attached.
       * This field must only be set by the entity completing the attach
       * operation, i.e. the external-attacher.
       * 
* * optional bool attached = 1; */ public boolean hasAttached() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Indicates the volume is successfully attached.
       * This field must only be set by the entity completing the attach
       * operation, i.e. the external-attacher.
       * 
* * optional bool attached = 1; */ public boolean getAttached() { return attached_; } /** * * *
       * Indicates the volume is successfully attached.
       * This field must only be set by the entity completing the attach
       * operation, i.e. the external-attacher.
       * 
* * optional bool attached = 1; */ public Builder setAttached(boolean value) { bitField0_ |= 0x00000001; attached_ = value; onChanged(); return this; } /** * * *
       * Indicates the volume is successfully attached.
       * This field must only be set by the entity completing the attach
       * operation, i.e. the external-attacher.
       * 
* * optional bool attached = 1; */ public Builder clearAttached() { bitField0_ = (bitField0_ & ~0x00000001); attached_ = false; onChanged(); return this; } private com.google.protobuf.MapField attachmentMetadata_; private com.google.protobuf.MapField internalGetAttachmentMetadata() { if (attachmentMetadata_ == null) { return com.google.protobuf.MapField.emptyMapField( AttachmentMetadataDefaultEntryHolder.defaultEntry); } return attachmentMetadata_; } private com.google.protobuf.MapField internalGetMutableAttachmentMetadata() { onChanged(); ; if (attachmentMetadata_ == null) { attachmentMetadata_ = com.google.protobuf.MapField.newMapField( AttachmentMetadataDefaultEntryHolder.defaultEntry); } if (!attachmentMetadata_.isMutable()) { attachmentMetadata_ = attachmentMetadata_.copy(); } return attachmentMetadata_; } public int getAttachmentMetadataCount() { return internalGetAttachmentMetadata().getMap().size(); } /** * * *
       * Upon successful attach, this field is populated with any
       * information returned by the attach operation that must be passed
       * into subsequent WaitForAttach or Mount calls.
       * This field must only be set by the entity completing the attach
       * operation, i.e. the external-attacher.
       * +optional
       * 
* * map<string, string> attachmentMetadata = 2; */ public boolean containsAttachmentMetadata(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetAttachmentMetadata().getMap().containsKey(key); } /** Use {@link #getAttachmentMetadataMap()} instead. */ @java.lang.Deprecated public java.util.Map getAttachmentMetadata() { return getAttachmentMetadataMap(); } /** * * *
       * Upon successful attach, this field is populated with any
       * information returned by the attach operation that must be passed
       * into subsequent WaitForAttach or Mount calls.
       * This field must only be set by the entity completing the attach
       * operation, i.e. the external-attacher.
       * +optional
       * 
* * map<string, string> attachmentMetadata = 2; */ public java.util.Map getAttachmentMetadataMap() { return internalGetAttachmentMetadata().getMap(); } /** * * *
       * Upon successful attach, this field is populated with any
       * information returned by the attach operation that must be passed
       * into subsequent WaitForAttach or Mount calls.
       * This field must only be set by the entity completing the attach
       * operation, i.e. the external-attacher.
       * +optional
       * 
* * map<string, string> attachmentMetadata = 2; */ public java.lang.String getAttachmentMetadataOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAttachmentMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * Upon successful attach, this field is populated with any
       * information returned by the attach operation that must be passed
       * into subsequent WaitForAttach or Mount calls.
       * This field must only be set by the entity completing the attach
       * operation, i.e. the external-attacher.
       * +optional
       * 
* * map<string, string> attachmentMetadata = 2; */ public java.lang.String getAttachmentMetadataOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAttachmentMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearAttachmentMetadata() { internalGetMutableAttachmentMetadata().getMutableMap().clear(); return this; } /** * * *
       * Upon successful attach, this field is populated with any
       * information returned by the attach operation that must be passed
       * into subsequent WaitForAttach or Mount calls.
       * This field must only be set by the entity completing the attach
       * operation, i.e. the external-attacher.
       * +optional
       * 
* * map<string, string> attachmentMetadata = 2; */ public Builder removeAttachmentMetadata(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableAttachmentMetadata().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAttachmentMetadata() { return internalGetMutableAttachmentMetadata().getMutableMap(); } /** * * *
       * Upon successful attach, this field is populated with any
       * information returned by the attach operation that must be passed
       * into subsequent WaitForAttach or Mount calls.
       * This field must only be set by the entity completing the attach
       * operation, i.e. the external-attacher.
       * +optional
       * 
* * map<string, string> attachmentMetadata = 2; */ public Builder putAttachmentMetadata(java.lang.String key, java.lang.String value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableAttachmentMetadata().getMutableMap().put(key, value); return this; } /** * * *
       * Upon successful attach, this field is populated with any
       * information returned by the attach operation that must be passed
       * into subsequent WaitForAttach or Mount calls.
       * This field must only be set by the entity completing the attach
       * operation, i.e. the external-attacher.
       * +optional
       * 
* * map<string, string> attachmentMetadata = 2; */ public Builder putAllAttachmentMetadata( java.util.Map values) { internalGetMutableAttachmentMetadata().getMutableMap().putAll(values); return this; } private io.kubernetes.client.proto.V1beta1Storage.VolumeError attachError_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.VolumeError, io.kubernetes.client.proto.V1beta1Storage.VolumeError.Builder, io.kubernetes.client.proto.V1beta1Storage.VolumeErrorOrBuilder> attachErrorBuilder_; /** * * *
       * The last error encountered during attach operation, if any.
       * This field must only be set by the entity completing the attach
       * operation, i.e. the external-attacher.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeError attachError = 3; */ public boolean hasAttachError() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * The last error encountered during attach operation, if any.
       * This field must only be set by the entity completing the attach
       * operation, i.e. the external-attacher.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeError attachError = 3; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeError getAttachError() { if (attachErrorBuilder_ == null) { return attachError_ == null ? io.kubernetes.client.proto.V1beta1Storage.VolumeError.getDefaultInstance() : attachError_; } else { return attachErrorBuilder_.getMessage(); } } /** * * *
       * The last error encountered during attach operation, if any.
       * This field must only be set by the entity completing the attach
       * operation, i.e. the external-attacher.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeError attachError = 3; */ public Builder setAttachError(io.kubernetes.client.proto.V1beta1Storage.VolumeError value) { if (attachErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } attachError_ = value; onChanged(); } else { attachErrorBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * The last error encountered during attach operation, if any.
       * This field must only be set by the entity completing the attach
       * operation, i.e. the external-attacher.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeError attachError = 3; */ public Builder setAttachError( io.kubernetes.client.proto.V1beta1Storage.VolumeError.Builder builderForValue) { if (attachErrorBuilder_ == null) { attachError_ = builderForValue.build(); onChanged(); } else { attachErrorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * The last error encountered during attach operation, if any.
       * This field must only be set by the entity completing the attach
       * operation, i.e. the external-attacher.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeError attachError = 3; */ public Builder mergeAttachError(io.kubernetes.client.proto.V1beta1Storage.VolumeError value) { if (attachErrorBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && attachError_ != null && attachError_ != io.kubernetes.client.proto.V1beta1Storage.VolumeError.getDefaultInstance()) { attachError_ = io.kubernetes.client.proto.V1beta1Storage.VolumeError.newBuilder(attachError_) .mergeFrom(value) .buildPartial(); } else { attachError_ = value; } onChanged(); } else { attachErrorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * The last error encountered during attach operation, if any.
       * This field must only be set by the entity completing the attach
       * operation, i.e. the external-attacher.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeError attachError = 3; */ public Builder clearAttachError() { if (attachErrorBuilder_ == null) { attachError_ = null; onChanged(); } else { attachErrorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * The last error encountered during attach operation, if any.
       * This field must only be set by the entity completing the attach
       * operation, i.e. the external-attacher.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeError attachError = 3; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeError.Builder getAttachErrorBuilder() { bitField0_ |= 0x00000004; onChanged(); return getAttachErrorFieldBuilder().getBuilder(); } /** * * *
       * The last error encountered during attach operation, if any.
       * This field must only be set by the entity completing the attach
       * operation, i.e. the external-attacher.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeError attachError = 3; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeErrorOrBuilder getAttachErrorOrBuilder() { if (attachErrorBuilder_ != null) { return attachErrorBuilder_.getMessageOrBuilder(); } else { return attachError_ == null ? io.kubernetes.client.proto.V1beta1Storage.VolumeError.getDefaultInstance() : attachError_; } } /** * * *
       * The last error encountered during attach operation, if any.
       * This field must only be set by the entity completing the attach
       * operation, i.e. the external-attacher.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeError attachError = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.VolumeError, io.kubernetes.client.proto.V1beta1Storage.VolumeError.Builder, io.kubernetes.client.proto.V1beta1Storage.VolumeErrorOrBuilder> getAttachErrorFieldBuilder() { if (attachErrorBuilder_ == null) { attachErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.VolumeError, io.kubernetes.client.proto.V1beta1Storage.VolumeError.Builder, io.kubernetes.client.proto.V1beta1Storage.VolumeErrorOrBuilder>( getAttachError(), getParentForChildren(), isClean()); attachError_ = null; } return attachErrorBuilder_; } private io.kubernetes.client.proto.V1beta1Storage.VolumeError detachError_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.VolumeError, io.kubernetes.client.proto.V1beta1Storage.VolumeError.Builder, io.kubernetes.client.proto.V1beta1Storage.VolumeErrorOrBuilder> detachErrorBuilder_; /** * * *
       * The last error encountered during detach operation, if any.
       * This field must only be set by the entity completing the detach
       * operation, i.e. the external-attacher.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeError detachError = 4; */ public boolean hasDetachError() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * The last error encountered during detach operation, if any.
       * This field must only be set by the entity completing the detach
       * operation, i.e. the external-attacher.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeError detachError = 4; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeError getDetachError() { if (detachErrorBuilder_ == null) { return detachError_ == null ? io.kubernetes.client.proto.V1beta1Storage.VolumeError.getDefaultInstance() : detachError_; } else { return detachErrorBuilder_.getMessage(); } } /** * * *
       * The last error encountered during detach operation, if any.
       * This field must only be set by the entity completing the detach
       * operation, i.e. the external-attacher.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeError detachError = 4; */ public Builder setDetachError(io.kubernetes.client.proto.V1beta1Storage.VolumeError value) { if (detachErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } detachError_ = value; onChanged(); } else { detachErrorBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * The last error encountered during detach operation, if any.
       * This field must only be set by the entity completing the detach
       * operation, i.e. the external-attacher.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeError detachError = 4; */ public Builder setDetachError( io.kubernetes.client.proto.V1beta1Storage.VolumeError.Builder builderForValue) { if (detachErrorBuilder_ == null) { detachError_ = builderForValue.build(); onChanged(); } else { detachErrorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * * *
       * The last error encountered during detach operation, if any.
       * This field must only be set by the entity completing the detach
       * operation, i.e. the external-attacher.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeError detachError = 4; */ public Builder mergeDetachError(io.kubernetes.client.proto.V1beta1Storage.VolumeError value) { if (detachErrorBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && detachError_ != null && detachError_ != io.kubernetes.client.proto.V1beta1Storage.VolumeError.getDefaultInstance()) { detachError_ = io.kubernetes.client.proto.V1beta1Storage.VolumeError.newBuilder(detachError_) .mergeFrom(value) .buildPartial(); } else { detachError_ = value; } onChanged(); } else { detachErrorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * The last error encountered during detach operation, if any.
       * This field must only be set by the entity completing the detach
       * operation, i.e. the external-attacher.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeError detachError = 4; */ public Builder clearDetachError() { if (detachErrorBuilder_ == null) { detachError_ = null; onChanged(); } else { detachErrorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * * *
       * The last error encountered during detach operation, if any.
       * This field must only be set by the entity completing the detach
       * operation, i.e. the external-attacher.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeError detachError = 4; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeError.Builder getDetachErrorBuilder() { bitField0_ |= 0x00000008; onChanged(); return getDetachErrorFieldBuilder().getBuilder(); } /** * * *
       * The last error encountered during detach operation, if any.
       * This field must only be set by the entity completing the detach
       * operation, i.e. the external-attacher.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeError detachError = 4; */ public io.kubernetes.client.proto.V1beta1Storage.VolumeErrorOrBuilder getDetachErrorOrBuilder() { if (detachErrorBuilder_ != null) { return detachErrorBuilder_.getMessageOrBuilder(); } else { return detachError_ == null ? io.kubernetes.client.proto.V1beta1Storage.VolumeError.getDefaultInstance() : detachError_; } } /** * * *
       * The last error encountered during detach operation, if any.
       * This field must only be set by the entity completing the detach
       * operation, i.e. the external-attacher.
       * +optional
       * 
* * optional .k8s.io.api.storage.v1beta1.VolumeError detachError = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.VolumeError, io.kubernetes.client.proto.V1beta1Storage.VolumeError.Builder, io.kubernetes.client.proto.V1beta1Storage.VolumeErrorOrBuilder> getDetachErrorFieldBuilder() { if (detachErrorBuilder_ == null) { detachErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Storage.VolumeError, io.kubernetes.client.proto.V1beta1Storage.VolumeError.Builder, io.kubernetes.client.proto.V1beta1Storage.VolumeErrorOrBuilder>( getDetachError(), getParentForChildren(), isClean()); detachError_ = null; } return detachErrorBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.storage.v1beta1.VolumeAttachmentStatus) } // @@protoc_insertion_point(class_scope:k8s.io.api.storage.v1beta1.VolumeAttachmentStatus) private static final io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus(); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeAttachmentStatus getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VolumeAttachmentStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VolumeAttachmentStatus(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.V1beta1Storage.VolumeAttachmentStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VolumeErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.storage.v1beta1.VolumeError) com.google.protobuf.MessageOrBuilder { /** * * *
     * Time the error was encountered.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time time = 1; */ boolean hasTime(); /** * * *
     * Time the error was encountered.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time time = 1; */ io.kubernetes.client.proto.Meta.Time getTime(); /** * * *
     * Time the error was encountered.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time time = 1; */ io.kubernetes.client.proto.Meta.TimeOrBuilder getTimeOrBuilder(); /** * * *
     * String detailing the error encountered during Attach or Detach operation.
     * This string may be logged, so it should not contain sensitive
     * information.
     * +optional
     * 
* * optional string message = 2; */ boolean hasMessage(); /** * * *
     * String detailing the error encountered during Attach or Detach operation.
     * This string may be logged, so it should not contain sensitive
     * information.
     * +optional
     * 
* * optional string message = 2; */ java.lang.String getMessage(); /** * * *
     * String detailing the error encountered during Attach or Detach operation.
     * This string may be logged, so it should not contain sensitive
     * information.
     * +optional
     * 
* * optional string message = 2; */ com.google.protobuf.ByteString getMessageBytes(); } /** * * *
   * VolumeError captures an error encountered during a volume operation.
   * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.VolumeError} */ public static final class VolumeError extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.storage.v1beta1.VolumeError) VolumeErrorOrBuilder { private static final long serialVersionUID = 0L; // Use VolumeError.newBuilder() to construct. private VolumeError(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VolumeError() { message_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VolumeError( 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.Time.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = time_.toBuilder(); } time_ = input.readMessage( io.kubernetes.client.proto.Meta.Time.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(time_); time_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; 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.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeError_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.VolumeError.class, io.kubernetes.client.proto.V1beta1Storage.VolumeError.Builder.class); } private int bitField0_; public static final int TIME_FIELD_NUMBER = 1; private io.kubernetes.client.proto.Meta.Time time_; /** * * *
     * Time the error was encountered.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time time = 1; */ public boolean hasTime() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Time the error was encountered.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time time = 1; */ public io.kubernetes.client.proto.Meta.Time getTime() { return time_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : time_; } /** * * *
     * Time the error was encountered.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time time = 1; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getTimeOrBuilder() { return time_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : time_; } public static final int MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object message_; /** * * *
     * String detailing the error encountered during Attach or Detach operation.
     * This string may be logged, so it should not contain sensitive
     * information.
     * +optional
     * 
* * optional string message = 2; */ public boolean hasMessage() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * String detailing the error encountered during Attach or Detach operation.
     * This string may be logged, so it should not contain sensitive
     * information.
     * +optional
     * 
* * optional string message = 2; */ 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; } } /** * * *
     * String detailing the error encountered during Attach or Detach operation.
     * This string may be logged, so it should not contain sensitive
     * information.
     * +optional
     * 
* * optional string message = 2; */ 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)) { output.writeMessage(1, getTime()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, 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.CodedOutputStream.computeMessageSize(1, getTime()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, 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.V1beta1Storage.VolumeError)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Storage.VolumeError other = (io.kubernetes.client.proto.V1beta1Storage.VolumeError) obj; boolean result = true; result = result && (hasTime() == other.hasTime()); if (hasTime()) { result = result && getTime().equals(other.getTime()); } 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 (hasTime()) { hash = (37 * hash) + TIME_FIELD_NUMBER; hash = (53 * hash) + getTime().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.V1beta1Storage.VolumeError parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeError 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.V1beta1Storage.VolumeError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeError 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.V1beta1Storage.VolumeError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeError parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeError parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeError 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.V1beta1Storage.VolumeError parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeError 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.V1beta1Storage.VolumeError parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeError 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.V1beta1Storage.VolumeError 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; } /** * * *
     * VolumeError captures an error encountered during a volume operation.
     * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.VolumeError} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.storage.v1beta1.VolumeError) io.kubernetes.client.proto.V1beta1Storage.VolumeErrorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeError_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.VolumeError.class, io.kubernetes.client.proto.V1beta1Storage.VolumeError.Builder.class); } // Construct using io.kubernetes.client.proto.V1beta1Storage.VolumeError.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getTimeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (timeBuilder_ == null) { time_ = null; } else { timeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); message_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeError_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.VolumeError getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Storage.VolumeError.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.VolumeError build() { io.kubernetes.client.proto.V1beta1Storage.VolumeError result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.VolumeError buildPartial() { io.kubernetes.client.proto.V1beta1Storage.VolumeError result = new io.kubernetes.client.proto.V1beta1Storage.VolumeError(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (timeBuilder_ == null) { result.time_ = time_; } else { result.time_ = timeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } 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.V1beta1Storage.VolumeError) { return mergeFrom((io.kubernetes.client.proto.V1beta1Storage.VolumeError) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Storage.VolumeError other) { if (other == io.kubernetes.client.proto.V1beta1Storage.VolumeError.getDefaultInstance()) return this; if (other.hasTime()) { mergeTime(other.getTime()); } if (other.hasMessage()) { bitField0_ |= 0x00000002; 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.V1beta1Storage.VolumeError parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Storage.VolumeError) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.Meta.Time time_ = 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> timeBuilder_; /** * * *
       * Time the error was encountered.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time time = 1; */ public boolean hasTime() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Time the error was encountered.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time time = 1; */ public io.kubernetes.client.proto.Meta.Time getTime() { if (timeBuilder_ == null) { return time_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : time_; } else { return timeBuilder_.getMessage(); } } /** * * *
       * Time the error was encountered.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time time = 1; */ public Builder setTime(io.kubernetes.client.proto.Meta.Time value) { if (timeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } time_ = value; onChanged(); } else { timeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Time the error was encountered.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time time = 1; */ public Builder setTime(io.kubernetes.client.proto.Meta.Time.Builder builderForValue) { if (timeBuilder_ == null) { time_ = builderForValue.build(); onChanged(); } else { timeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Time the error was encountered.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time time = 1; */ public Builder mergeTime(io.kubernetes.client.proto.Meta.Time value) { if (timeBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && time_ != null && time_ != io.kubernetes.client.proto.Meta.Time.getDefaultInstance()) { time_ = io.kubernetes.client.proto.Meta.Time.newBuilder(time_) .mergeFrom(value) .buildPartial(); } else { time_ = value; } onChanged(); } else { timeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Time the error was encountered.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time time = 1; */ public Builder clearTime() { if (timeBuilder_ == null) { time_ = null; onChanged(); } else { timeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * Time the error was encountered.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time time = 1; */ public io.kubernetes.client.proto.Meta.Time.Builder getTimeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTimeFieldBuilder().getBuilder(); } /** * * *
       * Time the error was encountered.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time time = 1; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getTimeOrBuilder() { if (timeBuilder_ != null) { return timeBuilder_.getMessageOrBuilder(); } else { return time_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : time_; } } /** * * *
       * Time the error was encountered.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> getTimeFieldBuilder() { if (timeBuilder_ == null) { timeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder>( getTime(), getParentForChildren(), isClean()); time_ = null; } return timeBuilder_; } private java.lang.Object message_ = ""; /** * * *
       * String detailing the error encountered during Attach or Detach operation.
       * This string may be logged, so it should not contain sensitive
       * information.
       * +optional
       * 
* * optional string message = 2; */ public boolean hasMessage() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * String detailing the error encountered during Attach or Detach operation.
       * This string may be logged, so it should not contain sensitive
       * information.
       * +optional
       * 
* * optional string message = 2; */ 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; } } /** * * *
       * String detailing the error encountered during Attach or Detach operation.
       * This string may be logged, so it should not contain sensitive
       * information.
       * +optional
       * 
* * optional string message = 2; */ 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; } } /** * * *
       * String detailing the error encountered during Attach or Detach operation.
       * This string may be logged, so it should not contain sensitive
       * information.
       * +optional
       * 
* * optional string message = 2; */ public Builder setMessage(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; message_ = value; onChanged(); return this; } /** * * *
       * String detailing the error encountered during Attach or Detach operation.
       * This string may be logged, so it should not contain sensitive
       * information.
       * +optional
       * 
* * optional string message = 2; */ public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000002); message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** * * *
       * String detailing the error encountered during Attach or Detach operation.
       * This string may be logged, so it should not contain sensitive
       * information.
       * +optional
       * 
* * optional string message = 2; */ public Builder setMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; 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.api.storage.v1beta1.VolumeError) } // @@protoc_insertion_point(class_scope:k8s.io.api.storage.v1beta1.VolumeError) private static final io.kubernetes.client.proto.V1beta1Storage.VolumeError DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Storage.VolumeError(); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeError getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VolumeError parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VolumeError(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.V1beta1Storage.VolumeError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VolumeNodeResourcesOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.storage.v1beta1.VolumeNodeResources) com.google.protobuf.MessageOrBuilder { /** * * *
     * Maximum number of unique volumes managed by the CSI driver that can be used on a node.
     * A volume that is both attached and mounted on a node is considered to be used once, not twice.
     * The same rule applies for a unique volume that is shared among multiple pods on the same node.
     * If this field is nil, then the supported number of volumes on this node is unbounded.
     * +optional
     * 
* * optional int32 count = 1; */ boolean hasCount(); /** * * *
     * Maximum number of unique volumes managed by the CSI driver that can be used on a node.
     * A volume that is both attached and mounted on a node is considered to be used once, not twice.
     * The same rule applies for a unique volume that is shared among multiple pods on the same node.
     * If this field is nil, then the supported number of volumes on this node is unbounded.
     * +optional
     * 
* * optional int32 count = 1; */ int getCount(); } /** * * *
   * VolumeNodeResources is a set of resource limits for scheduling of volumes.
   * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.VolumeNodeResources} */ public static final class VolumeNodeResources extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.storage.v1beta1.VolumeNodeResources) VolumeNodeResourcesOrBuilder { private static final long serialVersionUID = 0L; // Use VolumeNodeResources.newBuilder() to construct. private VolumeNodeResources(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VolumeNodeResources() { count_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VolumeNodeResources( 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; count_ = 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.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeNodeResources_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeNodeResources_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources.class, io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources.Builder.class); } private int bitField0_; public static final int COUNT_FIELD_NUMBER = 1; private int count_; /** * * *
     * Maximum number of unique volumes managed by the CSI driver that can be used on a node.
     * A volume that is both attached and mounted on a node is considered to be used once, not twice.
     * The same rule applies for a unique volume that is shared among multiple pods on the same node.
     * If this field is nil, then the supported number of volumes on this node is unbounded.
     * +optional
     * 
* * optional int32 count = 1; */ public boolean hasCount() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Maximum number of unique volumes managed by the CSI driver that can be used on a node.
     * A volume that is both attached and mounted on a node is considered to be used once, not twice.
     * The same rule applies for a unique volume that is shared among multiple pods on the same node.
     * If this field is nil, then the supported number of volumes on this node is unbounded.
     * +optional
     * 
* * optional int32 count = 1; */ public int getCount() { return count_; } 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.writeInt32(1, count_); } 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.computeInt32Size(1, count_); } 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.V1beta1Storage.VolumeNodeResources)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources other = (io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources) obj; boolean result = true; result = result && (hasCount() == other.hasCount()); if (hasCount()) { result = result && (getCount() == other.getCount()); } 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 (hasCount()) { hash = (37 * hash) + COUNT_FIELD_NUMBER; hash = (53 * hash) + getCount(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources 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.V1beta1Storage.VolumeNodeResources parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources 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.V1beta1Storage.VolumeNodeResources parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources 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.V1beta1Storage.VolumeNodeResources parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources 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.V1beta1Storage.VolumeNodeResources parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources 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.V1beta1Storage.VolumeNodeResources 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; } /** * * *
     * VolumeNodeResources is a set of resource limits for scheduling of volumes.
     * 
* * Protobuf type {@code k8s.io.api.storage.v1beta1.VolumeNodeResources} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.storage.v1beta1.VolumeNodeResources) io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResourcesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeNodeResources_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeNodeResources_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources.class, io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources.Builder.class); } // Construct using io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources.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(); count_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Storage .internal_static_k8s_io_api_storage_v1beta1_VolumeNodeResources_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources build() { io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources buildPartial() { io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources result = new io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.count_ = count_; 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.V1beta1Storage.VolumeNodeResources) { return mergeFrom((io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources other) { if (other == io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources.getDefaultInstance()) return this; if (other.hasCount()) { setCount(other.getCount()); } 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.V1beta1Storage.VolumeNodeResources parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int count_; /** * * *
       * Maximum number of unique volumes managed by the CSI driver that can be used on a node.
       * A volume that is both attached and mounted on a node is considered to be used once, not twice.
       * The same rule applies for a unique volume that is shared among multiple pods on the same node.
       * If this field is nil, then the supported number of volumes on this node is unbounded.
       * +optional
       * 
* * optional int32 count = 1; */ public boolean hasCount() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Maximum number of unique volumes managed by the CSI driver that can be used on a node.
       * A volume that is both attached and mounted on a node is considered to be used once, not twice.
       * The same rule applies for a unique volume that is shared among multiple pods on the same node.
       * If this field is nil, then the supported number of volumes on this node is unbounded.
       * +optional
       * 
* * optional int32 count = 1; */ public int getCount() { return count_; } /** * * *
       * Maximum number of unique volumes managed by the CSI driver that can be used on a node.
       * A volume that is both attached and mounted on a node is considered to be used once, not twice.
       * The same rule applies for a unique volume that is shared among multiple pods on the same node.
       * If this field is nil, then the supported number of volumes on this node is unbounded.
       * +optional
       * 
* * optional int32 count = 1; */ public Builder setCount(int value) { bitField0_ |= 0x00000001; count_ = value; onChanged(); return this; } /** * * *
       * Maximum number of unique volumes managed by the CSI driver that can be used on a node.
       * A volume that is both attached and mounted on a node is considered to be used once, not twice.
       * The same rule applies for a unique volume that is shared among multiple pods on the same node.
       * If this field is nil, then the supported number of volumes on this node is unbounded.
       * +optional
       * 
* * optional int32 count = 1; */ public Builder clearCount() { bitField0_ = (bitField0_ & ~0x00000001); count_ = 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.api.storage.v1beta1.VolumeNodeResources) } // @@protoc_insertion_point(class_scope:k8s.io.api.storage.v1beta1.VolumeNodeResources) private static final io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources(); } public static io.kubernetes.client.proto.V1beta1Storage.VolumeNodeResources getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VolumeNodeResources parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VolumeNodeResources(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.V1beta1Storage.VolumeNodeResources getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_storage_v1beta1_CSIDriver_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_storage_v1beta1_CSIDriver_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_storage_v1beta1_CSIDriverList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_storage_v1beta1_CSIDriverList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_storage_v1beta1_CSIDriverSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_storage_v1beta1_CSIDriverSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_storage_v1beta1_CSINode_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_storage_v1beta1_CSINode_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_storage_v1beta1_CSINodeDriver_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_storage_v1beta1_CSINodeDriver_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_storage_v1beta1_CSINodeList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_storage_v1beta1_CSINodeList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_storage_v1beta1_CSINodeSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_storage_v1beta1_CSINodeSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_storage_v1beta1_CSIStorageCapacity_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_storage_v1beta1_CSIStorageCapacity_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_storage_v1beta1_CSIStorageCapacityList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_storage_v1beta1_CSIStorageCapacityList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_storage_v1beta1_StorageClass_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_storage_v1beta1_StorageClass_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_storage_v1beta1_StorageClass_ParametersEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_storage_v1beta1_StorageClass_ParametersEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_storage_v1beta1_StorageClassList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_storage_v1beta1_StorageClassList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_storage_v1beta1_TokenRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_storage_v1beta1_TokenRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_storage_v1beta1_VolumeAttachment_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_storage_v1beta1_VolumeAttachment_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentStatus_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentStatus_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentStatus_AttachmentMetadataEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentStatus_AttachmentMetadataEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_storage_v1beta1_VolumeError_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_storage_v1beta1_VolumeError_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_storage_v1beta1_VolumeNodeResources_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_storage_v1beta1_VolumeNodeResources_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n*k8s.io/api/storage/v1beta1/generated.p" + "roto\022\032k8s.io.api.storage.v1beta1\032\"k8s.io" + "/api/core/v1/generated.proto\0324k8s.io/api" + "machinery/pkg/api/resource/generated.pro" + "to\0324k8s.io/apimachinery/pkg/apis/meta/v1" + "/generated.proto\032/k8s.io/apimachinery/pk" + "g/runtime/generated.proto\0326k8s.io/apimac" + "hinery/pkg/runtime/schema/generated.prot" + "o\"\210\001\n\tCSIDriver\022B\n\010metadata\030\001 \001(\01320.k8s." + "io.apimachinery.pkg.apis.meta.v1.ObjectM" + "eta\0227\n\004spec\030\002 \001(\0132).k8s.io.api.storage.v" + "1beta1.CSIDriverSpec\"\207\001\n\rCSIDriverList\022@" + "\n\010metadata\030\001 \001(\0132..k8s.io.apimachinery.p" + "kg.apis.meta.v1.ListMeta\0224\n\005items\030\002 \003(\0132" + "%.k8s.io.api.storage.v1beta1.CSIDriver\"\351" + "\001\n\rCSIDriverSpec\022\026\n\016attachRequired\030\001 \001(\010" + "\022\026\n\016podInfoOnMount\030\002 \001(\010\022\034\n\024volumeLifecy" + "cleModes\030\003 \003(\t\022\027\n\017storageCapacity\030\004 \001(\010\022" + "\025\n\rfsGroupPolicy\030\005 \001(\t\022?\n\rtokenRequests\030" + "\006 \003(\0132(.k8s.io.api.storage.v1beta1.Token" + "Request\022\031\n\021requiresRepublish\030\007 \001(\010\"\204\001\n\007C" + "SINode\022B\n\010metadata\030\001 \001(\01320.k8s.io.apimac" + "hinery.pkg.apis.meta.v1.ObjectMeta\0225\n\004sp" + "ec\030\002 \001(\0132\'.k8s.io.api.storage.v1beta1.CS" + "INodeSpec\"\211\001\n\rCSINodeDriver\022\014\n\004name\030\001 \001(" + "\t\022\016\n\006nodeID\030\002 \001(\t\022\024\n\014topologyKeys\030\003 \003(\t\022" + "D\n\013allocatable\030\004 \001(\0132/.k8s.io.api.storag" + "e.v1beta1.VolumeNodeResources\"\203\001\n\013CSINod" + "eList\022@\n\010metadata\030\001 \001(\0132..k8s.io.apimach" + "inery.pkg.apis.meta.v1.ListMeta\0222\n\005items" + "\030\002 \003(\0132#.k8s.io.api.storage.v1beta1.CSIN" + "ode\"I\n\013CSINodeSpec\022:\n\007drivers\030\001 \003(\0132).k8" + "s.io.api.storage.v1beta1.CSINodeDriver\"\312" + "\002\n\022CSIStorageCapacity\022B\n\010metadata\030\001 \001(\0132" + "0.k8s.io.apimachinery.pkg.apis.meta.v1.O" + "bjectMeta\022I\n\014nodeTopology\030\002 \001(\01323.k8s.io" + ".apimachinery.pkg.apis.meta.v1.LabelSele" + "ctor\022\030\n\020storageClassName\030\003 \001(\t\022@\n\010capaci" + "ty\030\004 \001(\0132..k8s.io.apimachinery.pkg.api.r" + "esource.Quantity\022I\n\021maximumVolumeSize\030\005 " + "\001(\0132..k8s.io.apimachinery.pkg.api.resour" + "ce.Quantity\"\231\001\n\026CSIStorageCapacityList\022@" + "\n\010metadata\030\001 \001(\0132..k8s.io.apimachinery.p" + "kg.apis.meta.v1.ListMeta\022=\n\005items\030\002 \003(\0132" + "..k8s.io.api.storage.v1beta1.CSIStorageC" + "apacity\"\223\003\n\014StorageClass\022B\n\010metadata\030\001 \001" + "(\01320.k8s.io.apimachinery.pkg.apis.meta.v" + "1.ObjectMeta\022\023\n\013provisioner\030\002 \001(\t\022L\n\npar" + "ameters\030\003 \003(\01328.k8s.io.api.storage.v1bet" + "a1.StorageClass.ParametersEntry\022\025\n\rrecla" + "imPolicy\030\004 \001(\t\022\024\n\014mountOptions\030\005 \003(\t\022\034\n\024" + "allowVolumeExpansion\030\006 \001(\010\022\031\n\021volumeBind" + "ingMode\030\007 \001(\t\022C\n\021allowedTopologies\030\010 \003(\013" + "2(.k8s.io.api.core.v1.TopologySelectorTe" + "rm\0321\n\017ParametersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + "lue\030\002 \001(\t:\0028\001\"\215\001\n\020StorageClassList\022@\n\010me" + "tadata\030\001 \001(\0132..k8s.io.apimachinery.pkg.a" + "pis.meta.v1.ListMeta\0227\n\005items\030\002 \003(\0132(.k8" + "s.io.api.storage.v1beta1.StorageClass\";\n" + "\014TokenRequest\022\020\n\010audience\030\001 \001(\t\022\031\n\021expir" + "ationSeconds\030\002 \001(\003\"\332\001\n\020VolumeAttachment\022" + "B\n\010metadata\030\001 \001(\01320.k8s.io.apimachinery." + "pkg.apis.meta.v1.ObjectMeta\022>\n\004spec\030\002 \001(" + "\01320.k8s.io.api.storage.v1beta1.VolumeAtt" + "achmentSpec\022B\n\006status\030\003 \001(\01322.k8s.io.api" + ".storage.v1beta1.VolumeAttachmentStatus\"" + "\225\001\n\024VolumeAttachmentList\022@\n\010metadata\030\001 \001" + "(\0132..k8s.io.apimachinery.pkg.apis.meta.v" + "1.ListMeta\022;\n\005items\030\002 \003(\0132,.k8s.io.api.s" + "torage.v1beta1.VolumeAttachment\"z\n\026Volum" + "eAttachmentSource\022\034\n\024persistentVolumeNam" + "e\030\001 \001(\t\022B\n\020inlineVolumeSpec\030\002 \001(\0132(.k8s." + "io.api.core.v1.PersistentVolumeSpec\"~\n\024V" + "olumeAttachmentSpec\022\020\n\010attacher\030\001 \001(\t\022B\n" + "\006source\030\002 \001(\01322.k8s.io.api.storage.v1bet" + "a1.VolumeAttachmentSource\022\020\n\010nodeName\030\003 " + "\001(\t\"\311\002\n\026VolumeAttachmentStatus\022\020\n\010attach" + "ed\030\001 \001(\010\022f\n\022attachmentMetadata\030\002 \003(\0132J.k" + "8s.io.api.storage.v1beta1.VolumeAttachme" + "ntStatus.AttachmentMetadataEntry\022<\n\013atta" + "chError\030\003 \001(\0132\'.k8s.io.api.storage.v1bet" + "a1.VolumeError\022<\n\013detachError\030\004 \001(\0132\'.k8" + "s.io.api.storage.v1beta1.VolumeError\0329\n\027" + "AttachmentMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + "value\030\002 \001(\t:\0028\001\"X\n\013VolumeError\0228\n\004time\030\001" + " \001(\0132*.k8s.io.apimachinery.pkg.apis.meta" + ".v1.Time\022\017\n\007message\030\002 \001(\t\"$\n\023VolumeNodeR" + "esources\022\r\n\005count\030\001 \001(\005B5\n\032io.kubernetes" + ".client.protoB\016V1beta1StorageZ\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.V1.getDescriptor(), io.kubernetes.client.proto.Resource.getDescriptor(), io.kubernetes.client.proto.Meta.getDescriptor(), io.kubernetes.client.proto.Runtime.getDescriptor(), io.kubernetes.client.proto.RuntimeSchema.getDescriptor(), }, assigner); internal_static_k8s_io_api_storage_v1beta1_CSIDriver_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_k8s_io_api_storage_v1beta1_CSIDriver_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_storage_v1beta1_CSIDriver_descriptor, new java.lang.String[] { "Metadata", "Spec", }); internal_static_k8s_io_api_storage_v1beta1_CSIDriverList_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_k8s_io_api_storage_v1beta1_CSIDriverList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_storage_v1beta1_CSIDriverList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_storage_v1beta1_CSIDriverSpec_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_k8s_io_api_storage_v1beta1_CSIDriverSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_storage_v1beta1_CSIDriverSpec_descriptor, new java.lang.String[] { "AttachRequired", "PodInfoOnMount", "VolumeLifecycleModes", "StorageCapacity", "FsGroupPolicy", "TokenRequests", "RequiresRepublish", }); internal_static_k8s_io_api_storage_v1beta1_CSINode_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_k8s_io_api_storage_v1beta1_CSINode_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_storage_v1beta1_CSINode_descriptor, new java.lang.String[] { "Metadata", "Spec", }); internal_static_k8s_io_api_storage_v1beta1_CSINodeDriver_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_k8s_io_api_storage_v1beta1_CSINodeDriver_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_storage_v1beta1_CSINodeDriver_descriptor, new java.lang.String[] { "Name", "NodeID", "TopologyKeys", "Allocatable", }); internal_static_k8s_io_api_storage_v1beta1_CSINodeList_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_k8s_io_api_storage_v1beta1_CSINodeList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_storage_v1beta1_CSINodeList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_storage_v1beta1_CSINodeSpec_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_k8s_io_api_storage_v1beta1_CSINodeSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_storage_v1beta1_CSINodeSpec_descriptor, new java.lang.String[] { "Drivers", }); internal_static_k8s_io_api_storage_v1beta1_CSIStorageCapacity_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_k8s_io_api_storage_v1beta1_CSIStorageCapacity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_storage_v1beta1_CSIStorageCapacity_descriptor, new java.lang.String[] { "Metadata", "NodeTopology", "StorageClassName", "Capacity", "MaximumVolumeSize", }); internal_static_k8s_io_api_storage_v1beta1_CSIStorageCapacityList_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_k8s_io_api_storage_v1beta1_CSIStorageCapacityList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_storage_v1beta1_CSIStorageCapacityList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_storage_v1beta1_StorageClass_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_k8s_io_api_storage_v1beta1_StorageClass_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_storage_v1beta1_StorageClass_descriptor, new java.lang.String[] { "Metadata", "Provisioner", "Parameters", "ReclaimPolicy", "MountOptions", "AllowVolumeExpansion", "VolumeBindingMode", "AllowedTopologies", }); internal_static_k8s_io_api_storage_v1beta1_StorageClass_ParametersEntry_descriptor = internal_static_k8s_io_api_storage_v1beta1_StorageClass_descriptor.getNestedTypes().get(0); internal_static_k8s_io_api_storage_v1beta1_StorageClass_ParametersEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_storage_v1beta1_StorageClass_ParametersEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_storage_v1beta1_StorageClassList_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_k8s_io_api_storage_v1beta1_StorageClassList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_storage_v1beta1_StorageClassList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_storage_v1beta1_TokenRequest_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_k8s_io_api_storage_v1beta1_TokenRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_storage_v1beta1_TokenRequest_descriptor, new java.lang.String[] { "Audience", "ExpirationSeconds", }); internal_static_k8s_io_api_storage_v1beta1_VolumeAttachment_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_k8s_io_api_storage_v1beta1_VolumeAttachment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_storage_v1beta1_VolumeAttachment_descriptor, new java.lang.String[] { "Metadata", "Spec", "Status", }); internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentList_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentSource_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentSource_descriptor, new java.lang.String[] { "PersistentVolumeName", "InlineVolumeSpec", }); internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentSpec_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentSpec_descriptor, new java.lang.String[] { "Attacher", "Source", "NodeName", }); internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentStatus_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentStatus_descriptor, new java.lang.String[] { "Attached", "AttachmentMetadata", "AttachError", "DetachError", }); internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentStatus_AttachmentMetadataEntry_descriptor = internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentStatus_descriptor .getNestedTypes() .get(0); internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentStatus_AttachmentMetadataEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_storage_v1beta1_VolumeAttachmentStatus_AttachmentMetadataEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_storage_v1beta1_VolumeError_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_k8s_io_api_storage_v1beta1_VolumeError_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_storage_v1beta1_VolumeError_descriptor, new java.lang.String[] { "Time", "Message", }); internal_static_k8s_io_api_storage_v1beta1_VolumeNodeResources_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_k8s_io_api_storage_v1beta1_VolumeNodeResources_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_storage_v1beta1_VolumeNodeResources_descriptor, new java.lang.String[] { "Count", }); io.kubernetes.client.proto.V1.getDescriptor(); io.kubernetes.client.proto.Resource.getDescriptor(); 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